File gwibber.spec of Package gwibber

#
# spec file for package gwibber (Version 1.2.0+bzr358)
#
# Copyright (c) 2009 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:        1.2.0+bzr358
Release:        3
License:        GPL v2 or later
Summary:        Microblogging Client
Url:            https://launchpad.net/gwibber
Group:          Productivity/Networking/Other
Source:         %{name}-%{version}.tar.bz2
# PATCH-FEATURE-UPSTREAM gwibber-stnx.diff lp#420986
Patch2:         gwibber-stnx.diff
BuildRequires:  fdupes
BuildRequires:  intltool
BuildRequires:  python
BuildRequires:  python-distutils-extra
BuildRequires:  scrollkeeper
BuildRequires:  update-desktop-files
Requires:       %{name}-lang = %{version}
Requires:       dbus-1-python
Requires:       python-egenix-mx-base
Requires:       python-feedparser
Requires:       python-imaging
Requires:       python-mako
Requires:       python-notify
Requires:       python-simplejson
Requires:       python-webkitgtk
Requires:       python-xdg
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%py_requires
%if %suse_version <= 1110
%define python_sitelib %{py_sitedir}
%else
BuildArch:      noarch
%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
%patch2 -p1

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
cd %{buildroot}%{_datadir}/%{name}/ui/themes
cp -a dark-gwilouche default
cp -a dark-gwilouche darkilouche
cd -
%suse_update_desktop_file -N Gwibber %name InstantMessaging
%find_lang %{name}
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS COPYING README
%{python_sitelib}/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/applications/%{name}.desktop

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by