]> git.pld-linux.org Git - packages/folks.git/blame - folks.spec
- updated to 0.15.2 (new sonames, tracker support is gone)
[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
8%bcond_without telepathy # Telepathy backend
9%bcond_without zeitgeist # ` Zeitgeist support in Telepathy backend
526c38c1
JB
10
11%if %{without telepathy}
12%undefine with_zeitgeist
13%endif
a439583d 14Summary: GObject contact aggregation library
8d57488c 15Summary(pl.UTF-8): Biblioteka GObject do agregowania kontaktów
a439583d 16Name: folks
2e48eb99
JB
17Version: 0.15.2
18Release: 1
8d57488c 19License: LGPL v2.1+
a439583d 20Group: Libraries
2e48eb99
JB
21Source0: https://download.gnome.org/sources/folks/0.15/%{name}-%{version}.tar.xz
22# Source0-md5: db7d824bcc7b2404c9570451028f1aa6
e013a58d 23Patch0: %{name}-meson.patch
6438d6e1
JB
24Patch1: %{name}-module.patch
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
526c38c1 37BuildRequires: meson >= 0.51
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
20895c66 46BuildRequires: tar >= 1:1.22
526c38c1 47%{?with_telepathy:BuildRequires: telepathy-glib-devel >= 0.19.9}
f5d05c9c 48%if %{with vala}
8d57488c 49BuildRequires: vala >= 2:0.22.1
526c38c1 50%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 51BuildRequires: vala-evolution-data-server >= 3.38
526c38c1 52%endif
f3eb456c 53BuildRequires: vala-libgee >= 0.8.4
526c38c1 54%{?with_telepathy:BuildRequires: vala-telepathy-glib >= 0.19.9}
526c38c1 55%{?with_zeitgeist:BuildRequires: vala-zeitgeist >= 0.9.14}
f5d05c9c 56%endif
e013a58d 57%{?with_apidocs:BuildRequires: valadoc >= 0.3.1}
20895c66 58BuildRequires: xz
526c38c1
JB
59%{?with_zeitgeist:BuildRequires: zeitgeist-devel >= 0.9.14}
60%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 61Requires: evolution-data-server-libs >= 3.38
526c38c1 62%endif
2e48eb99 63Requires: glib2 >= 1:2.58
f3eb456c 64Requires: libgee >= 0.8.4
526c38c1 65%{?with_telepathy:Requires: telepathy-glib >= 0.19.9}
2a61e194 66BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
a439583d 67
2e48eb99 68%define abiver 26
e013a58d 69
a439583d
PZ
70%description
71libfolks is a library that aggregates people from multiple sources
72(e.g. Telepathy connection managers and eventually evolution data
73server, Facebook, etc.) to create meta-contacts.
74
8d57488c
JB
75%description -l pl.UTF-8
76libfolks to biblioteka gromadząca osoby z wielu źródeł (np. zarządców
77połączeń Telepathy, serwera danych Evolution, Facebooka itp.), aby
78utworzyć metakontakty.
79
2a61e194 80%package devel
99340317
MB
81Summary: Development files for folks libraries
82Summary(pl.UTF-8): Pliki programistyczne bibliotek folks
a439583d
PZ
83Group: Development/Libraries
84Requires: %{name} = %{version}-%{release}
526c38c1 85%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 86Requires: evolution-data-server-devel >= 3.38
526c38c1 87%endif
2e48eb99 88Requires: glib2-devel >= 1:2.58
50d18e2e 89Requires: libgee-devel >= 0.8.4
526c38c1 90%{?with_telepathy:Requires: telepathy-glib-devel >= 0.19.9}
a439583d 91
2a61e194 92%description devel
99340317
MB
93Development files for folks libraries.
94
95%description devel -l pl.UTF-8
96Pliki programistyczne bibliotek folks.
a439583d 97
f5d05c9c
ŁK
98%package -n vala-folks
99Summary: folks API for Vala language
100Summary(pl.UTF-8): API folks dla języka Vala
101Group: Development/Libraries
102Requires: %{name}-devel = %{version}-%{release}
8d57488c 103Requires: vala >= 2:0.22.1
526c38c1 104%if %{with bluez} || %{with evolution} || %{with ofono}
2e48eb99 105Requires: vala-evolution-data-server >= 3.38
526c38c1 106%endif
8d57488c 107Requires: vala-libgee >= 0.8.4
526c38c1 108%{?with_telepathy:Requires: vala-telepathy-glib >= 0.19.9}
d3de6297 109BuildArch: noarch
f5d05c9c
ŁK
110
111%description -n vala-folks
112folks API for Vala language.
113
114%description -n vala-folks -l pl.UTF-8
115API folks dla języka Vala.
116
a439583d
PZ
117%prep
118%setup -q
e83b35d4 119%patch0 -p1
e013a58d 120%patch1 -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} \
526c38c1
JB
128 %{!?with_telepathy:-Dtelepathy_backend=false} \
129 %{?with_zeitgeist:-Dzeitgeist=true}
e013a58d
JB
130
131%ninja_build -C build
a439583d
PZ
132
133%install
134rm -rf $RPM_BUILD_ROOT
99340317 135
e013a58d 136%ninja_install -C build
99340317
MB
137
138%find_lang %{name}
a439583d 139
2a61e194 140%clean
141rm -rf $RPM_BUILD_ROOT
142
8d57488c
JB
143%post -p /sbin/ldconfig
144%postun -p /sbin/ldconfig
a439583d 145
99340317 146%files -f %{name}.lang
a439583d 147%defattr(644,root,root,755)
2e48eb99 148%doc AUTHORS NEWS README.md
55e966a3 149%attr(755,root,root) %{_bindir}/folks-import
99340317 150%attr(755,root,root) %{_bindir}/folks-inspect
a439583d 151%attr(755,root,root) %{_libdir}/libfolks.so.*.*.*
2e48eb99 152%attr(755,root,root) %ghost %{_libdir}/libfolks.so.26
051a1701 153%attr(755,root,root) %{_libdir}/libfolks-dummy.so.*.*.*
2e48eb99
JB
154%attr(755,root,root) %ghost %{_libdir}/libfolks-dummy.so.26
155%{_libdir}/girepository-1.0/Folks-0.7.typelib
156%{_libdir}/girepository-1.0/FolksDummy-0.7.typelib
2a61e194 157%dir %{_libdir}/folks
e013a58d
JB
158%dir %{_libdir}/folks/%{abiver}
159%dir %{_libdir}/folks/%{abiver}/backends
e013a58d
JB
160%dir %{_libdir}/folks/%{abiver}/backends/dummy
161%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/dummy/dummy.so
e013a58d
JB
162%dir %{_libdir}/folks/%{abiver}/backends/key-file
163%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/key-file/key-file.so
526c38c1
JB
164%if %{with bluez}
165%dir %{_libdir}/folks/%{abiver}/backends/bluez
166%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/bluez/bluez.so
167%endif
168%if %{with ofono}
e013a58d
JB
169%dir %{_libdir}/folks/%{abiver}/backends/ofono
170%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/ofono/ofono.so
526c38c1
JB
171%endif
172%if %{with evolution}
173%attr(755,root,root) %{_libdir}/libfolks-eds.so.*.*.*
2e48eb99
JB
174%attr(755,root,root) %ghost %{_libdir}/libfolks-eds.so.26
175%{_libdir}/girepository-1.0/FolksEds-0.7.typelib
526c38c1
JB
176%dir %{_libdir}/folks/%{abiver}/backends/eds
177%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/eds/eds.so
178%endif
179%if %{with telepathy}
180%attr(755,root,root) %{_libdir}/libfolks-telepathy.so.*.*.*
2e48eb99
JB
181%attr(755,root,root) %ghost %{_libdir}/libfolks-telepathy.so.26
182%{_libdir}/girepository-1.0/FolksTelepathy-0.7.typelib
e013a58d
JB
183%dir %{_libdir}/folks/%{abiver}/backends/telepathy
184%attr(755,root,root) %{_libdir}/folks/%{abiver}/backends/telepathy/telepathy.so
526c38c1 185%endif
526c38c1 186%{_datadir}/GConf/gsettings/folks.convert
7e23dbc3 187%{_datadir}/glib-2.0/schemas/org.freedesktop.folks.gschema.xml
a439583d
PZ
188
189%files devel
190%defattr(644,root,root,755)
99340317 191%attr(755,root,root) %{_libdir}/libfolks.so
051a1701 192%attr(755,root,root) %{_libdir}/libfolks-dummy.so
2e48eb99
JB
193%{_datadir}/gir-1.0/Folks-0.7.gir
194%{_datadir}/gir-1.0/FolksDummy-0.7.gir
f5d05c9c
ŁK
195%{_includedir}/folks
196%{_pkgconfigdir}/folks.pc
051a1701 197%{_pkgconfigdir}/folks-dummy.pc
526c38c1
JB
198%if %{with evolution}
199%attr(755,root,root) %{_libdir}/libfolks-eds.so
2e48eb99 200%{_datadir}/gir-1.0/FolksEds-0.7.gir
f5d05c9c 201%{_pkgconfigdir}/folks-eds.pc
526c38c1
JB
202%endif
203%if %{with telepathy}
204%attr(755,root,root) %{_libdir}/libfolks-telepathy.so
2e48eb99 205%{_datadir}/gir-1.0/FolksTelepathy-0.7.gir
f5d05c9c 206%{_pkgconfigdir}/folks-telepathy.pc
526c38c1 207%endif
f5d05c9c
ŁK
208
209%if %{with vala}
210%files -n vala-folks
211%defattr(644,root,root,755)
d5d9c06c
AF
212%{_datadir}/vala/vapi/folks.deps
213%{_datadir}/vala/vapi/folks.vapi
051a1701
JB
214%{_datadir}/vala/vapi/folks-dummy.deps
215%{_datadir}/vala/vapi/folks-dummy.vapi
526c38c1 216%if %{with evolution}
20895c66
MB
217%{_datadir}/vala/vapi/folks-eds.deps
218%{_datadir}/vala/vapi/folks-eds.vapi
526c38c1
JB
219%endif
220%if %{with telepathy}
d5d9c06c
AF
221%{_datadir}/vala/vapi/folks-telepathy.deps
222%{_datadir}/vala/vapi/folks-telepathy.vapi
526c38c1 223%endif
526c38c1 224%endif
This page took 0.114328 seconds and 4 git commands to generate.