File gnome-applets.spec of Package gnome-applets
#
# spec file for package gnome-applets (Version 2.28.0)
#
# 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-applets
BuildRequires: NetworkManager-devel
BuildRequires: dbus-1-glib-devel
BuildRequires: fdupes
BuildRequires: gnome-desktop-devel
BuildRequires: gnome-doc-utils-devel
BuildRequires: gnome-panel-devel
BuildRequires: gnome-python-desktop
BuildRequires: gstreamer010-plugins-base-devel
BuildRequires: gucharmap-devel
BuildRequires: intltool
BuildRequires: libgnomekbd-devel
BuildRequires: libgtop-devel
BuildRequires: libgweather-devel
BuildRequires: libnotify-devel
BuildRequires: libwnck-devel
BuildRequires: libxklavier-devel
BuildRequires: python-gnome-devel
BuildRequires: update-desktop-files
License: GPL v2 or later ; LGPL v2.1 or later
Group: System/GUI/GNOME
Provides: gnome-applets2 gswitchit
Obsoletes: gnome-applets2 gswitchit
Requires: libgnomesu yast2
# FIXME: Package name will change, see #222422
%ifnarch s390 s390x
Requires: gnome-media
%endif
Version: 2.28.0
Release: 2.<RELEASE3>
Requires: %{name}-lang = %{version}
Summary: A Collection of Useful Programs for the GNOME 2.x Desktop Panel
Source: %{name}-%{version}.tar.bz2
# PATCH-FIX-UPSTREAM gnome-applets-keyboard-help.patch bgo597150 bnc539520 vuntz@opensuse.org -- Fix help of keyboard applet
Patch0: gnome-applets-keyboard-help.patch
# PATCH-FIX-UPSTREAM bgo#594797 bnc#549063 dimstar@opensuse.org -- Fix crash when creaing notes. Taken from upstream git.
Patch1: gnome-applets-bnc549063.patch
Url: http://www.gnome.org/
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%gconf_schemas_prereq
%description
This package is part of the basic GNOME 2.x Desktop packages. It
includes many small utilities that can be run from within the GNOME 2.x
Desktop panel.
%package invest
License: GPL v2 or later ; LGPL v2.1 or later
Group: System/GUI/GNOME
Requires: %{name} = %{version}
Requires: python-gnome python-gnome-extras gnome-python-desktop
Summary: An utility to display stock quotes in the GNOME Panel
%py_requires
%description invest
The Invest GNOME panel applet downloads current stock quotes from
Yahoo! Finance and displays the quotes in a drop-down list.
%lang_package
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
%configure\
--libexecdir=%{_prefix}/lib/gnome-panel\
--disable-static\
--disable-schemas-install\
--disable-scrollkeeper\
--enable-mini-commander\
--disable-frequency-selector
make %{?jobs:-j%jobs}
%install
%makeinstall
%find_lang %{name}-2.0
%find_lang accessx-status %{name}-2.0.lang
%find_lang battstat %{name}-2.0.lang
%find_lang char-palette %{name}-2.0.lang
%find_lang command-line %{name}-2.0.lang
%find_lang cpufreq-applet %{name}-2.0.lang
%find_lang drivemount %{name}-2.0.lang
%find_lang geyes %{name}-2.0.lang
%find_lang gswitchit %{name}-2.0.lang
%find_lang gweather %{name}-2.0.lang
%find_lang multiload %{name}-2.0.lang
%find_lang stickynotes_applet %{name}-2.0.lang
%find_lang trashapplet %{name}-2.0.lang
%find_gconf_schemas
cat %{name}.schemas_list >%{name}.lst
%fdupes $RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%pre -f %{name}.schemas_pre
%post -p /sbin/ldconfig
%posttrans -f %{name}.schemas_posttrans
%preun -f %{name}.schemas_preun
%postun -p /sbin/ldconfig
%files -f %{name}.lst
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%exclude %{_bindir}/invest-chart
%{_datadir}/pixmaps/*
%{_datadir}/gnome-2.0/ui/*
%{_datadir}/gnome-applets
%{_datadir}/icons/*/*/apps/*.png
%{_datadir}/icons/*/*/apps/*.svg
%{_datadir}/xmodmap
%exclude %{_libdir}/bonobo/servers/Invest_Applet.server
%{_libdir}/bonobo/servers/*.server
%exclude %{_prefix}/lib/gnome-panel/invest-applet
%{_prefix}/lib/gnome-panel/*
%{_sysconfdir}/sound/events/*.soundlist
%files invest
%defattr(-, root, root)
%{_bindir}/invest-chart
%{python_sitelib}/invest
%doc %{_datadir}/gnome/help/invest-applet
%doc %{_datadir}/omf/invest-applet
%{_prefix}/lib/gnome-panel/invest-applet
%{_libdir}/bonobo/servers/Invest_Applet.server
%files lang -f %{name}-2.0.lang
%changelog