File gnome-mag.spec of Package gnome-mag

#
# spec file for package gnome-mag (Version 0.15.9)
#
# 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:           gnome-mag
BuildRequires:  at-spi-devel
BuildRequires:  colorblind-devel
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  gnome-python-desktop
BuildRequires:  gtk2-devel
BuildRequires:  intltool
BuildRequires:  libbonobo-devel
BuildRequires:  libidl
BuildRequires:  python-gnome-devel
BuildRequires:  python-gobject2-devel
BuildRequires:  python-gtk-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
License:        LGPL v2.1 or later
Group:          System/GUI/GNOME
Version:        0.15.9
Release:        1
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:     gnome-applets-colorblind
Requires:       %{name}-lang = %{version}
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:        LGPL v2.1 or later
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:        LGPL v2.1 or later
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
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}
find %{buildroot} -type f -name "*.la" -exec %{__rm} -fv {} +
%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

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

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

%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}/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