3 # - kill bashisms in crawl stuff
4 # - add qyoto based settings (requires new packages)
6 %include /usr/lib/rpm/macros.mono
9 %bcond_without apidocs # don't build API documentation
10 %bcond_with avahi # enable Avahi support
11 %bcond_without evolution # don't include evolution support
12 %bcond_without galago # build without galago support
13 %bcond_without gsf # build without libgsf support
14 %bcond_without gui # don't build GNOME based GUI
15 %bcond_without epiphany # don't build epiphany extension
16 %bcond_without thunderbird # use Thunderbird backend
19 %undefine with_evolution
22 Summary: Beagle - An indexing subsystem
23 Summary(pl.UTF-8): Beagle - podsystem indeksujący
29 Source0: http://ftp.gnome.org/pub/GNOME/sources/beagle/0.3/%{name}-%{version}.tar.bz2
30 # Source0-md5: b73c12423d2d67133dbb05933f4c8fe1
31 Patch0: %{name}-desktop.patch
32 Patch1: %{name}-crawl.patch
33 Patch2: %{name}-configure.patch
34 Patch3: %{name}-use-xdg-open.patch
35 Patch4: %{name}-epiphany.patch
36 Patch5: %{name}-gmime-2.4.patch
37 URL: http://beagle-project.org/Main_Page
38 BuildRequires: autoconf >= 2.52
39 BuildRequires: automake
40 BuildRequires: chmlib-devel
41 %{?with_avahi:BuildRequires: dotnet-avahi-devel >= 0.6.10}
42 %{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.13.3}
43 %{?with_galago:BuildRequires: dotnet-galago-sharp-devel >= 0.5.0}
44 BuildRequires: dotnet-gmime-sharp-devel >= 2.3.5
45 %{?with_gsf:BuildRequires: dotnet-gsf-sharp-devel >= 0.8.1}
46 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10.0
47 BuildRequires: dotnet-ndesk-dbus-glib-sharp-devel >= 0.3.0
48 BuildRequires: dotnet-ndesk-dbus-sharp-devel >= 0.6.0
49 %{?with_epiphany:BuildRequires: epiphany-devel >= 2.22.0}
50 BuildRequires: gettext-devel
51 BuildRequires: intltool >= 0.40.0
52 BuildRequires: libtool
53 BuildRequires: mono-csharp >= 1.2.4
54 BuildRequires: mono-devel >= 1.2.4
55 BuildRequires: pkgconfig
56 BuildRequires: sqlite3-devel >= 3.3.9
57 BuildRequires: taglib-sharp-devel
58 BuildRequires: wv-devel >= 1.2.4
59 BuildRequires: xorg-lib-libXScrnSaver-devel
63 BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
64 BuildRequires: gtk+2-devel >= 2:2.10.10
65 BuildRequires: librsvg-devel >= 1:2.16.1
67 Requires: dotnet-gmime-sharp >= 2.3.5
68 Requires: dotnet-gsf-sharp
69 Requires: shared-mime-info
72 Obsoletes: beagle-libs
73 Obsoletes: beagle-static
74 # sr@Latn vs. sr@latin
75 Conflicts: glibc-misc < 6:2.7
76 ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
78 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81 Beagle is an indexing sub-system and search aggregator built on top of
84 %description -l pl.UTF-8
85 Beagle jest podsystemem indeksującym i wyszukującym zbudowanym na
89 Summary: Debug files for the Mono part of Beagle
90 Summary(pl.UTF-8): Pliki debugujące dla części Mono Beagle'a
91 Group: Development/Libraries
92 Requires: %{name} = %{version}-%{release}
95 Debug files for the Mono part of Beagle.
97 %description -l pl.UTF-8
98 Pliki debugujące dla części Mono Beagle'a.
101 Summary: Beagle development files
102 Summary(pl.UTF-8): Pliki programistyczne Beagle
103 Group: Development/Libraries
104 Requires: %{name} = %{version}-%{release}
107 Beagle development files.
109 %description devel -l pl.UTF-8
110 Pliki programistyczne Beagle.
113 Summary: libbeagle API documentation
114 Summary(pl.UTF-8): Dokumentacja API libbeagle
116 Requires: gtk-doc-common
119 libbeagle API documentation.
121 %description apidocs -l pl.UTF-8
122 Dokumentacja API libbeagle.
124 %package crawl-system
125 Summary: Beagle crawl system
126 Summary(pl.UTF-8): System przeszukujący beagle-crawl
127 Group: Applications/System
129 Provides: group(beagleindex)
130 Provides: user(beagleindex)
132 %description crawl-system
135 %description crawl-system -l pl.UTF-8
136 System przeszukujący beagle-crawl.
139 Summary: GNOME based Beagle GUI
140 Summary(pl.UTF-8): Oparty na GNOME graficzny interfejs dla Beagle
141 Group: Libraries/Python
142 Requires: %{name} = %{version}-%{release}
143 Requires: gtk+2 >= 2:2.10.10
145 %description search-gui
146 GNOME based Beagle GUI.
148 %description search-gui -l pl.UTF-8
149 Oparty na GNOME graficzny interfejs dla Beagle.
152 Summary: Automatic startup integration for Beagle
153 Summary(pl.UTF-8): Integracja funkcji automatycznego startu Beagle
154 Group: X11/Applications
155 Requires: %{name} = %{version}-%{release}
156 Obsoletes: beagle-gnome
159 Automatic session startup integration for Beagle.
161 %description startup -l pl.UTF-8
162 Integracja funkcji automatycznego startu Beagle.
164 %package webinterface
165 Summary: A web interface for Beagle
166 Summary(pl.UTF-8): Interfejs sieciowy dla Beagle
168 Requires: %{name} = %{version}-%{release}
170 %description webinterface
171 An AJAX interface that allows users to search for data through their
174 %description webinterface -l pl.UTF-8
175 AJAX-owy interfejs pozwalający użytkownikom wyszukiwać dane za pomocą
176 przeglądarki internetowej.
179 Summary: Beagle Evolution backend
180 Summary(pl.UTF-8): Backend Beagle dla Evolution
181 Group: X11/Applications/Networking
182 Requires: %{name} = %{version}-%{release}
183 Requires: dotnet-evolution-sharp >= 0.11.1
184 Requires: evolution >= 2.10.0
186 %description evolution
187 Beagle Evolution backend.
189 %description evolution -l pl.UTF-8
190 Backend Beagle dla Evolution.
193 Summary: Beagle Icedove backend
194 Summary(pl.UTF-8): Backend Beagle dla Icedove
195 Group: X11/Applications/Networking
196 Requires: %{name} = %{version}-%{release}
198 Provides: beagle-thunderbird
199 Obsoletes: beagle-thunderbird
202 Beagle Icedove backend.
204 %description icedove -l pl.UTF-8
205 Backend Beagle dla Icedove.
207 %package -n epiphany-extension-beagle
208 Summary: Epiphany extension - beagle
209 Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
210 Group: X11/Applications/Networking
211 Requires: %{name} = %{version}-%{release}
212 Requires: epiphany-extensions >= 2.22.0
214 %description -n epiphany-extension-beagle
215 Epiphany extension that allows Beagle to index every page the user
218 %description -n epiphany-extension-beagle -l pl.UTF-8
219 Rozszerzenie dla Epiphany sprawiające, że Beagle indeksuje każdą
222 %package -n iceweasel-extension-beagle
223 Summary: Iceweasel extension - beagle
224 Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Iceweasel - beagle
225 Group: X11/Applications/Networking
226 Requires: %{name} = %{version}-%{release}
228 Provides: mozilla-firefox-extension-beagle
229 Obsoletes: mozilla-firefox-extension-beagle
231 %description -n iceweasel-extension-beagle
232 Iceweasel extension that allows Beagle to index every page the user
235 %description -n iceweasel-extension-beagle -l pl.UTF-8
236 Rozszerzenie dla przeglądarki Iceweasel sprawiające, że Beagle
237 indeksuje każdą odwiedzaną stronę.
257 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
258 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution \
259 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
260 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird \
261 --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi
266 rm -rf $RPM_BUILD_ROOT
267 install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
270 DESTDIR=$RPM_BUILD_ROOT \
271 monodocdir=%{_libdir}/monodoc/sources
273 rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*glue.la
275 dest=$RPM_BUILD_ROOT%{_datadir}/iceweasel/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
276 install -d $dest $dest/chrome
277 install firefox-extension/{chrome.manifest,install.rdf} $dest
278 cp -r firefox-extension/chrome/* $dest/chrome
280 %if %{with thunderbird}
281 tdest=$RPM_BUILD_ROOT%{_libdir}/icedove/extensions/\{b656ef18-fd76-45e6-95cc-8043f26361e7\}
283 install thunderbird-extension/{chrome.manifest,install.rdf} $tdest
284 cp -r thunderbird-extension/{chrome,components,defaults} $tdest
288 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
289 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
296 rm -rf $RPM_BUILD_ROOT
299 %groupadd -g 166 -r -f beagleindex
300 %useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
303 if [ "$1" = "0" ]; then
304 %userremove beagleindex
305 %groupremove beagleindex
308 %files -f %{name}.lang
309 %defattr(644,root,root,755)
310 %doc AUTHORS COPYING ChangeLog NEWS README
311 %attr(755,root,root) %{_bindir}/beagle-config
312 %{?with_gsf:%attr(755,root,root) %{_bindir}/beagle-doc-extractor}
313 %attr(755,root,root) %{_bindir}/beagle-extract-content
314 %attr(755,root,root) %{_bindir}/beagle-index-info
315 %attr(755,root,root) %{_bindir}/beagle-info
316 %attr(755,root,root) %{_bindir}/beagle-ping
317 %attr(755,root,root) %{_bindir}/beagle-query
318 %attr(755,root,root) %{_bindir}/beagle-shutdown
319 %attr(755,root,root) %{_bindir}/beagle-static-query
320 %attr(755,root,root) %{_bindir}/beagle-status
321 %attr(755,root,root) %{_bindir}/beagled
322 %attr(755,root,root) %{_bindir}/blocate
323 %attr(755,root,root) %{_libdir}/%{name}/*.exe
324 %attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
325 %dir %{_sysconfdir}/beagle
326 %dir %{_sysconfdir}/beagle/config-files
327 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/blocate.conf
328 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/query-mapping.xml
329 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/BeagleSearch.xml
330 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Daemon.xml
331 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/FilesQueryable.xml
332 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/GoogleBackends.xml
333 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Networking.xml
334 %dir %{_libdir}/%{name}
335 %dir %{_libdir}/%{name}/Backends
336 %dir %{_libdir}/%{name}/Filters
337 %{_libdir}/%{name}/*.dll
338 %{_libdir}/%{name}/*.dll.config
339 %{_libdir}/%{name}/Backends/GoogleBackends*.dll
340 %{_libdir}/%{name}/Filters/*.dll
341 %attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
342 %{_mandir}/man1/beagle-config.1*
343 %{_mandir}/man1/beagle-info.1*
344 %{_mandir}/man1/beagle-ping.1*
345 %{_mandir}/man1/beagle-query.1*
346 %{_mandir}/man1/beagle-shutdown.1*
347 %{_mandir}/man1/beagle-status.1*
348 %{_mandir}/man1/beagled.1*
349 %{_mandir}/man8/beagle-doc-extractor.8*
350 %{_mandir}/man8/beagle-index-info.8*
353 %defattr(644,root,root,755)
354 %{_libdir}/%{name}/Backends/*.mdb
355 %{_libdir}/%{name}/Filters/*.mdb
356 %{_libdir}/%{name}/*.mdb
359 %defattr(644,root,root,755)
360 %{_pkgconfigdir}/beagle-0.0.pc
361 %{?with_gui:%{_pkgconfigdir}/beagle-ui-0.0.pc}
362 %{_pkgconfigdir}/beagle-daemon.pc
366 %defattr(644,root,root,755)
367 %{_libdir}/monodoc/sources/*
371 %defattr(644,root,root,755)
372 %dir %{_sysconfdir}/beagle/crawl-rules
373 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-applications
374 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-documentation
375 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-executables
376 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-manpages
377 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-monodoc
378 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-windows
379 # XXX: samples not here
380 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/external-filters.xml.sample
381 %attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/beagle-crawl-system
382 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
383 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
384 %attr(755,root,root) %{_sbindir}/beagle-build-index
385 %attr(755,root,root) %{_sbindir}/beagle-dump-index
386 %attr(755,root,root) %{_sbindir}/beagle-manage-index
387 %attr(755,root,root) %{_sbindir}/beagle-master-delete-button
388 %attr(755,root,root) %{_sbindir}/beagle-removable-index
389 %{_mandir}/man8/beagle-dump-index.8*
390 %{_mandir}/man8/beagle-build-index.8*
391 %{_mandir}/man8/beagle-extract-content.8*
392 %{_mandir}/man8/beagle-manage-index.8*
396 %defattr(644,root,root,755)
397 %attr(755,root,root) %{_bindir}/beagle-imlogviewer
398 %attr(755,root,root) %{_bindir}/beagle-search
399 %attr(755,root,root) %{_bindir}/beagle-settings
400 %attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
401 %attr(755,root,root) %{_libdir}/%{name}/keygrabber.py
402 %{_mandir}/man1/beagle-search.1*
403 %{_mandir}/man1/beagle-settings.1*
404 %{_mandir}/man8/beagle-imlogviewer.8*
405 %{_desktopdir}/*.desktop
409 %defattr(644,root,root,755)
410 %{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
411 %{?with_gui:%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop}
414 %defattr(644,root,root,755)
417 %if %{with evolution}
419 %defattr(644,root,root,755)
420 %{_libdir}/%{name}/Backends/Evolution*.dll
423 %if %{with thunderbird}
425 %defattr(644,root,root,755)
426 %{_libdir}/%{name}/Backends/Thunderbird*.dll
427 %{_libdir}/icedove/extensions/{b656ef18-fd76-45e6-95cc-8043f26361e7}
431 %files -n epiphany-extension-beagle
432 %defattr(644,root,root,755)
433 %attr(755,root,root) %{_libdir}/epiphany/2.26/extensions/beagle.py
434 %{_libdir}/epiphany/2.26/extensions/*.ephy-extension
437 %files -n iceweasel-extension-beagle
438 %defattr(644,root,root,755)
439 %{_datadir}/iceweasel/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}