3 # - kill bashisms in crawl stuff
5 %include /usr/lib/rpm/macros.mono
8 %bcond_without apidocs # don't build API documentation
9 %bcond_without evolution # don't include evolution support
10 %bcond_without galago # build without galago support
11 %bcond_without gsf # build without libgsf support
12 %bcond_without gui # don't build GNOME based GUI
13 %bcond_without python # don't build python libraries
14 %bcond_with epiphany # build epiphany extension
15 %bcond_with sqlite3 # use sqlite3 instead of sqlite2
18 %undefine with_evolution
21 Summary: Beagle - An indexing subsystem
22 Summary(pl): Beagle - podsystem indeksuj±cy
28 Source0: http://ftp.gnome.org/pub/gnome/sources/beagle/0.2/%{name}-%{version}.tar.bz2
29 # Source0-md5: a4d3a7f22fda739f2245b61e77a6a899
30 Source1: %{name}-autostart.desktop
31 Patch0: %{name}-desktop.patch
32 Patch1: %{name}-crawl.patch
33 Patch2: %{name}-kill_exec_a.patch
34 Patch3: %{name}-configure.patch
35 Patch4: %{name}-galago05.patch
36 URL: http://beaglewiki.org/Main_Page
37 BuildRequires: autoconf >= 2.52
38 BuildRequires: automake
39 %{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.11.1}
40 %{?with_galago:BuildRequires: dotnet-galago-sharp-devel >= 0.5.0}
41 BuildRequires: dotnet-gmime-sharp-devel >= 2.2.3
42 %{?with_gsf:BuildRequires: dotnet-gsf-sharp-devel >= 0.7}
43 #BuildRequires: dotnet-gst-sharp-devel
44 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10.0
46 BuildRequires: epiphany-devel >= 2.14.0
47 BuildRequires: epiphany-devel < 2.15.0
49 BuildRequires: gtk+2-devel >= 2:2.10.2
50 %{?with_apidocs:BuildRequires: gtk-doc >= 1.7}
51 BuildRequires: libexif-devel >= 0.6.13
52 BuildRequires: librsvg-devel >= 1:2.16.0
53 BuildRequires: libpng-devel
54 BuildRequires: libtool
55 BuildRequires: libxml2-devel >= 1:2.6.26
56 BuildRequires: mono-csharp >= 1.1.16.1
58 #BuildRequires: mozilla-devel
59 %{?with_python:BuildRequires: python-pygtk-devel >= 2.9.6}
60 BuildRequires: pkgconfig
61 BuildRequires: perl-XML-Parser
62 BuildRequires: python-devel
64 BuildRequires: sqlite3-devel >= 3.3.4
66 BuildRequires: sqlite-devel
68 BuildRequires: wv-devel >= 1.2.1
69 BuildRequires: xorg-lib-libXScrnSaver-devel
73 BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
74 BuildRequires: gnome-vfs2-devel >= 2.15.92
76 Requires: %{name}-libs = %{version}-%{release}
77 Requires: dotnet-gmime-sharp >= 2.2.3
83 ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
85 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
88 Beagle is an indexing sub-system and search aggregator built on top of
92 Beagle jest podsystemem indeksuj±cym i wyszukuj±cym zbudowanym na
96 Summary: Beagle libraries
97 Summary(pl): Bibiloteki Beagle
103 %description libs -l pl
107 Summary: Beagle development files
108 Summary(pl): Pliki programistyczne Beagle
109 Group: Development/Libraries
110 Requires: %{name}-libs = %{version}-%{release}
113 Beagle development files.
115 %description devel -l pl
116 Pliki programistyczne Beagle.
119 Summary: Beagle static libraries
120 Summary(pl): Statyczne biblioteki Beagle
121 Group: Development/Libraries
122 Requires: %{name}-devel = %{version}-%{release}
125 Beagle static libraries.
127 %description static -l pl
128 Statyczne biblioteki Beagle.
131 Summary: libbeagle API documentation
132 Summary(pl): Dokumentacja API libbeagle
134 Requires: gtk-doc-common
137 libbeagle API documentation.
139 %description apidocs -l pl
140 Dokumentacja API libbeagle.
142 %package crawl-system
143 Summary: Beagle crawl system
144 Summary(pl): System przeszukuj±cy beagle-crawl
145 Group: Applications/System
147 Provides: group(beagleindex)
148 Provides: user(beagleindex)
150 %description crawl-system
153 %description crawl-system -l pl
154 System przeszukuj±cy beagle-crawl.
157 Summary: Beagle Evolution backend
158 Summary(pl): Backend Beagle dla Evolution
159 Group: X11/Applications/Networking
160 Requires: %{name} = %{version}-%{release}
161 Requires: dotnet-evolution-sharp >= 0.11.1
162 Requires: evolution >= 2.7.92
165 Beagle Evolution backend.
167 %description evolution -l pl
168 Backend Beagle dla Evolution.
171 Summary: Beagle Mozilla Thunderbird backend
172 Summary(pl): Backend Beagle dla Mozilli Thunderbird
173 Group: X11/Applications/Networking
174 Requires: %{name} = %{version}-%{release}
176 %description thunderbird
177 Beagle Mozilla Thunderbird backend.
179 %description thunderbird -l pl
180 Backend Beagle dla Mozilli Thunderbird.
182 %package -n epiphany-extension-beagle
183 Summary: Epiphany extension - beagle
184 Summary(pl): Rozszerzenie dla Epiphany - beagle
185 Group: X11/Applications/Networking
186 Requires: %{name} = %{version}-%{release}
187 Requires: epiphany-extensions >= 2.15.2
189 %description -n epiphany-extension-beagle
190 Epiphany extension that allows Beagle to index every page the user
193 %description -n epiphany-extension-beagle -l pl
194 Rozszerzenie dla Epiphany sprawiaj±ce, ¿e Beagle indeksuje ka¿d±
197 %package -n python-%{name}
198 Summary: Beagle Python bindings
199 Summary(pl): Wi±zania jêzyka Python dla Beagle
200 Group: Libraries/Python
201 Requires: %{name} = %{version}-%{release}
202 %pyrequires_eq python-libs
204 %description -n python-%{name}
205 Beagle Python bindings.
207 %description -n python-%{name} -l pl
208 Wi±zania jêzyka Python dla Beagle.
211 Summary: GNOME based Beagle GUI
212 Summary(pl): Bazowane na GNOME GUI dla Beagle
213 Group: Libraries/Python
214 Requires: %{name} = %{version}-%{release}
215 Requires: gtk+2 >= 2:2.10.2
217 %description search-gui
218 GNOME based Beagle GUI.
220 %description search-gui -l pl
221 Bazowane na GNOME GUI dla Beagle.
224 Summary: Automatic startup integration for Beagle
225 Summary(pl): Integracja funkcji automatycznego startu Beagle
226 Group: X11/Applications
227 Requires: %{name} = %{version}-%{release}
230 Automatic session startup integration for Beagle.
232 %description startup -l pl
233 Integracja funkcji automatycznego startu Beagle.
250 %{?with_apidocs:--enable-gtk-doc} \
251 --with-html-dir=%{_gtkdocdir} \
252 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
253 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
254 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
257 MOZILLA_HOME=%{_libdir}/mozilla \
258 pythondir=%{py_sitedir}
261 rm -rf $RPM_BUILD_ROOT
262 install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
263 install -d $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
266 DESTDIR=$RPM_BUILD_ROOT \
267 pythondir=%{py_sitedir}
269 install %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/xdg/autostart
272 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/1.8/extensions/*.la \
273 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
275 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
276 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
278 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
283 rm -rf $RPM_BUILD_ROOT
286 %groupadd -g 166 -r -f beagleindex
287 %useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
290 if [ "$1" = "0" ]; then
291 %userremove beagleindex
292 %groupremove beagleindex
295 %post libs -p /sbin/ldconfig
296 %postun libs -p /sbin/ldconfig
298 %files -f %{name}.lang
299 %defattr(644,root,root,755)
300 %doc AUTHORS COPYING ChangeLog NEWS README
301 %attr(755,root,root) %{_bindir}/beagle-config
302 %attr(755,root,root) %{_bindir}/beagled
303 %attr(755,root,root) %{_bindir}/beagle-exercise-file-system
304 %attr(755,root,root) %{_bindir}/beagle-extract-content
305 %attr(755,root,root) %{_bindir}/beagle-index-info
306 %attr(755,root,root) %{_bindir}/beagle-index-url
307 %attr(755,root,root) %{_bindir}/beagle-info
308 %attr(755,root,root) %{_bindir}/beagle-ping
309 %attr(755,root,root) %{_bindir}/beagle-query
310 %attr(755,root,root) %{_bindir}/beagle-shutdown
311 %attr(755,root,root) %{_bindir}/beagle-status
312 %attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
313 %attr(755,root,root) %{_libdir}/%{name}/*.exe
314 %dir %{_libdir}/%{name}
315 %dir %{_libdir}/%{name}/Backends
316 %dir %{_libdir}/%{name}/Filters
317 %{_libdir}/%{name}/*.dll
318 %{_libdir}/%{name}/*.dll.config
319 %{_libdir}/%{name}/Filters/*.dll
320 %attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
324 %defattr(644,root,root,755)
325 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
328 %defattr(644,root,root,755)
329 %attr(755,root,root) %{_libdir}/*.so
330 %{_includedir}/libbeagle
335 %defattr(644,root,root,755)
340 %defattr(644,root,root,755)
345 %defattr(644,root,root,755)
346 %attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/*
347 %dir %{_sysconfdir}/beagle
348 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
349 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
350 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
351 %attr(755,root,root) %{_sbindir}/*
353 %if %{with evolution}
355 %defattr(644,root,root,755)
356 %{_libdir}/%{name}/Backends/Evolution*.dll
360 %defattr(644,root,root,755)
361 %{_libdir}/%{name}/Backends/Thunderbird*.dll
364 %files -n epiphany-extension-beagle
365 %defattr(644,root,root,755)
366 %doc epiphany-extension/README
367 %attr(755,root,root) %{_libdir}/epiphany/1.8/extensions/libbeagleextension.so*
368 %{_libdir}/epiphany/1.8/extensions/*.xml
372 %files -n python-%{name}
373 %defattr(644,root,root,755)
374 %attr(755,root,root) %{py_sitedir}/*.so
379 %defattr(644,root,root,755)
380 %attr(755,root,root) %{_bindir}/beagle-contactviewer
381 %attr(755,root,root) %{_bindir}/beagle-imlogviewer
382 %attr(755,root,root) %{_bindir}/beagle-search
383 %attr(755,root,root) %{_bindir}/beagle-settings
384 %attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
386 %{_desktopdir}/*.desktop
390 %defattr(644,root,root,755)
391 %{_sysconfdir}/xdg/autostart/beagle-autostart.desktop