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