]>
Commit | Line | Data |
---|---|---|
f5d05c9c ŁK |
1 | # |
2 | # Conditional build: | |
526c38c1 JB |
3 | %bcond_with apidocs # API documentation (broken install: HTML for devhelp part, sources+HTML for gtk-doc?) |
4 | %bcond_without vala # Vala API | |
5 | %bcond_without bluez # Bluez backend | |
6 | %bcond_without evolution # EDS (Evolution Data Server) backend | |
7 | %bcond_without ofono # oFono backend | |
682a4b07 | 8 | %bcond_with sysprof # sysprof based profiling |
526c38c1 JB |
9 | %bcond_without telepathy # Telepathy backend |
10 | %bcond_without zeitgeist # ` Zeitgeist support in Telepathy backend | |
526c38c1 JB |
11 | |
12 | %if %{without telepathy} | |
13 | %undefine with_zeitgeist | |
14 | %endif | |
a439583d | 15 | Summary: GObject contact aggregation library |
8d57488c | 16 | Summary(pl.UTF-8): Biblioteka GObject do agregowania kontaktów |
a439583d | 17 | Name: folks |
682a4b07 | 18 | Version: 0.15.6 |
6812e038 | 19 | Release: 2 |
8d57488c | 20 | License: LGPL v2.1+ |
a439583d | 21 | Group: Libraries |
2e48eb99 | 22 | Source0: https://download.gnome.org/sources/folks/0.15/%{name}-%{version}.tar.xz |
682a4b07 | 23 | # Source0-md5: 04b6684031a463fb7a28d2d6f70b6d23 |
e013a58d | 24 | Patch0: %{name}-meson.patch |
6438d6e1 | 25 | URL: https://wiki.gnome.org/Projects/Folks |
8d57488c | 26 | BuildRequires: dbus-devel |
526c38c1 JB |
27 | %{?with_telepathy:BuildRequires: dbus-glib-devel} |
28 | %if %{with bluez} || %{with evolution} || %{with ofono} | |
29 | # libebook for all; libebook-contacts, libedataserver, evolution-data-server for evolution | |
2e48eb99 | 30 | BuildRequires: evolution-data-server-devel >= 3.38 |
526c38c1 | 31 | %endif |
1144110f | 32 | BuildRequires: gettext-tools |
2e48eb99 | 33 | BuildRequires: glib2-devel >= 1:2.58 |
8b3156f3 | 34 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
f3eb456c | 35 | BuildRequires: libgee-devel >= 0.8.4 |
8d57488c | 36 | BuildRequires: libxml2-devel >= 2.0 |
682a4b07 | 37 | BuildRequires: meson >= 0.57 |
be39b557 | 38 | BuildRequires: ncurses-devel |
e013a58d | 39 | BuildRequires: ninja >= 1.5 |
99340317 | 40 | BuildRequires: pkgconfig >= 1:0.21 |
e013a58d | 41 | BuildRequires: python3 >= 1:3.2 |
526c38c1 | 42 | %{?with_bluez:BuildRequires: python3-dbusmock} |
2e48eb99 | 43 | BuildRequires: rpm-build >= 4.6 |
e013a58d | 44 | BuildRequires: rpmbuild(macros) >= 1.736 |
cb1d7e18 | 45 | BuildRequires: readline-devel |
682a4b07 | 46 | %{?with_sysprof:BuildRequires: sysprof-devel >= 3.38.0} |
20895c66 | 47 | BuildRequires: tar >= 1:1.22 |
526c38c1 | 48 | %{?with_telepathy:BuildRequires: telepathy-glib-devel >= 0.19.9} |
f5d05c9c | 49 | %if %{with vala} |
8d57488c | 50 | BuildRequires: vala >= 2:0.22.1 |
526c38c1 | 51 | %if %{with bluez} || %{with evolution} || %{with ofono} |
2e48eb99 | 52 | BuildRequires: vala-evolution-data-server >= 3.38 |
526c38c1 | 53 | %endif |
f3eb456c | 54 | BuildRequires: vala-libgee >= 0.8.4 |
526c38c1 | 55 | %{?with_telepathy:BuildRequires: vala-telepathy-glib >= 0.19.9} |
526c38c1 | 56 | %{?with_zeitgeist:BuildRequires: vala-zeitgeist >= 0.9.14} |
f5d05c9c | 57 | %endif |
e013a58d | 58 | %{?with_apidocs:BuildRequires: valadoc >= 0.3.1} |
20895c66 | 59 | BuildRequires: xz |
526c38c1 JB |
60 | %{?with_zeitgeist:BuildRequires: zeitgeist-devel >= 0.9.14} |
61 | %if %{with bluez} || %{with evolution} || %{with ofono} | |
2e48eb99 | 62 | Requires: evolution-data-server-libs >= 3.38 |
526c38c1 | 63 | %endif |
2e48eb99 | 64 | Requires: glib2 >= 1:2.58 |
f3eb456c | 65 | Requires: libgee >= 0.8.4 |
526c38c1 | 66 | %{?with_telepathy:Requires: telepathy-glib >= 0.19.9} |
2a61e194 | 67 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
a439583d | 68 | |
2e48eb99 | 69 | %define abiver 26 |
e013a58d | 70 | |
a439583d PZ |
71 | %description |
72 | libfolks is a library that aggregates people from multiple sources | |
73 | (e.g. Telepathy connection managers and eventually evolution data | |
74 | server, Facebook, etc.) to create meta-contacts. | |
75 | ||
8d57488c JB |
76 | %description -l pl.UTF-8 |
77 | libfolks to biblioteka gromadząca osoby z wielu źródeł (np. zarządców | |
78 | połączeń Telepathy, serwera danych Evolution, Facebooka itp.), aby | |
79 | utworzyć metakontakty. | |
80 | ||
2a61e194 | 81 | %package devel |
99340317 MB |
82 | Summary: Development files for folks libraries |
83 | Summary(pl.UTF-8): Pliki programistyczne bibliotek folks | |
a439583d PZ |
84 | Group: Development/Libraries |
85 | Requires: %{name} = %{version}-%{release} | |
526c38c1 | 86 | %if %{with bluez} || %{with evolution} || %{with ofono} |
2e48eb99 | 87 | Requires: evolution-data-server-devel >= 3.38 |
526c38c1 | 88 | %endif |
2e48eb99 | 89 | Requires: glib2-devel >= 1:2.58 |
50d18e2e | 90 | Requires: libgee-devel >= 0.8.4 |
526c38c1 | 91 | %{?with_telepathy:Requires: telepathy-glib-devel >= 0.19.9} |
a439583d | 92 | |
2a61e194 | 93 | %description devel |
99340317 MB |
94 | Development files for folks libraries. |
95 | ||
96 | %description devel -l pl.UTF-8 | |
97 | Pliki programistyczne bibliotek folks. | |
a439583d | 98 | |
f5d05c9c ŁK |
99 | %package -n vala-folks |
100 | Summary: folks API for Vala language | |
101 | Summary(pl.UTF-8): API folks dla języka Vala | |
102 | Group: Development/Libraries | |
103 | Requires: %{name}-devel = %{version}-%{release} | |
8d57488c | 104 | Requires: vala >= 2:0.22.1 |
526c38c1 | 105 | %if %{with bluez} || %{with evolution} || %{with ofono} |
2e48eb99 | 106 | Requires: vala-evolution-data-server >= 3.38 |
526c38c1 | 107 | %endif |
8d57488c | 108 | Requires: vala-libgee >= 0.8.4 |
526c38c1 | 109 | %{?with_telepathy:Requires: vala-telepathy-glib >= 0.19.9} |
d3de6297 | 110 | BuildArch: noarch |
f5d05c9c ŁK |
111 | |
112 | %description -n vala-folks | |
113 | folks API for Vala language. | |
114 | ||
115 | %description -n vala-folks -l pl.UTF-8 | |
116 | API folks dla języka Vala. | |
117 | ||
a439583d PZ |
118 | %prep |
119 | %setup -q | |
e83b35d4 | 120 | %patch0 -p1 |
a439583d PZ |
121 | |
122 | %build | |
e013a58d | 123 | %meson build \ |
526c38c1 | 124 | %{!?with_bluez:-Dbluez_backend=false} \ |
e013a58d | 125 | %{?with_apidocs:-Ddocs=true} \ |
526c38c1 JB |
126 | %{!?with_evolution:-Deds_backend=false} \ |
127 | %{!?with_ofono:-Dofono_backend=false} \ | |
682a4b07 | 128 | %{?with_sysprof:-Dprofiling=true} \ |
526c38c1 JB |
129 | %{!?with_telepathy:-Dtelepathy_backend=false} \ |
130 | %{?with_zeitgeist:-Dzeitgeist=true} | |
e013a58d JB |
131 | |
132 | %ninja_build -C build | |
a439583d PZ |
133 | |
134 | %install | |
135 | rm -rf $RPM_BUILD_ROOT | |
99340317 | 136 | |
e013a58d | 137 | %ninja_install -C build |
99340317 | 138 | |
6812e038 JB |
139 | # not supported by glibc (as of 2.37) |
140 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ie | |
141 | ||
99340317 | 142 | %find_lang %{name} |
a439583d | 143 | |
2a61e194 | 144 | %clean |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
8d57488c JB |
147 | %post -p /sbin/ldconfig |
148 | %postun -p /sbin/ldconfig | |
a439583d | 149 | |
99340317 | 150 | %files -f %{name}.lang |
a439583d | 151 | %defattr(644,root,root,755) |
2e48eb99 | 152 | %doc AUTHORS NEWS README.md |
55e966a3 | 153 | %attr(755,root,root) %{_bindir}/folks-import |
99340317 | 154 | %attr(755,root,root) %{_bindir}/folks-inspect |
a439583d | 155 | %attr(755,root,root) %{_libdir}/libfolks.so.*.*.* |
2e48eb99 | 156 | %attr(755,root,root) %ghost %{_libdir}/libfolks.so.26 |
051a1701 | 157 | %attr(755,root,root) %{_libdir}/libfolks-dummy.so.*.*.* |
2e48eb99 JB |
158 | %attr(755,root,root) %ghost %{_libdir}/libfolks-dummy.so.26 |
159 | %{_libdir}/girepository-1.0/Folks-0.7.typelib | |
160 | %{_libdir}/girepository-1.0/FolksDummy-0.7.typelib | |
2a61e194 | 161 | %dir %{_libdir}/folks |
e013a58d JB |
162 | %dir %{_libdir}/folks/%{abiver} |
163 | %dir %{_libdir}/folks/%{abiver}/backends | |
e013a58d JB |
164 | %dir %{_libdir}/folks/%{abiver}/backends/dummy |
165 | %attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/dummy/dummy.so | |
e013a58d JB |
166 | %dir %{_libdir}/folks/%{abiver}/backends/key-file |
167 | %attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/key-file/key-file.so | |
526c38c1 JB |
168 | %if %{with bluez} |
169 | %dir %{_libdir}/folks/%{abiver}/backends/bluez | |
170 | %attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/bluez/bluez.so | |
171 | %endif | |
172 | %if %{with ofono} | |
e013a58d JB |
173 | %dir %{_libdir}/folks/%{abiver}/backends/ofono |
174 | %attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/ofono/ofono.so | |
526c38c1 JB |
175 | %endif |
176 | %if %{with evolution} | |
177 | %attr(755,root,root) %{_libdir}/libfolks-eds.so.*.*.* | |
2e48eb99 JB |
178 | %attr(755,root,root) %ghost %{_libdir}/libfolks-eds.so.26 |
179 | %{_libdir}/girepository-1.0/FolksEds-0.7.typelib | |
526c38c1 JB |
180 | %dir %{_libdir}/folks/%{abiver}/backends/eds |
181 | %attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/eds/eds.so | |
182 | %endif | |
183 | %if %{with telepathy} | |
184 | %attr(755,root,root) %{_libdir}/libfolks-telepathy.so.*.*.* | |
2e48eb99 JB |
185 | %attr(755,root,root) %ghost %{_libdir}/libfolks-telepathy.so.26 |
186 | %{_libdir}/girepository-1.0/FolksTelepathy-0.7.typelib | |
e013a58d JB |
187 | %dir %{_libdir}/folks/%{abiver}/backends/telepathy |
188 | %attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/telepathy/telepathy.so | |
526c38c1 | 189 | %endif |
526c38c1 | 190 | %{_datadir}/GConf/gsettings/folks.convert |
7e23dbc3 | 191 | %{_datadir}/glib-2.0/schemas/org.freedesktop.folks.gschema.xml |
a439583d PZ |
192 | |
193 | %files devel | |
194 | %defattr(644,root,root,755) | |
99340317 | 195 | %attr(755,root,root) %{_libdir}/libfolks.so |
051a1701 | 196 | %attr(755,root,root) %{_libdir}/libfolks-dummy.so |
2e48eb99 JB |
197 | %{_datadir}/gir-1.0/Folks-0.7.gir |
198 | %{_datadir}/gir-1.0/FolksDummy-0.7.gir | |
f5d05c9c ŁK |
199 | %{_includedir}/folks |
200 | %{_pkgconfigdir}/folks.pc | |
051a1701 | 201 | %{_pkgconfigdir}/folks-dummy.pc |
526c38c1 JB |
202 | %if %{with evolution} |
203 | %attr(755,root,root) %{_libdir}/libfolks-eds.so | |
2e48eb99 | 204 | %{_datadir}/gir-1.0/FolksEds-0.7.gir |
f5d05c9c | 205 | %{_pkgconfigdir}/folks-eds.pc |
526c38c1 JB |
206 | %endif |
207 | %if %{with telepathy} | |
208 | %attr(755,root,root) %{_libdir}/libfolks-telepathy.so | |
2e48eb99 | 209 | %{_datadir}/gir-1.0/FolksTelepathy-0.7.gir |
f5d05c9c | 210 | %{_pkgconfigdir}/folks-telepathy.pc |
526c38c1 | 211 | %endif |
f5d05c9c ŁK |
212 | |
213 | %if %{with vala} | |
214 | %files -n vala-folks | |
215 | %defattr(644,root,root,755) | |
d5d9c06c AF |
216 | %{_datadir}/vala/vapi/folks.deps |
217 | %{_datadir}/vala/vapi/folks.vapi | |
051a1701 JB |
218 | %{_datadir}/vala/vapi/folks-dummy.deps |
219 | %{_datadir}/vala/vapi/folks-dummy.vapi | |
526c38c1 | 220 | %if %{with evolution} |
20895c66 MB |
221 | %{_datadir}/vala/vapi/folks-eds.deps |
222 | %{_datadir}/vala/vapi/folks-eds.vapi | |
526c38c1 JB |
223 | %endif |
224 | %if %{with telepathy} | |
d5d9c06c AF |
225 | %{_datadir}/vala/vapi/folks-telepathy.deps |
226 | %{_datadir}/vala/vapi/folks-telepathy.vapi | |
526c38c1 | 227 | %endif |
526c38c1 | 228 | %endif |