File gnopernicus.spec of Package gnopernicus
#
# spec file for package gnopernicus (Version 1.1.2)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: gnopernicus
BuildRequires: at-spi-devel fdupes gail-devel gnome-common gnome-desktop-devel gnome-mag-devel gnome-speech-devel gtk-doc intltool libglade2-devel libgnomeui-devel libidl perl-XML-Parser scrollkeeper update-desktop-files
License: LGPL v2.1 or later
Group: System/GUI/GNOME
Version: 1.1.2
Release: 281
Summary: Assistive Technologies for Blind and Visually Impaired Users
Source: %{name}-%{version}.tar.bz2
Url: http://www.baum.ro/gnopernicus.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
# FIXME: For correct directory ownership (applet seems to not link with gnome-panel):
Requires: gnome-panel
Requires: %{name}-lang = %{version}
BuildRequires: gnome-panel
%gconf_schemas_prereq
%description
The gnopernicus project enables users with limited vision or no vision
to use the GNOME 2 desktop and GNOME/GTK+-2 applications effectively.
By providing automated focus tracking and fullscreen magnification,
Gnopernicus aids low-vision GNOME users. Its screen reader features
allow low-vision and blind users access to standard GTK+2 and
Java-based GUI applications via speech and Braille output. By
leveraging GNOME 2's built-in accessibility framework, Gnopernicus
makes interacting with applications more efficient for these users and
enables use of the GNOME 2 desktop for some users who otherwise would
have no access to GNOME.
Authors:
--------
Adriana Iobb <ai@baum.de>
Draghi Puterity <mp@baum.de>
Pal Csongor Sprencz <ps@baum.ro>
Iuliu Szijjarto <is@baum.ro>
Remus Draica <rd@baum.ro>
Adi Dascal <ad@baum.ro>
%package devel
License: LGPL v2.1 or later
Summary: Assistive Technologies for Blind and Visually Impaired Users
Group: System/GUI/GNOME
Requires: %{name} = %{version} at-spi-devel gtk2-devel libglade2-devel libgnome-devel libgnomeui-devel libxml2-devel gail-devel gnome-mag gnome-speech-devel
%description devel
The gnopernicus project enables users with limited vision or no vision
to use the GNOME 2 desktop and GNOME/GTK+-2 applications effectively.
By providing automated focus tracking and fullscreen magnification,
Gnopernicus aids low-vision GNOME users and its screen reader features
allow low-vision and blind users access to standard GTK+2 and
Java-based GUI applications via speech and Braille output. By
leveraging GNOME 2's built-in accessibility framework, Gnopernicus
makes interacting with applications more efficient for these users and
enables use of the GNOME 2 desktop for some users who otherwise would
have no access to GNOME.
Authors:
--------
Adriana Iobb <ai@baum.de>
Draghi Puterity <mp@baum.de>
Pal Csongor Sprencz <ps@baum.ro>
Iuliu Szijjarto <is@baum.ro>
Remus Draica <rd@baum.ro>
Adi Dascal <ad@baum.ro>
%lang_package
%prep
%setup -q
%build
# disable as-needed to fix build
export SUSE_ASNEEDED=0
%{?suse_update_config:%{suse_update_config -f}}
# needed for gnopernicus-1.1.2:
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
# FIXME: enable brltty support
# FIXME: --disable-scrollkeeper is not implemented
%configure\
--libexecdir=%{_prefix}/lib/gnome-panel\
--disable-scrollkeeper
make %{?jobs:-j%jobs}
%install
%makeinstall
# FIXME: --disable-scrollkeeper is not implemented
rm -r $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
%suse_update_desktop_file -N Gnopernicus -G "Screen Reader and Magnifier" %name Utility Accessibility
# Change sr@Latn to sr@latin
mv %{buildroot}%{_datadir}/locale/sr@Latn %{buildroot}%{_datadir}/locale/sr@latin
%find_lang %{name}
%find_lang brlmonitor
%find_gconf_schemas
cat brlmonitor.lang >> %{name}.lang
cat %{name}.schemas_list >%{name}.lst
rm $RPM_BUILD_ROOT%{_libdir}/*/*.*a
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post
/sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun
/sbin/ldconfig
%files -f %{name}.lst
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_datadir}/applications/*.desktop
%{_datadir}/gnopernicus
%{_datadir}/icons/hicolor/48x48/apps/gnopernicus.png
%{_datadir}/omf/gnopernicus
%{_bindir}/*
%{_libdir}/gnopernicus-1.0
%{_prefix}/lib/gnome-panel/*
%{_sysconfdir}/gnopernicus-1.0
%files lang -f %{name}.lang
%files devel
%defattr(-,root,root)
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gnopernicus-1.0
%changelog