File hamster-applet.spec of Package hamster-applet

#
# spec file for package hamster-applet
#
# 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/
#



Name:           hamster-applet
Version:        2.91.2
Release:        2
License:        GPLv3+
Summary:        A GNOME panel applet to track where you spend your time
Url:            http://projecthamster.wordpress.com/
Group:          Productivity/Other
Source0:        %{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  glib2-devel
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  intltool
BuildRequires:  python-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gnome-keybindings)
# Note:
# - we do not have the gnomeapplet bindings anymore (it doesn't work with
#   GNOME 3), so we don't add a Requires/Recommends for it.
# - the gnome python module is needed only for the applet, and since we don't
#   have it, we don't need a dependency on python-gnome
Requires:       dbus-1-python
Requires:       python-evolution
Requires:       python-gconf
Requires:       python-gtk
Requires:       python-wnck
Requires:       python-xdg
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%{py_requires}
%gconf_schemas_prereq

%description
Project Hamster is time tracking for masses. It helps you to keep track
on how much time you have spent during the day on activities you have
set up.

%package -n docky-hamster-applet
License:        GPLv3+
Summary:        Utility to track where you spend your time -- Docky integration
Requires:       %{name} = %{version}
Supplements:    packageand(%{name}:docky)

%description -n docky-hamster-applet
Project Hamster is time tracking for masses. It helps you to keep track
on how much time you have spent during the day on activities you have
set up.

This package contains a helper for integration in docky.

%lang_package
%prep
%setup -q
translation-update-upstream po hamster-applet

%build
./waf --prefix=%{_prefix} configure build

%install
./waf install --destdir=%{buildroot} --libdir=%{_libdir} --libexecdir=%{_libexecdir}
%if 0%{?suse_version} <= 1120
%{__rm} %{buildroot}%{_datadir}/locale/en@shaw/LC_MESSAGES/*
%endif
%find_gconf_schemas
%find_lang %{name} %{?no_lang_C}
%suse_update_desktop_file hamster-applet
%suse_update_desktop_file hamster-time-tracker X-SuSE-TimeUtility
rm %{buildroot}%{_libexecdir}/bonobo/servers/Hamster_Applet.server
%fdupes %{buildroot}

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun

%posttrans -f %{name}.schemas_posttrans

%clean
rm -rf %{buildroot}

%files -f %{name}.schemas_list
%defattr(-, root, root)
%doc AUTHORS NEWS README
%dir %{_datadir}/gnome/
%dir %{_datadir}/gnome/help/
%dir %{_datadir}/gnome/help/%{name}/
%doc %{_datadir}/gnome/help/%{name}/C/
%{_bindir}/gnome-time-tracker
%{_bindir}/hamster-cli
%{_bindir}/hamster-service
%{_bindir}/hamster-time-tracker
%{_datadir}/applications/hamster-applet.desktop
%{_datadir}/applications/hamster-time-tracker.desktop
%{_datadir}/dbus-1/services/org.gnome.hamster.service
%{_datadir}/gnome-control-center/keybindings/90-hamster-applet.xml
%{_datadir}/hamster-applet/
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_libexecdir}/hamster-applet
%{python_sitelib}/hamster/

%files -n docky-hamster-applet
%defattr(-, root, root)
%dir %{_datadir}/dockmanager
%dir %{_datadir}/dockmanager/metadata
%dir %{_datadir}/dockmanager/scripts
%{_datadir}/dockmanager/metadata/hamster_control.py.info
%{_datadir}/dockmanager/scripts/hamster_control.py
%dir %{_datadir}/docky
%dir %{_datadir}/docky/helpers
%dir %{_datadir}/docky/helpers/metadata
%{_datadir}/docky/helpers/hamster_control.py
%{_datadir}/docky/helpers/metadata/hamster_control.py.info

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by