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