3 # - kill bashisms in crawl stuff
4 # - add qyoto based settings (requires new packages)
5 # - replace epiphany-extension hack
7 %include /usr/lib/rpm/macros.mono
10 %bcond_without apidocs # don't build API documentation
11 %bcond_with avahi # enable Avahi support
12 %bcond_without evolution # don't include evolution support
13 %bcond_without galago # build without galago support
14 %bcond_without gsf # build without libgsf support
15 %bcond_without gui # don't build GNOME based GUI
16 %bcond_without python # don't build python libraries
17 %bcond_without epiphany # don't build epiphany extension
18 %bcond_without thunderbird # use Thunderbird backend
21 %undefine with_evolution
24 Summary: Beagle - An indexing subsystem
25 Summary(pl.UTF-8): Beagle - podsystem indeksujący
31 Source0: http://ftp.gnome.org/pub/GNOME/sources/beagle/0.3/%{name}-%{version}.tar.bz2
32 # Source0-md5: c1b6c340c72a70e33212c85513bc23f2
33 Patch0: %{name}-desktop.patch
34 Patch1: %{name}-crawl.patch
35 Patch2: %{name}-configure.patch
36 URL: http://beagle-project.org/Main_Page
37 BuildRequires: autoconf >= 2.52
38 BuildRequires: automake
39 BuildRequires: chmlib-devel
40 %{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.13.3}
41 %{?with_galago:BuildRequires: dotnet-galago-sharp-devel >= 0.5.0}
42 BuildRequires: dotnet-gmime-sharp-devel >= 2.2.3
43 %{?with_gsf:BuildRequires: dotnet-gsf-sharp-devel >= 0.8.1}
44 #BuildRequires: dotnet-gst-sharp-devel
45 BuildRequires: dotnet-gtk-sharp2-devel >= 2.10.0
46 BuildRequires: dotnet-ndesk-dbus-glib-sharp-devel >= 0.3.0
47 BuildRequires: dotnet-ndesk-dbus-sharp-devel >= 0.6.0
49 BuildRequires: epiphany-devel >= 2.20.0
51 BuildRequires: gtk+2-devel >= 2:2.10.10
52 %{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
53 BuildRequires: libexif-devel >= 0.6.13
54 BuildRequires: libpng-devel
55 BuildRequires: librsvg-devel >= 1:2.16.1
56 BuildRequires: libtool
57 BuildRequires: libxml2-devel >= 1:2.6.27
58 BuildRequires: mono-csharp >= 1.1.13.5
59 BuildRequires: perl-XML-Parser
60 BuildRequires: pkgconfig
61 BuildRequires: python-devel
62 %{?with_python:BuildRequires: python-pygtk-devel >= 2:2.10.4}
63 BuildRequires: sqlite3-devel >= 3.3.4
64 BuildRequires: wv-devel >= 1.2.4
65 BuildRequires: xorg-lib-libXScrnSaver-devel
69 BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
70 BuildRequires: gnome-vfs2-devel >= 2.18.0.1
72 Requires: %{name}-libs = %{version}-%{release}
73 Requires: dotnet-gmime-sharp >= 2.2.3
74 Requires: dotnet-gsf-sharp
76 # sr@Latn vs. sr@latin
77 Conflicts: glibc-misc < 6:2.7
78 ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
80 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
83 Beagle is an indexing sub-system and search aggregator built on top of
86 %description -l pl.UTF-8
87 Beagle jest podsystemem indeksującym i wyszukującym zbudowanym na
91 Summary: Beagle libraries
92 Summary(pl.UTF-8): Bibiloteki Beagle
98 %description libs -l pl.UTF-8
102 Summary: Debug files for the Mono part of Beagle
103 Summary(pl.UTF-8): Pliki debugujące dla części Mono Beagle'a
104 Group: Development/Libraries
105 Requires: %{name} = %{version}-%{release}
108 Debug files for the Mono part of Beagle.
110 %description -l pl.UTF-8
111 Pliki debugujące dla części Mono Beagle'a.
114 Summary: Beagle development files
115 Summary(pl.UTF-8): Pliki programistyczne Beagle
116 Group: Development/Libraries
117 Requires: %{name}-libs = %{version}-%{release}
120 Beagle development files.
122 %description devel -l pl.UTF-8
123 Pliki programistyczne Beagle.
126 Summary: Beagle static libraries
127 Summary(pl.UTF-8): Statyczne biblioteki Beagle
128 Group: Development/Libraries
129 Requires: %{name}-devel = %{version}-%{release}
132 Beagle static libraries.
134 %description static -l pl.UTF-8
135 Statyczne biblioteki Beagle.
138 Summary: libbeagle API documentation
139 Summary(pl.UTF-8): Dokumentacja API libbeagle
141 Requires: gtk-doc-common
144 libbeagle API documentation.
146 %description apidocs -l pl.UTF-8
147 Dokumentacja API libbeagle.
149 %package crawl-system
150 Summary: Beagle crawl system
151 Summary(pl.UTF-8): System przeszukujący beagle-crawl
152 Group: Applications/System
154 Provides: group(beagleindex)
155 Provides: user(beagleindex)
157 %description crawl-system
160 %description crawl-system -l pl.UTF-8
161 System przeszukujący beagle-crawl.
164 Summary: Beagle Evolution backend
165 Summary(pl.UTF-8): Backend Beagle dla Evolution
166 Group: X11/Applications/Networking
167 Requires: %{name} = %{version}-%{release}
168 Requires: dotnet-evolution-sharp >= 0.11.1
169 Requires: evolution >= 2.10.0
171 %description evolution
172 Beagle Evolution backend.
174 %description evolution -l pl.UTF-8
175 Backend Beagle dla Evolution.
178 Summary: Beagle Mozilla Thunderbird backend
179 Summary(pl.UTF-8): Backend Beagle dla Mozilli Thunderbird
180 Group: X11/Applications/Networking
181 Requires: %{name} = %{version}-%{release}
183 %description thunderbird
184 Beagle Mozilla Thunderbird backend.
186 %description thunderbird -l pl.UTF-8
187 Backend Beagle dla Mozilli Thunderbird.
189 %package -n mozilla-firefox-extension-beagle
190 Summary: Mozilla Firefox extension - beagle
191 Summary(pl.UTF-8): Rozszerzenie dla Mozilla Firefox - beagle
192 Group: X11/Applications/Networking
193 Requires: %{name} = %{version}-%{release}
194 Requires: mozilla-firefox >= 2.0.0.1-2
196 %description -n mozilla-firefox-extension-beagle
197 Mozilla Firefox extension that allows Beagle to index every page the
200 %description -n mozilla-firefox-extension-beagle -l pl.UTF-8
201 Rozszerzenie dla Mozilla Firefox sprawiające, że Beagle indeksuje
202 każdą odwiedzaną stronę.
204 %package -n epiphany-extension-beagle
205 Summary: Epiphany extension - beagle
206 Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
207 Group: X11/Applications/Networking
208 Requires: %{name} = %{version}-%{release}
209 Requires: epiphany-extensions >= 2.20.0
211 %description -n epiphany-extension-beagle
212 Epiphany extension that allows Beagle to index every page the user
215 %description -n epiphany-extension-beagle -l pl.UTF-8
216 Rozszerzenie dla Epiphany sprawiające, że Beagle indeksuje każdą
219 %package -n python-%{name}
220 Summary: Beagle Python bindings
221 Summary(pl.UTF-8): Wiązania języka Python dla Beagle
222 Group: Libraries/Python
223 Requires: %{name} = %{version}-%{release}
224 %pyrequires_eq python-libs
226 %description -n python-%{name}
227 Beagle Python bindings.
229 %description -n python-%{name} -l pl.UTF-8
230 Wiązania języka Python dla Beagle.
233 Summary: GNOME based Beagle GUI
234 Summary(pl.UTF-8): Oparty na GNOME graficzny interfejs dla Beagle
235 Group: Libraries/Python
236 Requires: %{name} = %{version}-%{release}
237 Requires: gtk+2 >= 2:2.10.10
239 %description search-gui
240 GNOME based Beagle GUI.
242 %description search-gui -l pl.UTF-8
243 Oparty na GNOME graficzny interfejs dla Beagle.
246 Summary: Automatic startup integration for Beagle
247 Summary(pl.UTF-8): Integracja funkcji automatycznego startu Beagle
248 Group: X11/Applications
249 Requires: %{name} = %{version}-%{release}
250 Obsoletes: beagle-gnome
253 Automatic session startup integration for Beagle.
255 %description startup -l pl.UTF-8
256 Integracja funkcji automatycznego startu Beagle.
258 %package webinterface
259 Summary: A web interface for Beagle
260 Summary(pl.UTF-8): Interfejs sieciowy dla Beagle
262 Requires: %{name} = %{version}-%{release}
264 %description webinterface
265 An AJAX interface that allows users to search for data through their
268 %description webinterface -l pl.UTF-8
269 AJAX-owy interfejs pozwalający użytkownikom wyszukiwać dane za pomocą
270 przeglądarki internetowej.
286 %{?with_apidocs:--enable-gtk-doc} \
287 --with-html-dir=%{_gtkdocdir} \
288 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
289 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
290 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
291 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird \
292 --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi
295 MOZILLA_HOME=%{_libdir}/mozilla \
296 pythondir=%{py_sitedir}
299 rm -rf $RPM_BUILD_ROOT
300 install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
303 DESTDIR=$RPM_BUILD_ROOT \
304 pythondir=%{py_sitedir} \
305 monodocdir=%{_libdir}/monodoc/sources
307 dest=$RPM_BUILD_ROOT%{_datadir}/mozilla-firefox/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
308 install -d $dest $dest/chrome
309 install firefox-extension/{chrome.manifest,install.rdf} $dest
310 cp -r firefox-extension/chrome/* $dest/chrome
313 install -d $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions
314 sed -e "s|\@localedir\@|\%{_localedir}|g" \
315 < epiphany-extension/beagle.py.in > epiphany-extension/beagle.py
316 install epiphany-extension/beagle.py $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.py
317 install epiphany-extension/beagle.ephy-extension.in $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.ephy-extension
320 %if %{with thunderbird}
321 tdest=$RPM_BUILD_ROOT%{_libdir}/mozilla-thunderbird/extensions/\{b656ef18-fd76-45e6-95cc-8043f26361e7\}
323 install thunderbird-extension/{chrome.manifest,install.rdf} $tdest
324 cp -r thunderbird-extension/{chrome,components,defaults} $tdest
327 [ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
328 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
332 rm -rf $RPM_BUILD_ROOT
335 %groupadd -g 166 -r -f beagleindex
336 %useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
339 if [ "$1" = "0" ]; then
340 %userremove beagleindex
341 %groupremove beagleindex
344 %post libs -p /sbin/ldconfig
345 %postun libs -p /sbin/ldconfig
347 %files -f %{name}.lang
348 %defattr(644,root,root,755)
349 %doc AUTHORS COPYING ChangeLog NEWS README
350 %attr(755,root,root) %{_bindir}/beagle-config
351 %attr(755,root,root) %{_bindir}/beagled
352 %attr(755,root,root) %{_bindir}/beagle-doc-extractor
353 %attr(755,root,root) %{_bindir}/beagle-extract-content
354 %attr(755,root,root) %{_bindir}/beagle-index-info
355 %attr(755,root,root) %{_bindir}/beagle-info
356 %attr(755,root,root) %{_bindir}/beagle-ping
357 %attr(755,root,root) %{_bindir}/beagle-query
358 %attr(755,root,root) %{_bindir}/beagle-shutdown
359 %attr(755,root,root) %{_bindir}/beagle-status
360 %attr(755,root,root) %{_libdir}/%{name}/*.exe
361 %dir %{_libdir}/%{name}
362 %dir %{_libdir}/%{name}/Backends
363 %dir %{_libdir}/%{name}/Filters
364 %{_libdir}/%{name}/*.dll
365 %{_libdir}/%{name}/*.dll.config
366 %{_libdir}/%{name}/Filters/*.dll
367 %attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
371 %defattr(644,root,root,755)
372 %attr(755,root,root) %{_libdir}/%{name}/lib*.so.*.*.*
375 %defattr(644,root,root,755)
376 %{_libdir}/%{name}/Backends/*.mdb
377 %{_libdir}/%{name}/Filters/*.mdb
378 %{_libdir}/%{name}/*.mdb
381 %defattr(644,root,root,755)
382 %attr(755,root,root) %{_libdir}/%{name}/*.so
383 %attr(755,root,root) %ghost %{_libdir}/%{name}/*.so.0
384 %{_libdir}/%{name}/*.la
388 %defattr(644,root,root,755)
389 %attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/*
390 %dir %{_sysconfdir}/beagle
391 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
392 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
393 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
394 %attr(755,root,root) %{_sbindir}/*
398 %defattr(644,root,root,755)
399 %{_libdir}/monodoc/sources/*
402 %if %{with evolution}
404 %defattr(644,root,root,755)
405 %{_libdir}/%{name}/Backends/Evolution*.dll
408 %if %{with thunderbird}
410 %defattr(644,root,root,755)
411 %{_libdir}/%{name}/Backends/Thunderbird*.dll
412 %{_libdir}/mozilla-thunderbird/extensions/{b656ef18-fd76-45e6-95cc-8043f26361e7}
415 %files -n mozilla-firefox-extension-beagle
416 %defattr(644,root,root,755)
417 %{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
420 %files -n epiphany-extension-beagle
421 %defattr(644,root,root,755)
422 %attr(755,root,root) %{_libdir}/epiphany/2.20/extensions/beagle.py
423 %{_libdir}/epiphany/2.20/extensions/*.ephy-extension
428 %defattr(644,root,root,755)
429 %attr(755,root,root) %{_bindir}/beagle-imlogviewer
430 %attr(755,root,root) %{_bindir}/beagle-search
431 %attr(755,root,root) %{_bindir}/beagle-settings
432 %attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
433 %{_desktopdir}/*.desktop
437 %defattr(644,root,root,755)
438 %{_libdir}/%{name}/*.a
441 %defattr(644,root,root,755)
442 %{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
443 %{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
446 %defattr(644,root,root,755)