File gwibber.spec of Package gwibber

#
# spec file for package gwibber
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2008 Andrew Wafaa
#
# 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:           gwibber
Version:        2.32.2
Release:        2
License:        GPLv2+
Summary:        Microblogging Client
Url:            http://gwibber.com
Group:          Productivity/Networking/Other
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM gwibber-stnx.diff lp#420986 riggwelter@opensuse.org -- Add stnx.at url shortener
Patch0:         gwibber-stnx.diff
# PATCH-FIX-OPENSUSE gwibber-sqlite-migrate-opensuse.diff riggwelter@opensuse.org -- Fix migration from 11.3's gwibber
Patch3:         gwibber-sqlite-migrate-opensuse.diff
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  python-distutils-extra
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
Requires:       dbus-1-python
Requires:       gnome-python-desktop
Requires:       python-curl
Requires:       python-egenix-mx-base
Requires:       python-feedparser
Requires:       python-gnome
Requires:       python-imaging
Requires:       python-mako
Requires:       python-markupsafe
Requires:       python-notify
Requires:       python-oauth
Requires:       python-simplejson
Requires:       python-webkitgtk
Requires:       python-xdg
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%define python_sitearch %{py_sitedir}
%endif

%description
Gwibber is an open source microblogging client for GNOME developed with
Python, GTK and WebKit. It supports Twitter, identi.ca, Jaiku, Facebook,
Pownce, Flickr and Digg.

%lang_package
%prep
%setup -q
%patch0 -p1
%patch3 -p1

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} \
                --install-lib=%{py_sitedir}
%suse_update_desktop_file %name InstantMessaging
%suse_update_desktop_file gwibber-preferences InstantMessaging
%suse_update_desktop_file gwibber-accounts InstantMessaging
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%if 0%{?suse_version} > 1130

%post
%desktop_database_post
%endif

%if 0%{?suse_version} > 1130

%postun
%desktop_database_postun
%endif

%files
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{python_sitearch}/*
%{_bindir}/%{name}
%{_bindir}/%{name}-*
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%dir %{_datadir}/dbus-1
%dir %{_datadir}/dbus-1/services
%{_datadir}/dbus-1/services/com.GwibberClient.service
%{_datadir}/dbus-1/services/com.Gwibber.Accounts.service
%{_datadir}/dbus-1/services/com.Gwibber.Connection.service
%{_datadir}/dbus-1/services/com.Gwibber.Searches.service
%{_datadir}/dbus-1/services/com.Gwibber.Service.service
%{_datadir}/dbus-1/services/com.Gwibber.Streams.service
%{_datadir}/dbus-1/services/com.Gwibber.URLShorten.service
%dir %{_datadir}/indicators
%dir %{_datadir}/indicators/messages
%dir %{_datadir}/indicators/messages/applications
%{_datadir}/indicators/messages/applications/%{name}
%{_datadir}/pixmaps/%{name}.svg

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by