File gwibber.spec of Package gwibber

#
# spec file for package gwibber
#
# Copyright (c) 2012 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/
#


# Do not add Requires for optional Unity stuff that we don't have
%define __requires_exclude typelib\\(Dbusmenu\\)|typelib\\(Indicate\\)|typelib\\(Unity\\)

Name:           gwibber
Version:        3.4.1
Release:        0
Summary:        Microblogging Client
License:        GPL-2.0+
Group:          Productivity/Networking/Other
Url:            http://gwibber.com
Source:         %{name}-%{version}.tar.gz
# 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:  gobject-introspection-devel
BuildRequires:  intltool
BuildRequires:  python-base
BuildRequires:  update-desktop-files
BuildRequires:  vala >= 0.15.0
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(dee-1.0) >= 0.5.19
BuildRequires:  pkgconfig(gee-1.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtkspell-3.0)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(pangocairo)
Requires:       dbus-1-python
Requires:       python-egenix-mx-base
Requires:       python-imaging
Requires:       python-oauth
Requires:       python-simplejson
Requires:       python-xdg
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%glib2_gsettings_schema_requires
%py_requires

%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.

%package devel
Summary:        Microblogging Client -- Development Files
Group:          Productivity/Networking/Other
Requires:       %{name} = %{version}

%description devel
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
%configure \
        --disable-static \
        --disable-unity
make %{?_smp_mflags}

%install
%make_install
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file gwibber InstantMessaging
%suse_update_desktop_file gwibber-accounts X-SuSE-ControlCenter-Personal
%suse_update_desktop_file gwibber-preferences X-SuSE-ControlCenter-Personal
%find_lang %{name} %{?no_lang_C}
%fdupes -s %{buildroot}

%clean
rm -rf %{buildroot}

%post
/sbin/ldconfig
%glib2_gsettings_schema_post
%desktop_database_post

%postun
/sbin/ldconfig
%glib2_gsettings_schema_postun
%desktop_database_postun

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING COPYING.GPL-3 COPYING.LGPL-2.1 README
%{python_sitelib}/*
%{_bindir}/%{name}
%{_bindir}/%{name}-accounts
%{_bindir}/%{name}-poster
%{_bindir}/%{name}-preferences
%{_bindir}/%{name}-service
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-accounts.desktop
%{_datadir}/applications/%{name}-preferences.desktop
%{_datadir}/%{name}/
%{_datadir}/GConf/gsettings/gwibber.convert
%{_datadir}/dbus-1/services/com.Gwibber.*.service
%{_datadir}/glib-2.0/schemas/org.gwibber.gschema.xml
%dir %{_datadir}/indicators
%dir %{_datadir}/indicators/messages
%dir %{_datadir}/indicators/messages/applications
%{_datadir}/indicators/messages/applications/gwibber.indicator
%{_datadir}/icons/hicolor/
%{_mandir}/man1/gwibber.1%{?ext_man}
%{_mandir}/man1/gwibber-accounts.1%{?ext_man}
%{_mandir}/man1/gwibber-poster.1%{?ext_man}
# Libraries aren't used by anything outside of gwibber, so no slpp
%{_libdir}/girepository-1.0/Gwibber-0.2.typelib
%{_libdir}/girepository-1.0/GwibberGtk-0.2.typelib
%{_libdir}/libgwibber.so.*
%{_libdir}/libgwibber-gtk.so.*

%files devel
%defattr(-, root, root)
%{_includedir}/libgwibber-0.2/
%{_libdir}/libgwibber.so
%{_libdir}/libgwibber-gtk.so
%{_libdir}/pkgconfig/gwibber-0.2.pc
%{_libdir}/pkgconfig/gwibber-gtk-0.2.pc
%{_datadir}/gir-1.0/Gwibber-0.2.gir
%{_datadir}/gir-1.0/GwibberGtk-0.2.gir
%{_datadir}/vala/vapi/gwibber-0.2.deps
%{_datadir}/vala/vapi/gwibber-0.2.vapi
%{_datadir}/vala/vapi/gwibber-gtk-0.2.deps
%{_datadir}/vala/vapi/gwibber-gtk-0.2.vapi

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by