5594b603a04d8a7051c54bbf3475beafde372777
[packages/tracker3.git] / tracker3.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # API documentation
4 %bcond_without  icu             # libicu instead of libunistring [the latter not supported in 3.1.1]
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.1.1
13 Release:        1
14 License:        GPL v2+
15 Group:          Applications
16 Source0:        https://download.gnome.org/sources/tracker/3.1/tracker-%{version}.tar.xz
17 # Source0-md5:  c7a502802f213a6cb9a7b2fc94ef47d1
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:  rpm-build >= 4.6
40 BuildRequires:  rpmbuild(macros) >= 1.752
41 BuildRequires:  sqlite3-devel >= 3.35.2
42 BuildRequires:  tar >= 1:1.22
43 %{?with_vala:BuildRequires:     vala >= 2:0.18.0}
44 BuildRequires:  xz
45 BuildRequires:  zlib-devel
46 Requires(post,postun):  glib2 >= 1:2.52.0
47 Requires:       %{name}-libs = %{version}-%{release}
48 Requires:       dbus >= 1.3.1
49 Requires:       systemd-units >= 1:242
50 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
51
52 %description
53 Tracker is an indexing sub-system and search aggregator.
54
55 %description -l pl.UTF-8
56 Tracker jest podsystemem indeksującym i wyszukującym.
57
58 %package libs
59 Summary:        Tracker 3 library
60 Summary(pl.UTF-8):      Biblioteka Trackera 3
61 License:        LGPL v2.1+
62 Group:          Libraries
63 Requires:       glib2 >= 1:2.52.0
64 Requires:       json-glib >= 1.0
65 Requires:       libsoup >= 2.40
66 Requires:       libxml2 >= 1:2.6.31
67 Requires:       sqlite3 >= 3.35.2
68
69 %description libs
70 Tracker 3 library.
71
72 %description libs -l pl.UTF-8
73 Biblioteka Trackera 3.
74
75 %package devel
76 Summary:        Header files for Tracker 3 library
77 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Trackera 3
78 License:        LGPL v2.1+
79 Group:          Development/Libraries
80 Requires:       %{name}-libs = %{version}-%{release}
81 Requires:       glib2-devel >= 1:2.52.0
82 Requires:       json-glib-devel >= 1.0
83 Requires:       libsoup-devel >= 2.40
84 Requires:       libstemmer-devel
85 Requires:       libxml2-devel >= 1:2.6.31
86
87 %description devel
88 Header files for Tracker 3 library.
89
90 %description devel -l pl.UTF-8
91 Pliki nagłówkowe bibliotek Trackera 3.
92
93 %package static
94 Summary:        Static Tracker 3 library
95 Summary(pl.UTF-8):      Statyczna biblioteka Trackera 3
96 License:        LGPL v2.1+
97 Group:          Development/Libraries
98 Requires:       %{name}-devel = %{version}-%{release}
99
100 %description static
101 Static Tracker 3 library.
102
103 %description static -l pl.UTF-8
104 Statyczna biblioteka Trackera 3.
105
106 %package testutils
107 Summary:        Tracker 3 test utilities
108 Summary(pl.UTF-8):      Narzędzia testowe Trackera 3
109 Group:          Development/Tools
110 Requires:       %{name}-libs = %{version}-%{release}
111 Requires:       python3 >= 1:3.2
112 Requires:       python3-pygobject3 >= 3
113
114 %description testutils
115 Tracker 3 test utilities.
116
117 %description testutils -l pl.UTF-8
118 Narzędzia testowe Trackera 3.
119
120 %package apidocs
121 Summary:        Tracker 3 library API documentation
122 Summary(pl.UTF-8):      Dokumentacja API biblioteki Trackera 3
123 Group:          Documentation
124 Requires:       gtk-doc-common
125 BuildArch:      noarch
126
127 %description apidocs
128 Tracker 3 library API documentation.
129
130 %description apidocs -l pl.UTF-8
131 Dokumentacja API biblioteki Trackera 3.
132
133 %package -n bash-completion-tracker3
134 Summary:        Bash completion for tracker3 command
135 Summary(pl.UTF-8):      Bashowe uzupełnianie parametrów dla polecenia tracker3
136 Group:          Applications/Shells
137 Requires:       %{name} = %{version}-%{release}
138 Requires:       bash-completion >= 2.0
139 BuildArch:      noarch
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 BuildArch:      noarch
154
155 %description -n vala-tracker3
156 Tracker 3 API for Vala language.
157
158 %description -n vala-tracker3 -l pl.UTF-8
159 API Trackera 3 dla języka Vala.
160
161 %prep
162 %setup -q -n tracker-%{version}
163
164 %build
165 CPPFLAGS="%{rpmcppflags} -I/usr/include/libstemmer"
166 %meson build \
167         %{!?with_static_libs:--default-library=shared} \
168         -Dbash_completion_dir=%{bash_compdir} \
169         %{!?with_apidocs:-Ddocs=false} \
170         -Dfunctional_tests=false \
171         -Dsystemd_user_services_dir=%{systemduserunitdir} \
172         -Dunicode_support=%{?with_icu:icu}%{!?with_icu:unistring}
173
174 %ninja_build -C build -j1
175
176 %install
177 rm -rf $RPM_BUILD_ROOT
178
179 %ninja_install -C build
180
181 %if %{with static_libs}
182 %{__rm} $RPM_BUILD_ROOT%{_libdir}/tracker-%{abiver}/libtracker-*.a
183 %endif
184
185 %find_lang tracker3
186
187 %clean
188 rm -rf $RPM_BUILD_ROOT
189
190 %post   libs -p /sbin/ldconfig
191 %postun libs -p /sbin/ldconfig
192
193 %files -f tracker3.lang
194 %defattr(644,root,root,755)
195 %attr(755,root,root) %{_bindir}/tracker3
196 %attr(755,root,root) %{_libexecdir}/tracker-xdg-portal-3
197 %dir %{_libexecdir}/tracker3
198 %attr(755,root,root) %{_libexecdir}/tracker3/endpoint
199 %attr(755,root,root) %{_libexecdir}/tracker3/export
200 %attr(755,root,root) %{_libexecdir}/tracker3/help
201 %attr(755,root,root) %{_libexecdir}/tracker3/import
202 %attr(755,root,root) %{_libexecdir}/tracker3/sparql
203 %attr(755,root,root) %{_libexecdir}/tracker3/sql
204 %{_datadir}/dbus-1/services/org.freedesktop.portal.Tracker.service
205 %{_datadir}/tracker3
206 %{systemduserunitdir}/tracker-xdg-portal-3.service
207 %{_mandir}/man1/tracker-xdg-portal-3.1*
208 %{_mandir}/man1/tracker3-endpoint.1*
209 %{_mandir}/man1/tracker3-export.1*
210 %{_mandir}/man1/tracker3-import.1*
211 %{_mandir}/man1/tracker3-sparql.1*
212 %{_mandir}/man1/tracker3-sql.1*
213
214 %files libs
215 %defattr(644,root,root,755)
216 %doc AUTHORS COPYING MAINTAINERS NEWS README.md
217 %attr(755,root,root) %{_libdir}/libtracker-sparql-%{abiver}.so.*.*.*
218 %attr(755,root,root) %ghost %{_libdir}/libtracker-sparql-%{abiver}.so.0
219 %{_libdir}/girepository-1.0/Tracker-%{abiver}.typelib
220
221 %files devel
222 %defattr(644,root,root,755)
223 %attr(755,root,root) %{_libdir}/libtracker-sparql-%{abiver}.so
224 %{_includedir}/tracker-%{abiver}
225 %{_pkgconfigdir}/tracker-sparql-%{abiver}.pc
226 %{_datadir}/gir-1.0/Tracker-%{abiver}.gir
227
228 %if %{with static_libs}
229 %files static
230 %defattr(644,root,root,755)
231 %{_libdir}/libtracker-sparql-%{abiver}.a
232 %endif
233
234 %files testutils
235 %defattr(644,root,root,755)
236 %dir %{_libdir}/tracker-%{abiver}
237 %dir %{_libdir}/tracker-%{abiver}/trackertestutils
238 %attr(755,root,root) %{_libdir}/tracker-%{abiver}/trackertestutils/tracker-sandbox
239 %{_libdir}/tracker-%{abiver}/trackertestutils/*.py
240 %{_pkgconfigdir}/tracker-testutils-%{abiver}.pc
241
242 %if %{with apidocs}
243 %files apidocs
244 %defattr(644,root,root,755)
245 %{_gtkdocdir}/libtracker-sparql-3
246 %{_gtkdocdir}/ontology-3
247 %endif
248
249 %files -n bash-completion-tracker3
250 %defattr(644,root,root,755)
251 %{bash_compdir}/tracker3
252
253 %if %{with vala}
254 %files -n vala-tracker3
255 %defattr(644,root,root,755)
256 %{_datadir}/vala/vapi/tracker-sparql-%{abiver}.deps
257 %{_datadir}/vala/vapi/tracker-sparql-%{abiver}.vapi
258 %endif
This page took 0.089956 seconds and 2 git commands to generate.