File specto.spec of Package specto

#
# spec file for package specto
#
# Copyright (c) 2009 Dominique Leuenberger, Almere, The Netherlands.
#
# 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:           specto
Summary:        Unobtrusive update notifier
Version:        0.4.1
Release:        0
# FIXME: remove note about license when updating to > 0.4.1
# (http://code.google.com/p/specto/issues/detail?id=349)
# Note: spectlib/plugins/* files are really GPL-2.0+, despite a
# weird header. This was fixed upstream with
# http://bazaar.launchpad.net/~specto/specto/main/revision/176
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://specto.sourceforge.net/
Source:         http://specto.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:  hicolor-icon-theme
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       libxml2-python
Requires:       python-gconf
Requires:       python-gnomekeyring
Requires:       python-gobject2
Requires:       python-gstreamer-0_10
Requires:       python-gtk
Requires:       python-notify
Requires:       python-xdg
Recommends:     %{name}-lang
Suggests:       bzr
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch
%py_requires
%if 0%{?suse_version} < 1120
%define python_sitelib %{py_sitedir}
%endif

%description
Specto is a desktop application that will watch any user-specified events
(web, folder, ...). This will allow users, for instance, to specify a website
to watch, and Specto will automatically check for updates on the web page. It
will then notify the user when there is activity. This will allow the user to
be informed of new updates/events instead of having to look out for them.

%lang_package

%prep
%setup -q
# remove files that shouldn't be there
test -f ./data/icons/lastfm.svg.~1~
rm ./data/icons/*.svg.~?~
rm ./data/icons/scalable/*.svg.~?~

%build
python setup.py build

%install
python setup.py install --root %{buildroot} --prefix %{_prefix}
%suse_update_desktop_file %{name} X-SuSE-DesktopUtility
%find_lang %{name} %{?no_lang_C}
# remove files we add with %%doc
rm %{buildroot}%{_datadir}/doc/%{name}/{AUTHORS,COPYING}

%clean
rm -rf %{buildroot}

%post
%desktop_database_post
%icon_theme_cache_post

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/specto
%{python_sitelib}/spectlib/
%{python_sitelib}/specto-%{version}-*.egg-info
%{_datadir}/specto/
%{_datadir}/applications/specto.desktop
%{_datadir}/icons/hicolor/*/apps/specto.*
%dir %{_datadir}/indicators
%dir %{_datadir}/indicators/messages
%dir %{_datadir}/indicators/messages/applications
%{_datadir}/indicators/messages/applications/specto

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by