]>
Commit | Line | Data |
---|---|---|
f9575b16 JB |
1 | # |
2 | # Conditional build: | |
5333ad48 | 3 | %bcond_with kerberos5 # Kerberos 5 support [TODO: heimdal support; needs MIT currently] |
5333ad48 | 4 | %bcond_with uoa # single sign-on (aka Ubuntu Online Accounts) in TPAW |
875be71d | 5 | |
5c340aca | 6 | Summary: Provide online accounts information |
f9575b16 | 7 | Summary(pl.UTF-8): Dostarczanie informacji o kontach w serwisach sieciowych |
5c340aca | 8 | Name: gnome-online-accounts |
a9612e58 | 9 | Version: 3.14.3 |
5333ad48 | 10 | Release: 1 |
5c340aca PZ |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
81636c62 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/gnome-online-accounts/3.14/%{name}-%{version}.tar.xz |
a9612e58 | 14 | # Source0-md5: e67d0b293a3843c5a9f427be7416a682 |
f6884811 | 15 | Patch0: %{name}-link.patch |
5c340aca | 16 | URL: http://www.gnome.org/ |
0957294b | 17 | BuildRequires: autoconf >= 2.64 |
5333ad48 | 18 | BuildRequires: automake >= 1:1.11 |
5333ad48 | 19 | BuildRequires: dbus-glib-devel |
5208e2a1 | 20 | BuildRequires: gettext-tools >= 0.17 |
cfe3f799 | 21 | BuildRequires: glib2-devel >= 1:2.36.0 |
905dbfb3 | 22 | BuildRequires: gnome-common |
68dd47ae | 23 | BuildRequires: gnome-doc-utils >= 0.12.1 |
f7f2e20f | 24 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
307c2199 | 25 | BuildRequires: gtk+3-devel >= 3.12.0 |
f9575b16 | 26 | BuildRequires: gtk-doc >= 1.3 |
2baab79a | 27 | BuildRequires: gtk-webkit3-devel >= 2.2.0 |
81636c62 | 28 | BuildRequires: intltool >= 0.50.1 |
5c340aca | 29 | BuildRequires: json-glib-devel |
f6884811 JB |
30 | %{?with_uoa:BuildRequires: libaccount-plugin-devel} |
31 | %{?with_uoa:BuildRequires: libaccounts-glib-devel >= 1.4} | |
5333ad48 | 32 | BuildRequires: libsecret-devel >= 0.5 |
0957294b | 33 | %{?with_uoa:BuildRequires: libsignon-glib-devel >= 1.8} |
7f6440ff | 34 | BuildRequires: libsoup-devel >= 2.42.0 |
5333ad48 | 35 | BuildRequires: libtool >= 2:2.2 |
f9575b16 JB |
36 | BuildRequires: libxml2-devel >= 2 |
37 | BuildRequires: libxslt-progs | |
38 | BuildRequires: pkgconfig | |
f7f2e20f | 39 | BuildRequires: rest-devel >= 0.7 |
0bf81c11 | 40 | BuildRequires: rpmbuild(macros) >= 1.311 |
1edf9497 | 41 | BuildRequires: tar >= 1:1.22 |
0957294b | 42 | BuildRequires: telepathy-glib-devel >= 0.22.0 |
5333ad48 JB |
43 | %{?with_uoa:BuildRequires: telepathy-mission-control-devel >= 5.13.1} |
44 | BuildRequires: udev-glib-devel | |
45 | BuildRequires: xorg-lib-libX11-devel | |
1edf9497 | 46 | BuildRequires: xz |
f149aae8 | 47 | Requires: %{name}-libs = %{version}-%{release} |
f9575b16 | 48 | %if %{with kerberos5} |
f9575b16 | 49 | BuildRequires: gcr-devel >= 3 |
5333ad48 | 50 | BuildRequires: krb5-devel |
f9575b16 | 51 | %endif |
5c340aca | 52 | Requires(post,postun): gtk-update-icon-cache |
0bf81c11 MB |
53 | Requires: hicolor-icon-theme |
54 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5c340aca PZ |
55 | |
56 | %description | |
57 | gnome-online-accounts provides interfaces so applications and | |
58 | libraries in GNOME can access the user's online accounts. | |
59 | ||
f9575b16 JB |
60 | %description -l pl.UTF-8 |
61 | gnome-online-accounts udostępnia interfejsy pozwalające aplikacjom i | |
62 | bibliotekom GNOME na dostęp do kont użytkownika w serwisach | |
63 | sieciowych. | |
64 | ||
f149aae8 ER |
65 | %package libs |
66 | Summary: gnome-online-accounts libraries | |
7f6440ff | 67 | Summary(pl.UTF-8): Biblioteki gnome-online-accounts |
f149aae8 | 68 | Group: Libraries |
2baab79a | 69 | Requires: glib2 >= 1:2.36.0 |
307c2199 | 70 | Requires: gtk+3 >= 3.12.0 |
2baab79a | 71 | Requires: gtk-webkit3 >= 2.2.0 |
f6884811 JB |
72 | %{?with_uoa:Requires: libaccounts-glib >= 1.4} |
73 | Requires: libsecret >= 0.5 | |
0957294b | 74 | %{?with_uoa:Requires: libsignon-glib >= 1.8} |
2baab79a | 75 | Requires: libsoup >= 2.42.0 |
0957294b | 76 | Requires: telepathy-glib >= 0.22.0 |
f149aae8 ER |
77 | Conflicts: gnome-online-accounts < 3.8.2-1.1 |
78 | ||
79 | %description libs | |
80 | gnome-online-accounts libraries. | |
81 | ||
7f6440ff JB |
82 | %description libs -l pl.UTF-8 |
83 | Biblioteki gnome-online-accounts. | |
84 | ||
5c340aca | 85 | %package devel |
f9575b16 JB |
86 | Summary: Development files for gnome-online-accounts libraries |
87 | Summary(pl.UTF-8): Pliki programistyczne bibliotek gnome-online-accounts | |
5c340aca | 88 | Group: Development/Libraries |
f149aae8 | 89 | Requires: %{name}-libs = %{version}-%{release} |
cfe3f799 | 90 | Requires: glib2-devel >= 1:2.36.0 |
307c2199 | 91 | Requires: gtk+3-devel >= 3.12.0 |
5c340aca PZ |
92 | |
93 | %description devel | |
f9575b16 JB |
94 | The gnome-online-accounts-devel package contains the header files for |
95 | developing applications that use gnome-online-accounts. | |
96 | ||
97 | %description devel -l pl.UTF-8 | |
98 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
99 | wykorzystujących gnome-online-accounts. | |
5c340aca PZ |
100 | |
101 | %package apidocs | |
102 | Summary: GOA API documentation | |
f9575b16 | 103 | Summary(pl.UTF-8): Dokumentacja API GOA |
5c340aca PZ |
104 | Group: Documentation |
105 | Requires: gtk-doc-common | |
106 | ||
107 | %description apidocs | |
108 | GOA API documentation. | |
109 | ||
f9575b16 JB |
110 | %description apidocs -l pl.UTF-8 |
111 | Dokumentacja API GOA. | |
112 | ||
5c340aca PZ |
113 | %prep |
114 | %setup -q | |
f6884811 | 115 | %patch0 -p1 |
5c340aca PZ |
116 | |
117 | %build | |
118 | %{__gnome_doc_prepare} | |
119 | %{__gnome_doc_common} | |
120 | %{__glib_gettextize} | |
121 | %{__intltoolize} | |
122 | %{__libtoolize} | |
6153193a | 123 | %{__aclocal} -I m4 |
5c340aca PZ |
124 | %{__autoconf} |
125 | %{__autoheader} | |
126 | %{__automake} | |
6153193a JB |
127 | cd telepathy-account-widgets |
128 | %{__libtoolize} | |
129 | %{__aclocal} -I m4 | |
130 | %{__autoconf} | |
131 | %{__autoheader} | |
132 | %{__automake} | |
133 | cd .. | |
5c340aca | 134 | %configure \ |
1edf9497 | 135 | --disable-silent-rules \ |
7f6440ff | 136 | --disable-static \ |
5333ad48 | 137 | %{!?with_uoa:--disable-ubuntu-online-accounts} \ |
5c340aca | 138 | --enable-gtk-doc \ |
f9575b16 | 139 | %{?with_kerberos5:--enable-kerberos} \ |
6153193a | 140 | --with-html-dir=%{_gtkdocdir} |
5c340aca PZ |
141 | %{__make} |
142 | ||
143 | %install | |
144 | rm -rf $RPM_BUILD_ROOT | |
0bf81c11 | 145 | |
5c340aca PZ |
146 | %{__make} install \ |
147 | DESTDIR=$RPM_BUILD_ROOT | |
0bf81c11 | 148 | |
f9575b16 | 149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
5c340aca | 150 | |
2baab79a | 151 | %find_lang gnome-online-accounts --all-name |
0bf81c11 MB |
152 | |
153 | %clean | |
154 | rm -rf $RPM_BUILD_ROOT | |
155 | ||
5c340aca | 156 | %post |
5c340aca PZ |
157 | %update_icon_cache hicolor |
158 | ||
159 | %postun | |
5c340aca PZ |
160 | %update_icon_cache hicolor |
161 | ||
6bec0e5b JB |
162 | %post libs -p /sbin/ldconfig |
163 | %postun libs -p /sbin/ldconfig | |
164 | ||
0bf81c11 | 165 | %files -f gnome-online-accounts.lang |
5c340aca | 166 | %defattr(644,root,root,755) |
6153193a | 167 | %doc NEWS README |
5c340aca | 168 | %attr(755,root,root) %{_libexecdir}/goa-daemon |
5c340aca | 169 | %{_datadir}/dbus-1/services/org.gnome.OnlineAccounts.service |
81636c62 | 170 | %{_datadir}/glib-2.0/schemas/org.gnome.online-accounts.gschema.xml |
2baab79a MB |
171 | %{_iconsdir}/hicolor/*/apps/*.png |
172 | %{_iconsdir}/hicolor/*/apps/*.svg | |
5c340aca PZ |
173 | %{_mandir}/man8/goa-daemon.8* |
174 | %{_libdir}/girepository-1.0/Goa-1.0.typelib | |
2604ef52 | 175 | %{_datadir}/gnome-online-accounts |
5c340aca | 176 | |
f149aae8 ER |
177 | %files libs |
178 | %defattr(644,root,root,755) | |
179 | %attr(755,root,root) %{_libdir}/libgoa-1.0.so.*.*.* | |
180 | %attr(755,root,root) %ghost %{_libdir}/libgoa-1.0.so.0 | |
181 | %attr(755,root,root) %{_libdir}/libgoa-backend-1.0.so.*.*.* | |
2baab79a | 182 | %attr(755,root,root) %ghost %{_libdir}/libgoa-backend-1.0.so.1 |
f149aae8 | 183 | |
5c340aca PZ |
184 | %files devel |
185 | %defattr(644,root,root,755) | |
0bf81c11 MB |
186 | %attr(755,root,root) %{_libdir}/libgoa-1.0.so |
187 | %attr(755,root,root) %{_libdir}/libgoa-backend-1.0.so | |
cfe3f799 MB |
188 | %dir %{_libdir}/goa-1.0 |
189 | %{_libdir}/goa-1.0/include | |
0bf81c11 | 190 | %{_includedir}/goa-1.0 |
5c340aca PZ |
191 | %{_datadir}/gir-1.0/Goa-1.0.gir |
192 | %{_pkgconfigdir}/goa-1.0.pc | |
193 | %{_pkgconfigdir}/goa-backend-1.0.pc | |
194 | ||
195 | %files apidocs | |
196 | %defattr(644,root,root,755) | |
197 | %{_gtkdocdir}/goa |