File gnome-applets.spec of Package gnome-applets

#
# spec file for package gnome-applets
#
# 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-applets
License:        GPLv2+ ; LGPLv2.1+
Group:          System/GUI/GNOME
# FIXME: Package name will change, see #222422
%ifnarch s390 s390x
Requires:       gnome-media
%endif
Version:        2.32.1.1
Release:        4
Url:            http://www.gnome.org/
Summary:        A Collection of Useful Programs for GNOME Panel
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  gnome-python-desktop
BuildRequires:  intltool
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(NetworkManager)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gnome-desktop-2.0)
BuildRequires:  pkgconfig(gnome-icon-theme)
BuildRequires:  pkgconfig(gnome-python-2.0)
BuildRequires:  pkgconfig(gnome-settings-daemon)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gucharmap-2)
BuildRequires:  pkgconfig(gweather)
BuildRequires:  pkgconfig(libgtop-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpanelapplet-2.0)
BuildRequires:  pkgconfig(libpanelapplet-3.0)
BuildRequires:  pkgconfig(libwnck-1.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  pkgconfig(pygobject-2.0)
BuildRequires:  pkgconfig(pygtk-2.0)
Requires:       libgnomesu yast2
Recommends:     %{name}-lang
Provides:       gnome-applets2
Obsoletes:      gnome-applets2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%endif
%gconf_schemas_prereq

%description
This package includes many small utilities that can be run from within
the GNOME Panel.

%package invest
License:        GPLv2+ ; LGPLv2.1+
Group:          System/GUI/GNOME
# for the gconf schemas
Requires:       %{name} = %{version}
Requires:       dbus-1-python
# for the gnomeapplet bindings
Requires:       gnome-python-desktop
# for the gconf bindings
Requires:       python-gnome
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
translation-update-upstream

%build
%configure\
	--disable-static\
	--disable-schemas-install\
	--disable-scrollkeeper\
	--enable-mini-commander\
	--disable-frequency-selector
make %{?jobs:-j%jobs}

%install
%makeinstall
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_lang %{name}-2.0 %{?no_lang_C}
%find_lang accessx-status %{?no_lang_C} %{name}-2.0.lang
%find_lang battstat %{?no_lang_C} %{name}-2.0.lang
%find_lang char-palette %{?no_lang_C} %{name}-2.0.lang
%find_lang command-line %{?no_lang_C} %{name}-2.0.lang
%find_lang cpufreq-applet %{?no_lang_C} %{name}-2.0.lang
%find_lang drivemount %{?no_lang_C} %{name}-2.0.lang
%find_lang geyes %{?no_lang_C} %{name}-2.0.lang
%find_lang gweather %{?no_lang_C} %{name}-2.0.lang
%find_lang multiload %{?no_lang_C} %{name}-2.0.lang
%find_lang stickynotes_applet %{?no_lang_C} %{name}-2.0.lang
%find_lang trashapplet %{?no_lang_C} %{name}-2.0.lang
%find_gconf_schemas
%fdupes $RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%pre -f %{name}.schemas_pre

%post
%icon_theme_cache_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%icon_theme_cache_postun

%post invest
%icon_theme_cache_post

%postun invest
%icon_theme_cache_postun

%files -f %{name}.schemas_list
%defattr (-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/omf/
%dir %{_datadir}/gnome-applets
%dir %{_datadir}/gnome-applets/builder
%dir %{_libexecdir}/gnome-applets
%{_datadir}/xmodmap/
# accessx
%dir %{_datadir}/gnome/help/accessx-status/
%doc %{_datadir}/gnome/help/accessx-status/C/
%dir %{_datadir}/omf/accessx-status/
%doc %{_datadir}/omf/accessx-status/accessx-status-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.AccessxStatusAppletFactory.service
%{_datadir}/gnome-2.0/ui/accessx-status-applet-menu.xml
%{_datadir}/gnome-panel/applets/org.gnome.applets.AccessxStatusApplet.panel-applet
%{_datadir}/icons/*/*/apps/ax-applet.png
%{_datadir}/pixmaps/accessx-status-applet/
%{_libexecdir}/accessx-status-applet
# battstat
%dir %{_datadir}/gnome/help/battstat/
%doc %{_datadir}/gnome/help/battstat/C/
%dir %{_datadir}/omf/battstat/
%doc %{_datadir}/omf/battstat/battstat-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.BattstatAppletFactory.service
%{_datadir}/gnome-2.0/ui/battstat-applet-menu.xml
%{_datadir}/gnome-applets/builder/battstat_applet.ui
%{_datadir}/gnome-panel/applets/org.gnome.applets.BattstatApplet.panel-applet
%{_libexecdir}/battstat-applet-2
%{_sysconfdir}/sound/events/battstat_applet.soundlist
# charpick
%dir %{_datadir}/gnome/help/char-palette/
%doc %{_datadir}/gnome/help/char-palette/C/
%dir %{_datadir}/omf/char-palette/
%doc %{_datadir}/omf/char-palette/char-palette-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.CharpickerAppletFactory.service
%{_datadir}/gnome-2.0/ui/charpick-applet-menu.xml
%{_datadir}/gnome-panel/applets/org.gnome.applets.CharpickerApplet.panel-applet
%{_libexecdir}/charpick_applet2
# cpufreq
%dir %{_datadir}/gnome/help/cpufreq-applet/
%doc %{_datadir}/gnome/help/cpufreq-applet/C/
%dir %{_datadir}/omf/cpufreq-applet/
%doc %{_datadir}/omf/cpufreq-applet/cpufreq-applet-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.CPUFreqAppletFactory.service
%{_datadir}/icons/*/*/apps/gnome-cpu-frequency-applet.png
%{_datadir}/icons/*/*/apps/gnome-cpu-frequency-applet.svg
%{_datadir}/gnome-2.0/ui/cpufreq-applet-menu.xml
%{_datadir}/gnome-applets/builder/cpufreq-preferences.ui
%{_datadir}/gnome-panel/applets/org.gnome.applets.CPUFreqApplet.panel-applet
%{_datadir}/pixmaps/cpufreq-applet/
%{_libexecdir}/cpufreq-applet
# drivemount
%dir %{_datadir}/gnome/help/drivemount/
%doc %{_datadir}/gnome/help/drivemount/C/
%dir %{_datadir}/omf/drivemount/
%doc %{_datadir}/omf/drivemount/drivemount-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.DriveMountAppletFactory.service
%{_datadir}/gnome-2.0/ui/drivemount-applet-menu.xml
%{_datadir}/gnome-panel/applets/org.gnome.applets.DriveMountApplet.panel-applet
%{_libexecdir}/drivemount_applet2
# geyes
%dir %{_datadir}/gnome/help/geyes/
%doc %{_datadir}/gnome/help/geyes/C/
%dir %{_datadir}/omf/geyes/
%doc %{_datadir}/omf/geyes/geyes-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.GeyesAppletFactory.service
%{_datadir}/icons/*/*/apps/gnome-eyes-applet.png
%{_datadir}/icons/*/*/apps/gnome-eyes-applet.svg
%{_datadir}/gnome-2.0/ui/geyes-applet-menu.xml
%{_datadir}/gnome-applets/geyes/
%{_datadir}/gnome-panel/applets/org.gnome.applets.GeyesApplet.panel-applet
%{_libexecdir}/geyes_applet2
# gweather
%dir %{_datadir}/gnome/help/gweather/
%doc %{_datadir}/gnome/help/gweather/C/
%dir %{_datadir}/omf/gweather/
%doc %{_datadir}/omf/gweather/gweather-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.GWeatherAppletFactory.service
%{_datadir}/gnome-2.0/ui/gweather-applet-menu.xml
%{_datadir}/gnome-panel/applets/org.gnome.applets.GWeatherApplet.panel-applet
%{_libexecdir}/gweather-applet-2
# minicommander helper
%dir %{_datadir}/gnome/help/command-line/
%doc %{_datadir}/gnome/help/command-line/C/
%dir %{_datadir}/omf/command-line/
%doc %{_datadir}/omf/command-line/command-line-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.MiniCommanderAppletFactory.service
%{_datadir}/gnome-2.0/ui/mini-commander-applet-menu.xml
%{_datadir}/gnome-applets/builder/mini-commander.ui
%{_datadir}/gnome-panel/applets/org.gnome.applets.MiniCommanderApplet.panel-applet
%{_datadir}/icons/*/*/apps/gnome-mini-commander.png
%{_libexecdir}/gnome-applets/mc-install-default-macros
%{_libexecdir}/mini_commander_applet
# multiload
%dir %{_datadir}/gnome/help/multiload/
%doc %{_datadir}/gnome/help/multiload/C/
%dir %{_datadir}/omf/multiload/
%doc %{_datadir}/omf/multiload/multiload-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.MultiLoadAppletFactory.service
%{_datadir}/gnome-2.0/ui/multiload-applet-menu.xml
%{_datadir}/gnome-panel/applets/org.gnome.applets.MultiLoadApplet.panel-applet
%{_libexecdir}/multiload-applet-2
# null (includes compatibility .server files for deprecated applets)
%{_libdir}/bonobo/servers/GNOME_CDPlayerApplet.server
%{_libdir}/bonobo/servers/GNOME_GtikApplet.server
%{_libdir}/bonobo/servers/GNOME_KeyboardApplet.server
%{_libdir}/bonobo/servers/GNOME_MailcheckApplet_Factory.server
%{_libdir}/bonobo/servers/GNOME_MixerApplet.server
%{_libdir}/bonobo/servers/GNOME_NullApplet_Factory.server
%{_libdir}/bonobo/servers/GNOME_Panel_WirelessApplet.server
%{_libexecdir}/null_applet
# stickynotes
%dir %{_datadir}/gnome/help/stickynotes_applet/
%doc %{_datadir}/gnome/help/stickynotes_applet/C/
%dir %{_datadir}/omf/stickynotes_applet/
%doc %{_datadir}/omf/stickynotes_applet/stickynotes_applet-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.StickyNotesAppletFactory.service
%{_datadir}/icons/*/*/apps/gnome-sticky-notes-applet.png
%{_datadir}/icons/*/*/apps/gnome-sticky-notes-applet.svg
%{_datadir}/gnome-2.0/ui/stickynotes-applet-menu.xml
%{_datadir}/gnome-applets/builder/stickynotes.ui
%{_datadir}/gnome-panel/applets/org.gnome.applets.StickyNotesApplet.panel-applet
%{_datadir}/pixmaps/stickynotes/
%{_libexecdir}/stickynotes_applet
# trash
%dir %{_datadir}/gnome/help/trashapplet/
%doc %{_datadir}/gnome/help/trashapplet/C/
%dir %{_datadir}/omf/trashapplet/
%doc %{_datadir}/omf/trashapplet/trashapplet-C.omf
%{_datadir}/dbus-1/services/org.gnome.panel.applet.TrashAppletFactory.service
%{_datadir}/gnome-2.0/ui/trashapplet-menu.xml
%{_datadir}/gnome-applets/builder/trashapplet-empty-progress.ui
%{_datadir}/gnome-panel/applets/org.gnome.applets.TrashApplet.panel-applet
%{_libexecdir}/trashapplet

%files invest
%defattr(-, root, root)
%{_bindir}/invest-chart
%{python_sitelib}/invest/
%doc %{_datadir}/gnome/help/invest-applet
%{_datadir}/gnome-2.0/ui/Invest_Applet.xml
%{_datadir}/gnome-applets/builder/financialchart.ui
%{_datadir}/gnome-applets/builder/prefs-dialog.ui
%{_datadir}/gnome-applets/invest-applet/
%{_datadir}/icons/*/*/apps/invest-applet.png
%{_datadir}/icons/*/*/apps/invest-applet.svg
%doc %{_datadir}/omf/invest-applet
%{_libdir}/bonobo/servers/Invest_Applet.server
%{_libexecdir}/invest-applet

%files lang -f %{name}-2.0.lang

%changelog