]>
Commit | Line | Data |
---|---|---|
f9575b16 JB |
1 | # |
2 | # Conditional build: | |
d0ac7247 | 3 | %bcond_with fedora # Kerberos 5 with Fedora realm |
5333ad48 | 4 | %bcond_with kerberos5 # Kerberos 5 support [TODO: heimdal support; needs MIT currently] |
901c0c34 | 5 | %bcond_with webkitinspector # WebKitInspector for the embedded web view |
875be71d | 6 | |
5c340aca | 7 | Summary: Provide online accounts information |
f9575b16 | 8 | Summary(pl.UTF-8): Dostarczanie informacji o kontach w serwisach sieciowych |
5c340aca | 9 | Name: gnome-online-accounts |
ff0f9231 | 10 | Version: 3.48.0 |
b989c626 | 11 | Release: 2 |
5c340aca PZ |
12 | License: LGPL v2+ |
13 | Group: Libraries | |
ff0f9231 JB |
14 | Source0: https://download.gnome.org/sources/gnome-online-accounts/3.48/%{name}-%{version}.tar.xz |
15 | # Source0-md5: 9406339e88caf9ecd11191f96b6cc10e | |
c97449e9 | 16 | Patch0: no-gnome-post-install.patch |
005f0ecb | 17 | URL: https://wiki.gnome.org/Projects/GnomeOnlineAccounts |
ff0f9231 | 18 | BuildRequires: dbus-devel |
6f7bf9fb | 19 | BuildRequires: gettext-tools >= 0.19.8 |
d0ac7247 | 20 | BuildRequires: glib2-devel >= 1:2.67.4 |
f7f2e20f | 21 | BuildRequires: gobject-introspection-devel >= 0.6.2 |
39fe8ce3 | 22 | BuildRequires: gtk+3-devel >= 3.20.0 |
f9575b16 | 23 | BuildRequires: gtk-doc >= 1.3 |
d0ac7247 | 24 | BuildRequires: gtk-webkit4.1-devel >= 2.33.1 |
5c340aca | 25 | BuildRequires: json-glib-devel |
5333ad48 | 26 | BuildRequires: libsecret-devel >= 0.5 |
d0ac7247 | 27 | BuildRequires: libsoup3-devel >= 3.0 |
f9575b16 JB |
28 | BuildRequires: libxml2-devel >= 2 |
29 | BuildRequires: libxslt-progs | |
d0ac7247 JB |
30 | BuildRequires: meson >= 0.57.0 |
31 | BuildRequires: ninja >= 1.5 | |
bd9adb7c | 32 | BuildRequires: pkgconfig >= 1:0.16 |
d0ac7247 | 33 | BuildRequires: rest1-devel >= 0.9.0 |
1366e629 | 34 | BuildRequires: rpm-build >= 4.6 |
a7a2897a | 35 | BuildRequires: rpmbuild(macros) >= 1.752 |
1edf9497 | 36 | BuildRequires: tar >= 1:1.22 |
ff0f9231 | 37 | BuildRequires: vala |
1edf9497 | 38 | BuildRequires: xz |
d0ac7247 | 39 | %if %{with fedora} || %{with kerberos5} |
f9575b16 | 40 | BuildRequires: gcr-devel >= 3 |
5333ad48 | 41 | BuildRequires: krb5-devel |
f9575b16 | 42 | %endif |
4d8b1caa | 43 | Requires: %{name}-libs = %{version}-%{release} |
5c340aca | 44 | Requires(post,postun): gtk-update-icon-cache |
0bf81c11 MB |
45 | Requires: hicolor-icon-theme |
46 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
5c340aca PZ |
47 | |
48 | %description | |
49 | gnome-online-accounts provides interfaces so applications and | |
50 | libraries in GNOME can access the user's online accounts. | |
51 | ||
f9575b16 JB |
52 | %description -l pl.UTF-8 |
53 | gnome-online-accounts udostępnia interfejsy pozwalające aplikacjom i | |
54 | bibliotekom GNOME na dostęp do kont użytkownika w serwisach | |
55 | sieciowych. | |
56 | ||
f149aae8 ER |
57 | %package libs |
58 | Summary: gnome-online-accounts libraries | |
7f6440ff | 59 | Summary(pl.UTF-8): Biblioteki gnome-online-accounts |
f149aae8 | 60 | Group: Libraries |
d0ac7247 | 61 | Requires: glib2 >= 1:2.67.4 |
39fe8ce3 | 62 | Requires: gtk+3 >= 3.20.0 |
d0ac7247 | 63 | Requires: gtk-webkit4.1 >= 2.33.1 |
f6884811 | 64 | Requires: libsecret >= 0.5 |
d0ac7247 | 65 | Requires: libsoup3 >= 3.0 |
f149aae8 ER |
66 | Conflicts: gnome-online-accounts < 3.8.2-1.1 |
67 | ||
68 | %description libs | |
69 | gnome-online-accounts libraries. | |
70 | ||
7f6440ff JB |
71 | %description libs -l pl.UTF-8 |
72 | Biblioteki gnome-online-accounts. | |
73 | ||
5c340aca | 74 | %package devel |
f9575b16 JB |
75 | Summary: Development files for gnome-online-accounts libraries |
76 | Summary(pl.UTF-8): Pliki programistyczne bibliotek gnome-online-accounts | |
5c340aca | 77 | Group: Development/Libraries |
f149aae8 | 78 | Requires: %{name}-libs = %{version}-%{release} |
d0ac7247 | 79 | Requires: glib2-devel >= 1:2.67.4 |
7613b519 | 80 | Requires: gtk+3-devel >= 3.20.0 |
5c340aca PZ |
81 | |
82 | %description devel | |
f9575b16 JB |
83 | The gnome-online-accounts-devel package contains the header files for |
84 | developing applications that use gnome-online-accounts. | |
85 | ||
86 | %description devel -l pl.UTF-8 | |
87 | Ten pakiet zawiera pliki nagłówkowe do tworzenia aplikacji | |
88 | wykorzystujących gnome-online-accounts. | |
5c340aca PZ |
89 | |
90 | %package apidocs | |
91 | Summary: GOA API documentation | |
f9575b16 | 92 | Summary(pl.UTF-8): Dokumentacja API GOA |
5c340aca PZ |
93 | Group: Documentation |
94 | Requires: gtk-doc-common | |
2bf19eb7 | 95 | BuildArch: noarch |
5c340aca PZ |
96 | |
97 | %description apidocs | |
98 | GOA API documentation. | |
99 | ||
f9575b16 JB |
100 | %description apidocs -l pl.UTF-8 |
101 | Dokumentacja API GOA. | |
102 | ||
39fe8ce3 MB |
103 | %package -n vala-gnome-online-accounts |
104 | Summary: Vala API for gnome-online-accounts libraries | |
105 | Summary(pl.UTF-8): API języka Vala do bibliotek gnome-online-accounts | |
106 | Group: Development/Libraries | |
107 | Requires: %{name}-devel = %{version}-%{release} | |
108 | Requires: vala >= 2:0.16.0 | |
2bf19eb7 | 109 | BuildArch: noarch |
39fe8ce3 MB |
110 | |
111 | %description -n vala-gnome-online-accounts | |
112 | Vala API for gnome-online-accounts libraries. | |
113 | ||
114 | %description -n vala-gnome-online-accounts -l pl.UTF-8 | |
115 | API języka Vala do bibliotek gnome-online-accounts. | |
116 | ||
5c340aca PZ |
117 | %prep |
118 | %setup -q | |
c97449e9 | 119 | %patch0 -p1 |
5c340aca PZ |
120 | |
121 | %build | |
d0ac7247 JB |
122 | %meson build \ |
123 | %{?with_fedora:-Dfedora=true} \ | |
124 | -Dgtk_doc=true \ | |
125 | %{?with_webkitinspector:-Dinspector=true} \ | |
126 | %{!?with_kerberos:-Dkerberos=false} \ | |
127 | -Dman=true \ | |
128 | -Dmedia_server=true | |
129 | ||
130 | %ninja_build -C build | |
5c340aca PZ |
131 | |
132 | %install | |
133 | rm -rf $RPM_BUILD_ROOT | |
0bf81c11 | 134 | |
d0ac7247 | 135 | %ninja_install -C build |
5c340aca | 136 | |
b989c626 JB |
137 | # not supported by glibc (as of 2.37) |
138 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
139 | ||
2baab79a | 140 | %find_lang gnome-online-accounts --all-name |
0bf81c11 MB |
141 | |
142 | %clean | |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
5c340aca | 145 | %post |
5c340aca PZ |
146 | %update_icon_cache hicolor |
147 | ||
148 | %postun | |
5c340aca PZ |
149 | %update_icon_cache hicolor |
150 | ||
6bec0e5b JB |
151 | %post libs -p /sbin/ldconfig |
152 | %postun libs -p /sbin/ldconfig | |
153 | ||
0bf81c11 | 154 | %files -f gnome-online-accounts.lang |
5c340aca | 155 | %defattr(644,root,root,755) |
6153193a | 156 | %doc NEWS README |
5c340aca | 157 | %attr(755,root,root) %{_libexecdir}/goa-daemon |
d0ac7247 JB |
158 | %if %{with fedora} || %{with kerberos5} |
159 | %attr(755,root,root) %{_libexecdir}/goa-identity-service | |
160 | %endif | |
901c0c34 JB |
161 | %dir %{_libdir}/goa-1.0 |
162 | %dir %{_libdir}/goa-1.0/web-extensions | |
163 | %attr(755,root,root) %{_libdir}/goa-1.0/web-extensions/libgoawebextension.so | |
5c340aca | 164 | %{_datadir}/dbus-1/services/org.gnome.OnlineAccounts.service |
81636c62 | 165 | %{_datadir}/glib-2.0/schemas/org.gnome.online-accounts.gschema.xml |
005f0ecb JB |
166 | %{_iconsdir}/hicolor/scalable/apps/goa-account*.svg |
167 | %{_iconsdir}/hicolor/symbolic/apps/goa-account*-symbolic.svg | |
6f7bf9fb | 168 | %{_mandir}/man8/goa-daemon.8* |
5c340aca | 169 | |
f149aae8 ER |
170 | %files libs |
171 | %defattr(644,root,root,755) | |
172 | %attr(755,root,root) %{_libdir}/libgoa-1.0.so.*.*.* | |
173 | %attr(755,root,root) %ghost %{_libdir}/libgoa-1.0.so.0 | |
174 | %attr(755,root,root) %{_libdir}/libgoa-backend-1.0.so.*.*.* | |
2baab79a | 175 | %attr(755,root,root) %ghost %{_libdir}/libgoa-backend-1.0.so.1 |
9fa414ca | 176 | %{_libdir}/girepository-1.0/Goa-1.0.typelib |
f149aae8 | 177 | |
5c340aca PZ |
178 | %files devel |
179 | %defattr(644,root,root,755) | |
0bf81c11 MB |
180 | %attr(755,root,root) %{_libdir}/libgoa-1.0.so |
181 | %attr(755,root,root) %{_libdir}/libgoa-backend-1.0.so | |
cfe3f799 MB |
182 | %dir %{_libdir}/goa-1.0 |
183 | %{_libdir}/goa-1.0/include | |
0bf81c11 | 184 | %{_includedir}/goa-1.0 |
5c340aca PZ |
185 | %{_datadir}/gir-1.0/Goa-1.0.gir |
186 | %{_pkgconfigdir}/goa-1.0.pc | |
187 | %{_pkgconfigdir}/goa-backend-1.0.pc | |
188 | ||
189 | %files apidocs | |
190 | %defattr(644,root,root,755) | |
191 | %{_gtkdocdir}/goa | |
39fe8ce3 MB |
192 | |
193 | %files -n vala-gnome-online-accounts | |
194 | %defattr(644,root,root,755) | |
195 | %{_datadir}/vala/vapi/goa-1.0.deps | |
196 | %{_datadir}/vala/vapi/goa-1.0.vapi |