]>
Commit | Line | Data |
---|---|---|
749c88aa ŁK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
87f04637 | 4 | %bcond_with icu # libicu instead of libunistring |
8c84151e JB |
5 | %bcond_with static_libs # static libraries |
6 | %bcond_without vala # Vala API | |
c81acfd5 | 7 | |
2d7e098c | 8 | %define ver 2.0 |
56480e20 | 9 | Summary: Tracker - an indexing subsystem |
65e96725 MWP |
10 | Summary(pl.UTF-8): Tracker - podsystem indeksujący |
11 | Name: tracker | |
58640d56 | 12 | Version: 2.0.4 |
a7912ff9 | 13 | Release: 2 |
56480e20 | 14 | License: GPL v2+ |
2d7e098c MB |
15 | Group: Applications |
16 | Source0: http://ftp.gnome.org/pub/GNOME/sources/tracker/2.0/%{name}-%{version}.tar.xz | |
58640d56 | 17 | # Source0-md5: ad1b14754828db76f3aeb47c9d03bb0a |
85473b28 | 18 | Patch0: link.patch |
2d7e098c | 19 | Patch1: %{name}-docs.patch |
80974564 | 20 | URL: http://projects.gnome.org/tracker/ |
1742f1dd MB |
21 | BuildRequires: NetworkManager-devel >= 0.8.0 |
22 | BuildRequires: autoconf >= 2.64 | |
23 | BuildRequires: automake >= 1:1.11 | |
0c9e9cbd | 24 | BuildRequires: docbook-dtd412-xml |
7f25a7d1 | 25 | BuildRequires: gettext-tools |
ca3db6ba | 26 | BuildRequires: glib2-devel >= 1:2.44.0 |
ff1337bc | 27 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
0c9e9cbd | 28 | BuildRequires: graphviz |
58640d56 | 29 | BuildRequires: gtk-doc >= 1.8 |
1742f1dd | 30 | BuildRequires: intltool >= 0.40.0 |
1c1e7c08 | 31 | BuildRequires: json-glib-devel >= 1.0 |
c4458f59 | 32 | %{?with_icu:BuildRequires: libicu-devel >= 4.8.1.1} |
1c1e7c08 | 33 | BuildRequires: libsoup-devel >= 2.40 |
5aa0a4bc | 34 | BuildRequires: libstemmer-devel |
1742f1dd | 35 | BuildRequires: libtool >= 2:2.2 |
87f04637 | 36 | %{!?with_icu:BuildRequires: libunistring-devel} |
0a1c1835 | 37 | BuildRequires: libuuid-devel |
56480e20 | 38 | BuildRequires: libxml2-devel >= 1:2.6.31 |
65e96725 | 39 | BuildRequires: pkgconfig |
bab42905 | 40 | BuildRequires: python >= 1:2.6 |
9260542b | 41 | BuildRequires: rpmbuild(macros) >= 1.673 |
2d7e098c | 42 | BuildRequires: sqlite3-devel >= 3.21.0-2 |
ba126316 | 43 | BuildRequires: tar >= 1:1.22 |
1742f1dd | 44 | BuildRequires: upower-devel >= 0.9.0 |
c4458f59 | 45 | %{?with_vala:BuildRequires: vala >= 2:0.18.0} |
ba126316 | 46 | BuildRequires: xz |
65e96725 | 47 | BuildRequires: zlib-devel |
ca3db6ba | 48 | Requires(post,postun): glib2 >= 1:2.44.0 |
0a1c1835 | 49 | Requires: %{name}-libs = %{version}-%{release} |
58640d56 | 50 | Requires: dbus >= 1.3.1 |
bab42905 | 51 | Requires: libxml2 >= 1:2.6.31 |
bab42905 | 52 | Requires: upower-libs >= 0.9.0 |
0a1c1835 | 53 | Obsoletes: gnome-applet-deskbar-extension-tracker |
7b559885 | 54 | Obsoletes: gnome-applet-tracker |
0a1c1835 MB |
55 | Obsoletes: tracker-search-gui |
56 | Obsoletes: tracker-startup | |
65e96725 MWP |
57 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
58 | ||
1c1e7c08 JB |
59 | # circular dependencies: libtracker-data -> libtracker-libtracker-direct -> libtracker-sparql-backend [->] libtracker-data |
60 | %define skip_post_check_so .*%{_libdir}/tracker-1.0/libtracker-data.so.* | |
61 | ||
65e96725 MWP |
62 | %description |
63 | Tracker is an indexing sub-system and search aggregator. | |
64 | ||
65 | %description -l pl.UTF-8 | |
56480e20 | 66 | Tracker jest podsystemem indeksującym i wyszukującym. |
65e96725 | 67 | |
0a1c1835 MB |
68 | %package libs |
69 | Summary: Tracker libraries | |
bab42905 | 70 | Summary(pl.UTF-8): Biblioteki Trackera |
56480e20 | 71 | Group: Libraries |
bab42905 | 72 | Requires: NetworkManager-libs >= 0.8.0 |
ca3db6ba | 73 | Requires: glib2 >= 1:2.44.0 |
1c1e7c08 | 74 | Requires: json-glib >= 1.0 |
58640d56 | 75 | Requires: libsoup >= 2.40 |
2d7e098c | 76 | Requires: sqlite3 >= 3.21.0-2 |
0a1c1835 MB |
77 | Obsoletes: libtracker |
78 | Obsoletes: libtracker-gtk | |
56480e20 | 79 | |
0a1c1835 MB |
80 | %description libs |
81 | Tracker libraries. | |
56480e20 | 82 | |
0a1c1835 | 83 | %description libs -l pl.UTF-8 |
46f2f003 | 84 | Biblioteki Trackera. |
56480e20 | 85 | |
0a1c1835 MB |
86 | %package devel |
87 | Summary: Header files for Tracker libraries | |
88 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek Trackera | |
56480e20 | 89 | Group: Development/Libraries |
0a1c1835 | 90 | Requires: %{name}-libs = %{version}-%{release} |
ca3db6ba | 91 | Requires: glib2-devel >= 1:2.44.0 |
0a1c1835 MB |
92 | Obsoletes: libtracker-devel |
93 | Obsoletes: libtracker-gtk-devel | |
94 | Obsoletes: libtracker-gtk-static | |
8c84151e | 95 | %{!?with_static_libs:Obsoletes: libtracker-static} |
56480e20 | 96 | |
0a1c1835 MB |
97 | %description devel |
98 | Header files for Tracker libraries. | |
56480e20 | 99 | |
0a1c1835 MB |
100 | %description devel -l pl.UTF-8 |
101 | Pliki nagłówkowe bibliotek Trackera. | |
56480e20 | 102 | |
8c84151e JB |
103 | %package static |
104 | Summary: Static Tracker libraries | |
105 | Summary(pl.UTF-8): Statyczne biblioteki Trackera | |
106 | Group: Development/Libraries | |
107 | Requires: %{name}-devel = %{version}-%{release} | |
108 | ||
109 | %description static | |
110 | Static Tracker libraries. | |
111 | ||
112 | %description static -l pl.UTF-8 | |
113 | Statyczne biblioteki Trackera. | |
114 | ||
0a1c1835 MB |
115 | %package apidocs |
116 | Summary: Tracker libraries API documentation | |
117 | Summary(pl.UTF-8): Dokumentacja API bibliotek Trackera | |
118 | Group: Documentation | |
119 | Requires: gtk-doc-common | |
c81acfd5 ER |
120 | %if "%{_rpmversion}" >= "5" |
121 | BuildArch: noarch | |
122 | %endif | |
56480e20 | 123 | |
0a1c1835 MB |
124 | %description apidocs |
125 | Tracker libraries API documentation. | |
56480e20 | 126 | |
0a1c1835 MB |
127 | %description apidocs -l pl.UTF-8 |
128 | Dokumentacja API bibliotek Trackera. | |
56480e20 | 129 | |
5aa0a4bc JB |
130 | %package -n bash-completion-tracker |
131 | Summary: Bash completion for tracker command | |
132 | Summary(pl.UTF-8): Bashowe uzupełnianie parametrów dla polecenia tracker | |
133 | Group: Applications/Shells | |
134 | Requires: %{name} = %{version}-%{release} | |
9260542b | 135 | Requires: bash-completion >= 2.0 |
5aa0a4bc JB |
136 | |
137 | %description -n bash-completion-tracker | |
138 | Bash completion for tracker command. | |
139 | ||
140 | %description -n bash-completion-tracker -l pl.UTF-8 | |
141 | Bashowe uzupełnianie parametrów dla polecenia tracker. | |
142 | ||
749c88aa ŁK |
143 | %package -n vala-tracker |
144 | Summary: tracker API for Vala language | |
145 | Summary(pl.UTF-8): API tracker dla języka Vala | |
146 | Group: Development/Libraries | |
147 | Requires: %{name}-devel = %{version}-%{release} | |
c4458f59 | 148 | Requires: vala >= 2:0.18.0 |
9260542b ER |
149 | %if "%{_rpmversion}" >= "5" |
150 | BuildArch: noarch | |
151 | %endif | |
749c88aa ŁK |
152 | |
153 | %description -n vala-tracker | |
154 | tracker API for Vala language. | |
155 | ||
156 | %description -n vala-tracker -l pl.UTF-8 | |
157 | API tracker dla języka Vala. | |
158 | ||
65e96725 MWP |
159 | %prep |
160 | %setup -q | |
85473b28 | 161 | %patch0 -p1 |
ff1337bc | 162 | %patch1 -p1 |
65e96725 MWP |
163 | |
164 | %build | |
165 | %{__intltoolize} | |
166 | %{__libtoolize} | |
0a1c1835 | 167 | %{__aclocal} -I m4 |
65e96725 | 168 | %{__autoconf} |
0a1c1835 | 169 | %{__autoheader} |
65e96725 | 170 | %{__automake} |
5aa0a4bc | 171 | CPPFLAGS="%{rpmcppflags} -I/usr/include/libstemmer" |
65e96725 | 172 | %configure \ |
bab42905 | 173 | %{__enable_disable apidocs gtk-doc} \ |
8c84151e | 174 | --disable-hal \ |
8c84151e JB |
175 | --disable-silent-rules \ |
176 | %{!?with_static_libs:--disable-static} \ | |
177 | --disable-unit-tests \ | |
bab42905 | 178 | --with-html-dir=%{_gtkdocdir} \ |
87f04637 | 179 | --with-unicode-support=%{?with_icu:libicu}%{!?with_icu:libunistring} |
65e96725 MWP |
180 | |
181 | %{__make} | |
182 | ||
183 | %install | |
184 | rm -rf $RPM_BUILD_ROOT | |
185 | ||
186 | %{__make} install \ | |
187 | DESTDIR=$RPM_BUILD_ROOT | |
188 | ||
bab42905 | 189 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
1742f1dd | 190 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/tracker-%{ver}/*.la |
8c84151e JB |
191 | %if %{with static_libs} |
192 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/tracker-%{ver}/libtracker-*.a | |
8c84151e JB |
193 | %endif |
194 | ||
24c92954 | 195 | |
0a1c1835 | 196 | %find_lang tracker |
65e96725 MWP |
197 | |
198 | %clean | |
199 | rm -rf $RPM_BUILD_ROOT | |
200 | ||
0a1c1835 | 201 | %post |
ff1337bc | 202 | %glib_compile_schemas |
56480e20 | 203 | |
0a1c1835 | 204 | %postun |
ff1337bc | 205 | %glib_compile_schemas |
56480e20 | 206 | |
0a1c1835 MB |
207 | %post libs -p /sbin/ldconfig |
208 | %postun libs -p /sbin/ldconfig | |
56480e20 | 209 | |
0a1c1835 | 210 | %files -f tracker.lang |
65e96725 | 211 | %defattr(644,root,root,755) |
5aa0a4bc | 212 | %attr(755,root,root) %{_bindir}/tracker |
a7912ff9 | 213 | %attr(755,root,root) %{_libexecdir}/tracker-store |
0a1c1835 | 214 | %{_sysconfdir}/xdg/autostart/tracker-store.desktop |
0a1c1835 | 215 | %{_datadir}/dbus-1/services/org.freedesktop.Tracker1.service |
ff1337bc | 216 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.DB.gschema.xml |
ff1337bc | 217 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.FTS.gschema.xml |
ff1337bc | 218 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.Store.gschema.xml |
ff1337bc AF |
219 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.enums.xml |
220 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Tracker.gschema.xml | |
0a1c1835 | 221 | %{_datadir}/tracker |
ca3db6ba | 222 | %{systemduserunitdir}/tracker-store.service |
5aa0a4bc | 223 | %{_mandir}/man1/tracker-daemon.1* |
5aa0a4bc | 224 | %{_mandir}/man1/tracker-index.1* |
0a1c1835 | 225 | %{_mandir}/man1/tracker-info.1* |
5aa0a4bc | 226 | %{_mandir}/man1/tracker-reset.1* |
0a1c1835 MB |
227 | %{_mandir}/man1/tracker-search.1* |
228 | %{_mandir}/man1/tracker-sparql.1* | |
5aa0a4bc JB |
229 | %{_mandir}/man1/tracker-sql.1* |
230 | %{_mandir}/man1/tracker-status.1* | |
0a1c1835 MB |
231 | %{_mandir}/man1/tracker-store.1* |
232 | %{_mandir}/man1/tracker-tag.1* | |
24c92954 | 233 | |
0a1c1835 | 234 | %files libs |
65e96725 | 235 | %defattr(644,root,root,755) |
b22cdce6 MB |
236 | %attr(755,root,root) %{_libdir}/libtracker-control-%{ver}.so.*.*.* |
237 | %attr(755,root,root) %ghost %{_libdir}/libtracker-control-%{ver}.so.0 | |
46f2f003 | 238 | %attr(755,root,root) %{_libdir}/libtracker-miner-%{ver}.so.*.*.* |
239 | %attr(755,root,root) %ghost %{_libdir}/libtracker-miner-%{ver}.so.0 | |
240 | %attr(755,root,root) %{_libdir}/libtracker-sparql-%{ver}.so.*.*.* | |
241 | %attr(755,root,root) %ghost %{_libdir}/libtracker-sparql-%{ver}.so.0 | |
b22cdce6 | 242 | # required by libtracker-miner |
46f2f003 | 243 | %dir %{_libdir}/tracker-%{ver} |
1742f1dd MB |
244 | %attr(755,root,root) %{_libdir}/tracker-%{ver}/libtracker-common.so* |
245 | %attr(755,root,root) %{_libdir}/tracker-%{ver}/libtracker-data.so* | |
ff1337bc | 246 | %{_libdir}/girepository-1.0/Tracker-%{ver}.typelib |
b22cdce6 | 247 | %{_libdir}/girepository-1.0/TrackerControl-%{ver}.typelib |
ff1337bc | 248 | %{_libdir}/girepository-1.0/TrackerMiner-%{ver}.typelib |
0a1c1835 MB |
249 | |
250 | %files devel | |
56480e20 | 251 | %defattr(644,root,root,755) |
b22cdce6 | 252 | %attr(755,root,root) %{_libdir}/libtracker-control-%{ver}.so |
46f2f003 | 253 | %attr(755,root,root) %{_libdir}/libtracker-miner-%{ver}.so |
254 | %attr(755,root,root) %{_libdir}/libtracker-sparql-%{ver}.so | |
46f2f003 | 255 | %{_includedir}/tracker-%{ver} |
b22cdce6 | 256 | %{_pkgconfigdir}/tracker-control-%{ver}.pc |
46f2f003 | 257 | %{_pkgconfigdir}/tracker-miner-%{ver}.pc |
258 | %{_pkgconfigdir}/tracker-sparql-%{ver}.pc | |
ff1337bc | 259 | %{_datadir}/gir-1.0/Tracker-%{ver}.gir |
b22cdce6 | 260 | %{_datadir}/gir-1.0/TrackerControl-%{ver}.gir |
ff1337bc | 261 | %{_datadir}/gir-1.0/TrackerMiner-%{ver}.gir |
0a1c1835 | 262 | |
8c84151e JB |
263 | %if %{with static_libs} |
264 | %files static | |
265 | %defattr(644,root,root,755) | |
266 | %{_libdir}/libtracker-control-%{ver}.a | |
267 | %{_libdir}/libtracker-miner-%{ver}.a | |
268 | %{_libdir}/libtracker-sparql-%{ver}.a | |
269 | %endif | |
270 | ||
749c88aa | 271 | %if %{with apidocs} |
0a1c1835 | 272 | %files apidocs |
56480e20 | 273 | %defattr(644,root,root,755) |
b22cdce6 | 274 | %{_gtkdocdir}/libtracker-control |
0a1c1835 | 275 | %{_gtkdocdir}/libtracker-miner |
46f2f003 | 276 | %{_gtkdocdir}/libtracker-sparql |
0a1c1835 | 277 | %{_gtkdocdir}/ontology |
749c88aa | 278 | %endif |
65e96725 | 279 | |
5aa0a4bc JB |
280 | %files -n bash-completion-tracker |
281 | %defattr(644,root,root,755) | |
9260542b | 282 | %{bash_compdir}/tracker |
5aa0a4bc | 283 | |
749c88aa ŁK |
284 | %if %{with vala} |
285 | %files -n vala-tracker | |
286 | %defattr(644,root,root,755) | |
b22cdce6 MB |
287 | %{_datadir}/vala/vapi/tracker-control-%{ver}.deps |
288 | %{_datadir}/vala/vapi/tracker-control-%{ver}.vapi | |
749c88aa ŁK |
289 | %{_datadir}/vala/vapi/tracker-miner-%{ver}.deps |
290 | %{_datadir}/vala/vapi/tracker-miner-%{ver}.vapi | |
291 | %{_datadir}/vala/vapi/tracker-sparql-%{ver}.deps | |
292 | %{_datadir}/vala/vapi/tracker-sparql-%{ver}.vapi | |
293 | %endif |