1 |
%define _requires_exceptions typelib(Unity) |
2 |
|
3 |
%define major 2 |
4 |
%define libname %mklibname %name %major |
5 |
%define girmajor 0.2 |
6 |
%define girname %mklibname %name-gir %girmajor |
7 |
%define develname %mklibname %name -d |
8 |
|
9 |
Name: gwibber |
10 |
Version: 3.4.2 |
11 |
Release: %mkrel 1 |
12 |
Summary: An open source microblogging client for GNOME developed with Python and GTK |
13 |
Group: Networking/Other |
14 |
License: GPLv2+ |
15 |
URL: https://launchpad.net/gwibber |
16 |
Source0: http://launchpad.net/gwibber/3.4/%{version}/+download/gwibber-%{version}.tar.gz |
17 |
Source1: https://launchpad.net/gwibber-service-sina/trunk/0.9.1/+download/gwibber-service-sina-0.9.1.tar.gz |
18 |
Patch0: gwibber-3.4.0-drop-gtk2.patch |
19 |
# Patch1 from ubuntu to migrate to gtk for sina service |
20 |
Patch1: gwibber-service-sina-0.9.1-gtk3.patch |
21 |
BuildRequires: pkgconfig(dee-1.0) >= 1.0.0 |
22 |
BuildRequires: pkgconfig(gdk-3.0) >= 3.2 |
23 |
BuildRequires: pkgconfig(gee-1.0) |
24 |
BuildRequires: pkgconfig(gio-2.0) |
25 |
BuildRequires: pkgconfig(gio-unix-2.0) >= 2.26 |
26 |
BuildRequires: pkgconfig(glib-2.0) >= 2.26 |
27 |
BuildRequires: pkgconfig(gmodule-2.0) |
28 |
BuildRequires: pkgconfig(gobject-2.0) >= 2.26 |
29 |
BuildRequires: pkgconfig(gsettings-desktop-schemas) |
30 |
BuildRequires: pkgconfig(gtk+-3.0) >= 3.2 |
31 |
BuildRequires: pkgconfig(json-glib-1.0) |
32 |
BuildRequires: pkgconfig(libnotify) >= 0.7 |
33 |
BuildRequires: pkgconfig(libsoup-2.4) |
34 |
BuildRequires: pkgconfig(pangocairo) |
35 |
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 0.10 |
36 |
BuildRequires: intltool >= 0.35.0 |
37 |
BuildRequires: vala >= 0.15 |
38 |
BuildRequires: python-devel >= 2.6 |
39 |
BuildRequires: gettext-devel |
40 |
BuildRequires: python-setuptools |
41 |
BuildRequires: python-distutils-extra |
42 |
Requires: python-sqlite2 |
43 |
Requires: python-dbus |
44 |
Requires: python-simplejson |
45 |
Requires: python-oauth |
46 |
Requires: python-imaging |
47 |
|
48 |
%description |
49 |
Gwibber is an open source microblogging client for GNOME developed with Python |
50 |
and GTK. It supports Twitter, Jaiku, Identi.ca, Facebook, and Digg. |
51 |
|
52 |
%package -n %libname |
53 |
Summary: Gwibber - shared library |
54 |
Group: Networking/Other |
55 |
|
56 |
%description -n %libname |
57 |
Gwibber - shared library. |
58 |
|
59 |
%package -n %girname |
60 |
Summary: GObject Introspection interface description for Gwibber |
61 |
Group: Networking/Other |
62 |
Requires: %libname = %version |
63 |
|
64 |
%description -n %girname |
65 |
GObject Introspection interface description for Gwibber. |
66 |
|
67 |
%package -n %develname |
68 |
Summary: Development files for Gwibber |
69 |
Group: Networking/Other |
70 |
Requires: %libname = %version |
71 |
|
72 |
%description -n %develname |
73 |
Development files for Gwibber. |
74 |
|
75 |
%prep |
76 |
%setup -q -a1 |
77 |
%patch0 -p0 |
78 |
pushd gwibber-service-sina-0.9.1 |
79 |
%patch1 -p1 |
80 |
popd |
81 |
|
82 |
find libgwibber-gtk -name *.c -delete |
83 |
|
84 |
%build |
85 |
%configure2_5x --disable-spell --disable-unity --disable-schemas-compile |
86 |
make |
87 |
|
88 |
pushd gwibber-service-sina-0.9.1 |
89 |
python setup.py build |
90 |
popd |
91 |
|
92 |
%install |
93 |
%makeinstall_std |
94 |
|
95 |
rm -f %buildroot%{_libdir}/*.la %buildroot%{_libdir}/*.a |
96 |
|
97 |
%find_lang %{name} |
98 |
|
99 |
pushd gwibber-service-sina-0.9.1 |
100 |
python setup.py install --root=%buildroot |
101 |
popd |
102 |
|
103 |
%files -f %{name}.lang |
104 |
%doc AUTHORS README |
105 |
%{_bindir}/* |
106 |
%{_datadir}/%{name} |
107 |
%{_datadir}/applications/*.desktop |
108 |
%{_iconsdir}/hicolor/*/apps/* |
109 |
%{_datadir}/dbus-1/services/* |
110 |
%{_datadir}/glib-2.0/schemas/*.xml |
111 |
%{_datadir}/indicators/messages/applications/gwibber.indicator |
112 |
%{py_puresitedir}/* |
113 |
%{_datadir}/GConf/gsettings/*.convert |
114 |
%{_mandir}/man1/* |
115 |
|
116 |
%files -n %libname |
117 |
%{_libdir}/*.so.%major |
118 |
%{_libdir}/*.so.%major.* |
119 |
|
120 |
%files -n %girname |
121 |
%{_libdir}/girepository-1.0/Gwibber*-%{girmajor}.typelib |
122 |
|
123 |
%files -n %develname |
124 |
%{_includedir}/* |
125 |
%{_libdir}/*.so |
126 |
%{_libdir}/pkgconfig/*.pc |
127 |
%{_datadir}/gir-1.0/*.gir |
128 |
%{_datadir}/vala/vapi/*.vapi |
129 |
%{_datadir}/vala/vapi/*.deps |