File gnome-mag.spec of Package gnome-mag

#
# spec file for package gnome-mag
#
# Copyright (c) 2011 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:           gnome-mag
BuildRequires:  at-spi-devel
BuildRequires:  colorblind-devel
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-python-desktop
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libbonobo-devel
BuildRequires:  python-gnome-devel
BuildRequires:  python-gobject2-devel
BuildRequires:  python-gtk-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
License:        LGPLv2.1+
Group:          System/GUI/GNOME
Version:        0.16.3
Release:        2
Summary:        GNOME Screen Magnifier
Source:         ftp://ftp.gnome.org/pub/GNOME/sources/gnome-mag/0.13/%{name}-%{version}.tar.bz2
Url:            http://developer.gnome.org/projects/gap
Recommends:     %{name}-lang
Recommends:     gnome-applets-colorblind
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
gnome-mag provides a command line interface for stand-alone use,
although its primary goal is to provide a set of magnification services
for use by other client applications and assistive technologies.

%package devel
License:        LGPLv2.1+
Summary:        GNOME Screen Magnifier
Group:          Development/Libraries/GNOME
Requires:       %{name} = %{version}
Requires:       gtk2-devel
Requires:       libbonobo-devel

%description devel
gnome-mag provides a command line interface for stand-alone use,
although its primary goal is to provide a set of magnification services
for use by other client applications and assistive technologies.

%package -n gnome-applets-colorblind
License:        LGPLv2.1+
Group:          System/GUI/GNOME
Summary:        A GNOME panel applet for coloblind people
Requires:       %{name} = %{version}
Requires:       gnome-python-desktop
Requires:       python-gnome
Requires:       python-gtk
%gconf_schemas_prereq
%py_requires

%description -n gnome-applets-colorblind
This packages provides an applet to control image filters for colorblind
people.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
### autoreconf -f -i
%configure --disable-static
make %{?jobs:-j%jobs} referencetopdir=%{_docdir}/%{name}/reference

%install
make install referencetopdir=%{_docdir}/%{name}/reference DESTDIR=$RPM_BUILD_ROOT
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
cp AUTHORS COPYING ChangeLog NEWS README $RPM_BUILD_ROOT%{_docdir}/%{name}
%def_gconf_schemas colorblind-applet
%add_gconf_schemas colorblind-applet
%end_gconf_schemas
%find_lang %{name} %{?no_lang_C}
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%pre -n gnome-applets-colorblind -f colorblind-applet.schemas_pre

%post -n gnome-applets-colorblind
%icon_theme_cache_post

%posttrans -n gnome-applets-colorblind -f colorblind-applet.schemas_posttrans

%preun -n gnome-applets-colorblind -f colorblind-applet.schemas_preun

%postun -n gnome-applets-colorblind
%icon_theme_cache_postun

%files
%defattr (-, root, root)
%doc %dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%{_bindir}/*
%{_datadir}/gnome-mag
%{_datadir}/dbus-1/services/*.service
%{_datadir}/idl/*
%{_mandir}/man1/magnifier.1.gz
%{_libdir}/*.so.*
%{_libdir}/bonobo/servers/GNOME_Magnifier.server
%{_libdir}/orbit-2.0/GNOME_Magnifier*

%files lang -f %{name}.lang

%files devel
%defattr (-, root, root)
%doc %{_docdir}/%{name}/reference
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files -n gnome-applets-colorblind -f colorblind-applet.schemas_list
%defattr (-, root, root)
%{_datadir}/colorblind/
%{_datadir}/icons/*/*/*/colorblind-applet.*
%{_libdir}/bonobo/servers/GNOME_Magnifier_ColorblindApplet.server
%{_libdir}/colorblind-applet/
%{py_sitedir}/colorblind/

%changelog
openSUSE Build Service is sponsored by