]>
Commit | Line | Data |
---|---|---|
71d7c8d4 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # API documentation | |
33f131d4 | 4 | %bcond_without icu # libicu instead of libunistring [the latter broken since 3.1.1] |
d797e1f6 | 5 | %bcond_with libsoup3 # libsoup3 support |
71d7c8d4 JB |
6 | %bcond_with static_libs # static libraries |
7 | %bcond_without vala # Vala API | |
8 | ||
9 | %define abiver 3.0 | |
10 | Summary: Tracker 3 - an indexing subsystem | |
11 | Summary(pl.UTF-8): Tracker 3 - podsystem indeksujący | |
12 | Name: tracker3 | |
b653228d | 13 | Version: 3.2.1 |
d797e1f6 | 14 | Release: 1 |
71d7c8d4 JB |
15 | License: GPL v2+ |
16 | Group: Applications | |
d797e1f6 | 17 | Source0: https://download.gnome.org/sources/tracker/3.2/tracker-%{version}.tar.xz |
b653228d | 18 | # Source0-md5: 89bb081f0ffcdd1d92296b73de0a371c |
71d7c8d4 JB |
19 | URL: https://wiki.gnome.org/Projects/Tracker |
20 | BuildRequires: asciidoc | |
21 | BuildRequires: dbus-devel >= 1.3.1 | |
71d7c8d4 JB |
22 | BuildRequires: gettext-tools |
23 | BuildRequires: glib2-devel >= 1:2.52.0 | |
24 | BuildRequires: gobject-introspection-devel >= 0.10.0 | |
25 | BuildRequires: graphviz | |
d797e1f6 JB |
26 | # dist tarballs contain pregenerated docs |
27 | #BuildRequires: hotdoc | |
28 | BuildRequires: json-glib-devel >= 1.4 | |
71d7c8d4 | 29 | %{?with_icu:BuildRequires: libicu-devel >= 4.8.1.1} |
d797e1f6 JB |
30 | %{!?with_libsoup3:BuildRequires: libsoup-devel >= 2.40} |
31 | %{?with_libsoup3:BuildRequires: libsoup3-devel >= 2.99.2} | |
71d7c8d4 JB |
32 | BuildRequires: libstemmer-devel |
33 | %{!?with_icu:BuildRequires: libunistring-devel} | |
34 | BuildRequires: libuuid-devel | |
35 | BuildRequires: libxml2-devel >= 1:2.6.31 | |
36 | BuildRequires: libxslt-progs | |
d797e1f6 | 37 | BuildRequires: meson >= 0.51 |
71d7c8d4 JB |
38 | BuildRequires: ninja >= 1.5 |
39 | BuildRequires: pkgconfig | |
40 | BuildRequires: python3 >= 1:3.2 | |
5a9ed503 | 41 | BuildRequires: rpm-build >= 4.6 |
897c44f6 | 42 | BuildRequires: rpmbuild(macros) >= 1.752 |
5a9ed503 | 43 | BuildRequires: sqlite3-devel >= 3.35.2 |
71d7c8d4 JB |
44 | BuildRequires: tar >= 1:1.22 |
45 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} | |
d797e1f6 | 46 | %{?with_libsoup3:BuildRequires: vala-libsoup3 >= 2.99.2} |
71d7c8d4 JB |
47 | BuildRequires: xz |
48 | BuildRequires: zlib-devel | |
49 | Requires(post,postun): glib2 >= 1:2.52.0 | |
50 | Requires: %{name}-libs = %{version}-%{release} | |
51 | Requires: dbus >= 1.3.1 | |
52 | Requires: systemd-units >= 1:242 | |
53 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
54 | ||
55 | %description | |
56 | Tracker is an indexing sub-system and search aggregator. | |
57 | ||
58 | %description -l pl.UTF-8 | |
59 | Tracker jest podsystemem indeksującym i wyszukującym. | |
60 | ||
61 | %package libs | |
62 | Summary: Tracker 3 library | |
63 | Summary(pl.UTF-8): Biblioteka Trackera 3 | |
64 | License: LGPL v2.1+ | |
65 | Group: Libraries | |
66 | Requires: glib2 >= 1:2.52.0 | |
d797e1f6 JB |
67 | Requires: json-glib >= 1.4 |
68 | %{!?with_soup3:Requires: libsoup >= 2.40} | |
69 | %{?with_soup3:Requires: libsoup3 >= 2.99.2} | |
71d7c8d4 | 70 | Requires: libxml2 >= 1:2.6.31 |
5a9ed503 | 71 | Requires: sqlite3 >= 3.35.2 |
71d7c8d4 JB |
72 | |
73 | %description libs | |
74 | Tracker 3 library. | |
75 | ||
76 | %description libs -l pl.UTF-8 | |
77 | Biblioteka Trackera 3. | |
78 | ||
79 | %package devel | |
80 | Summary: Header files for Tracker 3 library | |
81 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki Trackera 3 | |
82 | License: LGPL v2.1+ | |
83 | Group: Development/Libraries | |
84 | Requires: %{name}-libs = %{version}-%{release} | |
85 | Requires: glib2-devel >= 1:2.52.0 | |
d797e1f6 | 86 | Requires: json-glib-devel >= 1.4 |
71d7c8d4 JB |
87 | Requires: libstemmer-devel |
88 | Requires: libxml2-devel >= 1:2.6.31 | |
89 | ||
90 | %description devel | |
91 | Header files for Tracker 3 library. | |
92 | ||
93 | %description devel -l pl.UTF-8 | |
94 | Pliki nagłówkowe bibliotek Trackera 3. | |
95 | ||
96 | %package static | |
97 | Summary: Static Tracker 3 library | |
98 | Summary(pl.UTF-8): Statyczna biblioteka Trackera 3 | |
99 | License: LGPL v2.1+ | |
100 | Group: Development/Libraries | |
101 | Requires: %{name}-devel = %{version}-%{release} | |
102 | ||
103 | %description static | |
104 | Static Tracker 3 library. | |
105 | ||
106 | %description static -l pl.UTF-8 | |
107 | Statyczna biblioteka Trackera 3. | |
108 | ||
109 | %package testutils | |
110 | Summary: Tracker 3 test utilities | |
111 | Summary(pl.UTF-8): Narzędzia testowe Trackera 3 | |
112 | Group: Development/Tools | |
113 | Requires: %{name}-libs = %{version}-%{release} | |
114 | Requires: python3 >= 1:3.2 | |
115 | Requires: python3-pygobject3 >= 3 | |
116 | ||
117 | %description testutils | |
118 | Tracker 3 test utilities. | |
119 | ||
120 | %description testutils -l pl.UTF-8 | |
121 | Narzędzia testowe Trackera 3. | |
122 | ||
123 | %package apidocs | |
124 | Summary: Tracker 3 library API documentation | |
125 | Summary(pl.UTF-8): Dokumentacja API biblioteki Trackera 3 | |
126 | Group: Documentation | |
127 | Requires: gtk-doc-common | |
2c6584a3 | 128 | BuildArch: noarch |
71d7c8d4 JB |
129 | |
130 | %description apidocs | |
131 | Tracker 3 library API documentation. | |
132 | ||
133 | %description apidocs -l pl.UTF-8 | |
134 | Dokumentacja API biblioteki Trackera 3. | |
135 | ||
136 | %package -n bash-completion-tracker3 | |
137 | Summary: Bash completion for tracker3 command | |
138 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla polecenia tracker3 | |
139 | Group: Applications/Shells | |
140 | Requires: %{name} = %{version}-%{release} | |
141 | Requires: bash-completion >= 2.0 | |
5a9ed503 | 142 | BuildArch: noarch |
71d7c8d4 JB |
143 | |
144 | %description -n bash-completion-tracker3 | |
145 | Bash completion for tracker3 command. | |
146 | ||
147 | %description -n bash-completion-tracker3 -l pl.UTF-8 | |
148 | Bashowe uzupełnianie parametrów dla polecenia tracker3. | |
149 | ||
150 | %package -n vala-tracker3 | |
151 | Summary: Tracker 3 API for Vala language | |
152 | Summary(pl.UTF-8): API Trackera 3 dla języka Vala | |
153 | Group: Development/Libraries | |
154 | Requires: %{name}-devel = %{version}-%{release} | |
155 | Requires: vala >= 2:0.18.0 | |
2c6584a3 | 156 | BuildArch: noarch |
71d7c8d4 JB |
157 | |
158 | %description -n vala-tracker3 | |
159 | Tracker 3 API for Vala language. | |
160 | ||
161 | %description -n vala-tracker3 -l pl.UTF-8 | |
162 | API Trackera 3 dla języka Vala. | |
163 | ||
164 | %prep | |
165 | %setup -q -n tracker-%{version} | |
166 | ||
d797e1f6 JB |
167 | %if %{with libsoup3} |
168 | %{__sed} -i -e 's/libsoup2\.found()/false/' meson.build src/libtracker-sparql/meson.build | |
169 | %else | |
170 | %{__sed} -i -e 's/libsoup3\.found()/false/' meson.build src/libtracker-sparql/meson.build | |
171 | %endif | |
172 | ||
71d7c8d4 JB |
173 | %build |
174 | CPPFLAGS="%{rpmcppflags} -I/usr/include/libstemmer" | |
175 | %meson build \ | |
176 | %{!?with_static_libs:--default-library=shared} \ | |
177 | -Dbash_completion_dir=%{bash_compdir} \ | |
178 | %{!?with_apidocs:-Ddocs=false} \ | |
179 | -Dfunctional_tests=false \ | |
180 | -Dsystemd_user_services_dir=%{systemduserunitdir} \ | |
181 | -Dunicode_support=%{?with_icu:icu}%{!?with_icu:unistring} | |
182 | ||
183 | %ninja_build -C build -j1 | |
184 | ||
185 | %install | |
186 | rm -rf $RPM_BUILD_ROOT | |
187 | ||
188 | %ninja_install -C build | |
189 | ||
190 | %if %{with static_libs} | |
191 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/tracker-%{abiver}/libtracker-*.a | |
192 | %endif | |
193 | ||
194 | %find_lang tracker3 | |
195 | ||
196 | %clean | |
197 | rm -rf $RPM_BUILD_ROOT | |
198 | ||
199 | %post libs -p /sbin/ldconfig | |
200 | %postun libs -p /sbin/ldconfig | |
201 | ||
202 | %files -f tracker3.lang | |
203 | %defattr(644,root,root,755) | |
204 | %attr(755,root,root) %{_bindir}/tracker3 | |
205 | %attr(755,root,root) %{_libexecdir}/tracker-xdg-portal-3 | |
206 | %dir %{_libexecdir}/tracker3 | |
207 | %attr(755,root,root) %{_libexecdir}/tracker3/endpoint | |
208 | %attr(755,root,root) %{_libexecdir}/tracker3/export | |
209 | %attr(755,root,root) %{_libexecdir}/tracker3/help | |
210 | %attr(755,root,root) %{_libexecdir}/tracker3/import | |
211 | %attr(755,root,root) %{_libexecdir}/tracker3/sparql | |
212 | %attr(755,root,root) %{_libexecdir}/tracker3/sql | |
213 | %{_datadir}/dbus-1/services/org.freedesktop.portal.Tracker.service | |
214 | %{_datadir}/tracker3 | |
215 | %{systemduserunitdir}/tracker-xdg-portal-3.service | |
216 | %{_mandir}/man1/tracker-xdg-portal-3.1* | |
217 | %{_mandir}/man1/tracker3-endpoint.1* | |
218 | %{_mandir}/man1/tracker3-export.1* | |
219 | %{_mandir}/man1/tracker3-import.1* | |
220 | %{_mandir}/man1/tracker3-sparql.1* | |
221 | %{_mandir}/man1/tracker3-sql.1* | |
222 | ||
223 | %files libs | |
224 | %defattr(644,root,root,755) | |
225 | %doc AUTHORS COPYING MAINTAINERS NEWS README.md | |
226 | %attr(755,root,root) %{_libdir}/libtracker-sparql-%{abiver}.so.*.*.* | |
227 | %attr(755,root,root) %ghost %{_libdir}/libtracker-sparql-%{abiver}.so.0 | |
228 | %{_libdir}/girepository-1.0/Tracker-%{abiver}.typelib | |
d797e1f6 JB |
229 | %dir %{_libdir}/tracker-%{abiver} |
230 | %if %{with libsoup3} | |
231 | %attr(755,root,root) %{_libdir}/tracker-%{abiver}/libtracker-remote-soup3.so | |
232 | %else | |
233 | %attr(755,root,root) %{_libdir}/tracker-%{abiver}/libtracker-remote-soup2.so | |
234 | %endif | |
71d7c8d4 JB |
235 | |
236 | %files devel | |
237 | %defattr(644,root,root,755) | |
238 | %attr(755,root,root) %{_libdir}/libtracker-sparql-%{abiver}.so | |
239 | %{_includedir}/tracker-%{abiver} | |
240 | %{_pkgconfigdir}/tracker-sparql-%{abiver}.pc | |
241 | %{_datadir}/gir-1.0/Tracker-%{abiver}.gir | |
242 | ||
243 | %if %{with static_libs} | |
244 | %files static | |
245 | %defattr(644,root,root,755) | |
246 | %{_libdir}/libtracker-sparql-%{abiver}.a | |
247 | %endif | |
248 | ||
249 | %files testutils | |
250 | %defattr(644,root,root,755) | |
71d7c8d4 JB |
251 | %dir %{_libdir}/tracker-%{abiver}/trackertestutils |
252 | %attr(755,root,root) %{_libdir}/tracker-%{abiver}/trackertestutils/tracker-sandbox | |
253 | %{_libdir}/tracker-%{abiver}/trackertestutils/*.py | |
254 | %{_pkgconfigdir}/tracker-testutils-%{abiver}.pc | |
255 | ||
256 | %if %{with apidocs} | |
257 | %files apidocs | |
258 | %defattr(644,root,root,755) | |
d797e1f6 | 259 | %{_datadir}/devhelp/books/Tracker |
71d7c8d4 JB |
260 | %endif |
261 | ||
262 | %files -n bash-completion-tracker3 | |
263 | %defattr(644,root,root,755) | |
264 | %{bash_compdir}/tracker3 | |
265 | ||
266 | %if %{with vala} | |
267 | %files -n vala-tracker3 | |
268 | %defattr(644,root,root,755) | |
269 | %{_datadir}/vala/vapi/tracker-sparql-%{abiver}.deps | |
270 | %{_datadir}/vala/vapi/tracker-sparql-%{abiver}.vapi | |
271 | %endif |