]> git.pld-linux.org Git - packages/folks.git/blame - folks.spec
- updated to 0.15.6
[packages/folks.git] / folks.spec
CommitLineData
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 15Summary: GObject contact aggregation library
8d57488c 16Summary(pl.UTF-8): Biblioteka GObject do agregowania kontaktów
a439583d 17Name: folks
682a4b07 18Version: 0.15.6
2e48eb99 19Release: 1
8d57488c 20License: LGPL v2.1+
a439583d 21Group: Libraries
2e48eb99 22Source0: https://download.gnome.org/sources/folks/0.15/%{name}-%{version}.tar.xz
682a4b07 23# Source0-md5: 04b6684031a463fb7a28d2d6f70b6d23
e013a58d 24Patch0: %{name}-meson.patch
6438d6e1 25URL: https://wiki.gnome.org/Projects/Folks
8d57488c 26BuildRequires: 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 30BuildRequires: evolution-data-server-devel >= 3.38
526c38c1 31%endif
1144110f 32BuildRequires: gettext-tools
2e48eb99 33BuildRequires: glib2-devel >= 1:2.58
8b3156f3 34BuildRequires: gobject-introspection-devel >= 1.30.0
f3eb456c 35BuildRequires: libgee-devel >= 0.8.4
8d57488c 36BuildRequires: libxml2-devel >= 2.0
682a4b07 37BuildRequires: meson >= 0.57
be39b557 38BuildRequires: ncurses-devel
e013a58d 39BuildRequires: ninja >= 1.5
99340317 40BuildRequires: pkgconfig >= 1:0.21
e013a58d 41BuildRequires: python3 >= 1:3.2
526c38c1 42%{?with_bluez:BuildRequires: python3-dbusmock}
2e48eb99 43BuildRequires: rpm-build >= 4.6
e013a58d 44BuildRequires: rpmbuild(macros) >= 1.736
cb1d7e18 45BuildRequires: readline-devel
682a4b07 46%{?with_sysprof:BuildRequires: sysprof-devel >= 3.38.0}
20895c66 47BuildRequires: tar >= 1:1.22
526c38c1 48%{?with_telepathy:BuildRequires: telepathy-glib-devel >= 0.19.9}
f5d05c9c 49%if %{with vala}
8d57488c 50BuildRequires: vala >= 2:0.22.1
526c38c1 51%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 52BuildRequires: vala-evolution-data-server >= 3.38
526c38c1 53%endif
f3eb456c 54BuildRequires: 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 59BuildRequires: xz
526c38c1
JB
60%{?with_zeitgeist:BuildRequires: zeitgeist-devel >= 0.9.14}
61%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 62Requires: evolution-data-server-libs >= 3.38
526c38c1 63%endif
2e48eb99 64Requires: glib2 >= 1:2.58
f3eb456c 65Requires: libgee >= 0.8.4
526c38c1 66%{?with_telepathy:Requires: telepathy-glib >= 0.19.9}
2a61e194 67BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a439583d 68
2e48eb99 69%define abiver 26
e013a58d 70
a439583d
PZ
71%description
72libfolks is a library that aggregates people from multiple sources
73(e.g. Telepathy connection managers and eventually evolution data
74server, Facebook, etc.) to create meta-contacts.
75
8d57488c
JB
76%description -l pl.UTF-8
77libfolks to biblioteka gromadząca osoby z wielu źródeł (np. zarządców
78połączeń Telepathy, serwera danych Evolution, Facebooka itp.), aby
79utworzyć metakontakty.
80
2a61e194 81%package devel
99340317
MB
82Summary: Development files for folks libraries
83Summary(pl.UTF-8): Pliki programistyczne bibliotek folks
a439583d
PZ
84Group: Development/Libraries
85Requires: %{name} = %{version}-%{release}
526c38c1 86%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 87Requires: evolution-data-server-devel >= 3.38
526c38c1 88%endif
2e48eb99 89Requires: glib2-devel >= 1:2.58
50d18e2e 90Requires: libgee-devel >= 0.8.4
526c38c1 91%{?with_telepathy:Requires: telepathy-glib-devel >= 0.19.9}
a439583d 92
2a61e194 93%description devel
99340317
MB
94Development files for folks libraries.
95
96%description devel -l pl.UTF-8
97Pliki programistyczne bibliotek folks.
a439583d 98
f5d05c9c
ŁK
99%package -n vala-folks
100Summary: folks API for Vala language
101Summary(pl.UTF-8): API folks dla języka Vala
102Group: Development/Libraries
103Requires: %{name}-devel = %{version}-%{release}
8d57488c 104Requires: vala >= 2:0.22.1
526c38c1 105%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 106Requires: vala-evolution-data-server >= 3.38
526c38c1 107%endif
8d57488c 108Requires: vala-libgee >= 0.8.4
526c38c1 109%{?with_telepathy:Requires: vala-telepathy-glib >= 0.19.9}
d3de6297 110BuildArch: noarch
f5d05c9c
ŁK
111
112%description -n vala-folks
113folks API for Vala language.
114
115%description -n vala-folks -l pl.UTF-8
116API 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
135rm -rf $RPM_BUILD_ROOT
99340317 136
e013a58d 137%ninja_install -C build
99340317
MB
138
139%find_lang %{name}
a439583d 140
2a61e194 141%clean
142rm -rf $RPM_BUILD_ROOT
143
8d57488c
JB
144%post -p /sbin/ldconfig
145%postun -p /sbin/ldconfig
a439583d 146
99340317 147%files -f %{name}.lang
a439583d 148%defattr(644,root,root,755)
2e48eb99 149%doc AUTHORS NEWS README.md
55e966a3 150%attr(755,root,root) %{_bindir}/folks-import
99340317 151%attr(755,root,root) %{_bindir}/folks-inspect
a439583d 152%attr(755,root,root) %{_libdir}/libfolks.so.*.*.*
2e48eb99 153%attr(755,root,root) %ghost %{_libdir}/libfolks.so.26
051a1701 154%attr(755,root,root) %{_libdir}/libfolks-dummy.so.*.*.*
2e48eb99
JB
155%attr(755,root,root) %ghost %{_libdir}/libfolks-dummy.so.26
156%{_libdir}/girepository-1.0/Folks-0.7.typelib
157%{_libdir}/girepository-1.0/FolksDummy-0.7.typelib
2a61e194 158%dir %{_libdir}/folks
e013a58d
JB
159%dir %{_libdir}/folks/%{abiver}
160%dir %{_libdir}/folks/%{abiver}/backends
e013a58d
JB
161%dir %{_libdir}/folks/%{abiver}/backends/dummy
162%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/dummy/dummy.so
e013a58d
JB
163%dir %{_libdir}/folks/%{abiver}/backends/key-file
164%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/key-file/key-file.so
526c38c1
JB
165%if %{with bluez}
166%dir %{_libdir}/folks/%{abiver}/backends/bluez
167%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/bluez/bluez.so
168%endif
169%if %{with ofono}
e013a58d
JB
170%dir %{_libdir}/folks/%{abiver}/backends/ofono
171%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/ofono/ofono.so
526c38c1
JB
172%endif
173%if %{with evolution}
174%attr(755,root,root) %{_libdir}/libfolks-eds.so.*.*.*
2e48eb99
JB
175%attr(755,root,root) %ghost %{_libdir}/libfolks-eds.so.26
176%{_libdir}/girepository-1.0/FolksEds-0.7.typelib
526c38c1
JB
177%dir %{_libdir}/folks/%{abiver}/backends/eds
178%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/eds/eds.so
179%endif
180%if %{with telepathy}
181%attr(755,root,root) %{_libdir}/libfolks-telepathy.so.*.*.*
2e48eb99
JB
182%attr(755,root,root) %ghost %{_libdir}/libfolks-telepathy.so.26
183%{_libdir}/girepository-1.0/FolksTelepathy-0.7.typelib
e013a58d
JB
184%dir %{_libdir}/folks/%{abiver}/backends/telepathy
185%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/telepathy/telepathy.so
526c38c1 186%endif
526c38c1 187%{_datadir}/GConf/gsettings/folks.convert
7e23dbc3 188%{_datadir}/glib-2.0/schemas/org.freedesktop.folks.gschema.xml
a439583d
PZ
189
190%files devel
191%defattr(644,root,root,755)
99340317 192%attr(755,root,root) %{_libdir}/libfolks.so
051a1701 193%attr(755,root,root) %{_libdir}/libfolks-dummy.so
2e48eb99
JB
194%{_datadir}/gir-1.0/Folks-0.7.gir
195%{_datadir}/gir-1.0/FolksDummy-0.7.gir
f5d05c9c
ŁK
196%{_includedir}/folks
197%{_pkgconfigdir}/folks.pc
051a1701 198%{_pkgconfigdir}/folks-dummy.pc
526c38c1
JB
199%if %{with evolution}
200%attr(755,root,root) %{_libdir}/libfolks-eds.so
2e48eb99 201%{_datadir}/gir-1.0/FolksEds-0.7.gir
f5d05c9c 202%{_pkgconfigdir}/folks-eds.pc
526c38c1
JB
203%endif
204%if %{with telepathy}
205%attr(755,root,root) %{_libdir}/libfolks-telepathy.so
2e48eb99 206%{_datadir}/gir-1.0/FolksTelepathy-0.7.gir
f5d05c9c 207%{_pkgconfigdir}/folks-telepathy.pc
526c38c1 208%endif
f5d05c9c
ŁK
209
210%if %{with vala}
211%files -n vala-folks
212%defattr(644,root,root,755)
d5d9c06c
AF
213%{_datadir}/vala/vapi/folks.deps
214%{_datadir}/vala/vapi/folks.vapi
051a1701
JB
215%{_datadir}/vala/vapi/folks-dummy.deps
216%{_datadir}/vala/vapi/folks-dummy.vapi
526c38c1 217%if %{with evolution}
20895c66
MB
218%{_datadir}/vala/vapi/folks-eds.deps
219%{_datadir}/vala/vapi/folks-eds.vapi
526c38c1
JB
220%endif
221%if %{with telepathy}
d5d9c06c
AF
222%{_datadir}/vala/vapi/folks-telepathy.deps
223%{_datadir}/vala/vapi/folks-telepathy.vapi
526c38c1 224%endif
526c38c1 225%endif
This page took 0.147744 seconds and 4 git commands to generate.