]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- glue libraries are dlopened by mono; no point in -libs and -static
[packages/beagle.git] / beagle.spec
CommitLineData
0c1be701 1#
c08a558f 2# TODO:
a71c95fe 3# - kill bashisms in crawl stuff
28afbe66 4# - add qyoto based settings (requires new packages)
5# - replace epiphany-extension hack
36d6fb2e 6#
7%include /usr/lib/rpm/macros.mono
0217b850 8#
9# Conditional build:
a71c95fe 10%bcond_without apidocs # don't build API documentation
28afbe66 11%bcond_with avahi # enable Avahi support
a822419b 12%bcond_without evolution # don't include evolution support
cb261afd 13%bcond_without galago # build without galago support
14%bcond_without gsf # build without libgsf support
a71c95fe 15%bcond_without gui # don't build GNOME based GUI
1c9cdc87 16%bcond_without python # don't build python libraries
29ce6ab0 17%bcond_without epiphany # don't build epiphany extension
b33a45f4 18%bcond_without thunderbird # use Thunderbird backend
a71c95fe 19#
49827961 20%if !%{with gui}
a71c95fe 21%undefine with_evolution
22%endif
36d6fb2e 23#
99f1d7d3 24Summary: Beagle - An indexing subsystem
e30bc3c5 25Summary(pl.UTF-8): Beagle - podsystem indeksujący
99f1d7d3 26Name: beagle
28afbe66 27Version: 0.3.3
28Release: 1
99f1d7d3 29License: Various
30Group: Libraries
28afbe66 31Source0: http://ftp.gnome.org/pub/GNOME/sources/beagle/0.3/%{name}-%{version}.tar.bz2
32# Source0-md5: c1b6c340c72a70e33212c85513bc23f2
4afaee22 33Patch0: %{name}-desktop.patch
6182bda9 34Patch1: %{name}-crawl.patch
28afbe66 35Patch2: %{name}-configure.patch
ff55a2dc 36URL: http://beagle-project.org/Main_Page
0b280122
MK
37BuildRequires: autoconf >= 2.52
38BuildRequires: automake
643f8926 39BuildRequires: chmlib-devel
b0d572c4 40%{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.13.3}
58203720 41%{?with_galago:BuildRequires: dotnet-galago-sharp-devel >= 0.5.0}
091e6609 42BuildRequires: dotnet-gmime-sharp-devel >= 2.2.3
29ce6ab0 43%{?with_gsf:BuildRequires: dotnet-gsf-sharp-devel >= 0.8.1}
15c7d5f6 44#BuildRequires: dotnet-gst-sharp-devel
87f0d596 45BuildRequires: dotnet-gtk-sharp2-devel >= 2.10.0
28afbe66 46BuildRequires: dotnet-ndesk-dbus-glib-sharp-devel >= 0.3.0
47BuildRequires: dotnet-ndesk-dbus-sharp-devel >= 0.6.0
6300fca8 48%if %{with epiphany}
1b19108f 49BuildRequires: epiphany-devel >= 2.20.0
87f0d596 50%endif
119be5cb
MB
51BuildRequires: gtk+2-devel >= 2:2.10.10
52%{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
7ba8a6a9 53BuildRequires: libexif-devel >= 0.6.13
3fec4ed6 54BuildRequires: libpng-devel
6300fca8 55BuildRequires: librsvg-devel >= 1:2.16.1
a028da53 56BuildRequires: libtool
119be5cb 57BuildRequires: libxml2-devel >= 1:2.6.27
17b40177 58BuildRequires: mono-csharp >= 1.1.13.5
1c9cdc87 59BuildRequires: perl-XML-Parser
6300fca8 60BuildRequires: pkgconfig
c08a558f 61BuildRequires: python-devel
6300fca8 62%{?with_python:BuildRequires: python-pygtk-devel >= 2:2.10.4}
1c9cdc87 63BuildRequires: sqlite3-devel >= 3.3.4
4c824a15 64BuildRequires: wv-devel >= 1.2.4
7ba8a6a9 65BuildRequires: xorg-lib-libXScrnSaver-devel
10b5eb30 66BuildRequires: zip
a71c95fe 67# GUI BRs
68%if %{with gui}
87f0d596 69BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
119be5cb 70BuildRequires: gnome-vfs2-devel >= 2.18.0.1
a71c95fe 71%endif
4afaee22 72Requires: %{name}-libs = %{version}-%{release}
091e6609 73Requires: dotnet-gmime-sharp >= 2.2.3
4d7c0434 74Requires: dotnet-gsf-sharp
1c9cdc87 75Requires: sqlite3
79f56cce
JB
76Obsoletes: beagle-libs
77Obsoletes: beagle-static
78Obsoletes: python-beagle
1aa42a1c 79# sr@Latn vs. sr@latin
80Conflicts: glibc-misc < 6:2.7
a4757434 81ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
6300fca8 82ExcludeArch: i386
99f1d7d3 83BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
84
85%description
86Beagle is an indexing sub-system and search aggregator built on top of
87Lucene.Net.
88
2eeb2838
JR
89%description -l pl.UTF-8
90Beagle jest podsystemem indeksującym i wyszukującym zbudowanym na
99f1d7d3 91bazie Lucene.Net.
92
28afbe66 93%package debug
94Summary: Debug files for the Mono part of Beagle
95Summary(pl.UTF-8): Pliki debugujące dla części Mono Beagle'a
96Group: Development/Libraries
97Requires: %{name} = %{version}-%{release}
98
99%description debug
100Debug files for the Mono part of Beagle.
101
102%description -l pl.UTF-8
103Pliki debugujące dla części Mono Beagle'a.
104
99f1d7d3 105%package devel
106Summary: Beagle development files
e30bc3c5 107Summary(pl.UTF-8): Pliki programistyczne Beagle
99f1d7d3 108Group: Development/Libraries
4afaee22 109Requires: %{name}-libs = %{version}-%{release}
99f1d7d3 110
111%description devel
cbe6bf97 112Beagle development files.
99f1d7d3 113
2eeb2838 114%description devel -l pl.UTF-8
cbe6bf97 115Pliki programistyczne Beagle.
116
58203720 117%package apidocs
118Summary: libbeagle API documentation
e30bc3c5 119Summary(pl.UTF-8): Dokumentacja API libbeagle
58203720 120Group: Documentation
121Requires: gtk-doc-common
122
123%description apidocs
124libbeagle API documentation.
125
2eeb2838 126%description apidocs -l pl.UTF-8
58203720 127Dokumentacja API libbeagle.
128
4afaee22 129%package crawl-system
130Summary: Beagle crawl system
e30bc3c5 131Summary(pl.UTF-8): System przeszukujący beagle-crawl
4afaee22 132Group: Applications/System
a822419b 133Requires: crondaemon
47a83e37
JB
134Provides: group(beagleindex)
135Provides: user(beagleindex)
4afaee22 136
137%description crawl-system
138Beagle crawl system.
139
2eeb2838
JR
140%description crawl-system -l pl.UTF-8
141System przeszukujący beagle-crawl.
4afaee22 142
79f56cce
JB
143%package search-gui
144Summary: GNOME based Beagle GUI
145Summary(pl.UTF-8): Oparty na GNOME graficzny interfejs dla Beagle
146Group: Libraries/Python
147Requires: %{name} = %{version}-%{release}
148Requires: gtk+2 >= 2:2.10.10
149
150%description search-gui
151GNOME based Beagle GUI.
152
153%description search-gui -l pl.UTF-8
154Oparty na GNOME graficzny interfejs dla Beagle.
155
156%package startup
157Summary: Automatic startup integration for Beagle
158Summary(pl.UTF-8): Integracja funkcji automatycznego startu Beagle
159Group: X11/Applications
160Requires: %{name} = %{version}-%{release}
161Obsoletes: beagle-gnome
162
163%description startup
164Automatic session startup integration for Beagle.
165
166%description startup -l pl.UTF-8
167Integracja funkcji automatycznego startu Beagle.
168
169%package webinterface
170Summary: A web interface for Beagle
171Summary(pl.UTF-8): Interfejs sieciowy dla Beagle
172Group: Applications
173Requires: %{name} = %{version}-%{release}
174
175%description webinterface
176An AJAX interface that allows users to search for data through their
177web browser.
178
179%description webinterface -l pl.UTF-8
180AJAX-owy interfejs pozwalający użytkownikom wyszukiwać dane za pomocą
181przeglądarki internetowej.
182
b4b515ca 183%package evolution
184Summary: Beagle Evolution backend
e30bc3c5 185Summary(pl.UTF-8): Backend Beagle dla Evolution
b4b515ca 186Group: X11/Applications/Networking
187Requires: %{name} = %{version}-%{release}
7ba8a6a9 188Requires: dotnet-evolution-sharp >= 0.11.1
119be5cb 189Requires: evolution >= 2.10.0
b4b515ca 190
0543bc3b 191%description evolution
b4b515ca 192Beagle Evolution backend.
193
2eeb2838 194%description evolution -l pl.UTF-8
b4b515ca 195Backend Beagle dla Evolution.
196
a4757434 197%package thunderbird
198Summary: Beagle Mozilla Thunderbird backend
e30bc3c5 199Summary(pl.UTF-8): Backend Beagle dla Mozilli Thunderbird
a4757434 200Group: X11/Applications/Networking
201Requires: %{name} = %{version}-%{release}
202
203%description thunderbird
204Beagle Mozilla Thunderbird backend.
205
2eeb2838 206%description thunderbird -l pl.UTF-8
a4757434 207Backend Beagle dla Mozilli Thunderbird.
208
cbe6bf97 209%package -n epiphany-extension-beagle
210Summary: Epiphany extension - beagle
e30bc3c5 211Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
cbe6bf97 212Group: X11/Applications/Networking
213Requires: %{name} = %{version}-%{release}
1b19108f 214Requires: epiphany-extensions >= 2.20.0
cbe6bf97 215
216%description -n epiphany-extension-beagle
217Epiphany extension that allows Beagle to index every page the user
218views.
219
2eeb2838
JR
220%description -n epiphany-extension-beagle -l pl.UTF-8
221Rozszerzenie dla Epiphany sprawiające, że Beagle indeksuje każdą
222odwiedzaną stronę.
99f1d7d3 223
79f56cce
JB
224%package -n mozilla-firefox-extension-beagle
225Summary: Mozilla Firefox extension - beagle
226Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Mozilla Firefox - beagle
227Group: X11/Applications/Networking
28afbe66 228Requires: %{name} = %{version}-%{release}
79f56cce 229Requires: mozilla-firefox >= 2.0.0.1-2
28afbe66 230
79f56cce
JB
231%description -n mozilla-firefox-extension-beagle
232Mozilla Firefox extension that allows Beagle to index every page the
233user views.
28afbe66 234
79f56cce
JB
235%description -n mozilla-firefox-extension-beagle -l pl.UTF-8
236Rozszerzenie dla przeglądarki Mozilla Firefox sprawiające, że Beagle
237indeksuje każdą odwiedzaną stronę.
28afbe66 238
99f1d7d3 239%prep
240%setup -q
a822419b 241%patch0 -p1
242%patch1 -p1
28afbe66 243%patch2 -p1
99f1d7d3 244
245%build
b0d572c4 246%{__intltoolize}
0b280122
MK
247%{__libtoolize}
248%{__aclocal}
249%{__autoconf}
250%{__automake}
0217b850 251%configure \
79f56cce 252 --disable-static \
a71c95fe 253 %{?with_apidocs:--enable-gtk-doc} \
36d6fb2e 254 --with-html-dir=%{_gtkdocdir} \
dd2f6f33 255 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
a71c95fe 256 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
257 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
28afbe66 258 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird \
259 --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi
c08a558f 260
79f56cce 261%{__make}
99f1d7d3 262
263%install
264rm -rf $RPM_BUILD_ROOT
416cd106 265install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
99f1d7d3 266
267%{__make} install \
c08a558f 268 DESTDIR=$RPM_BUILD_ROOT \
28afbe66 269 pythondir=%{py_sitedir} \
270 monodocdir=%{_libdir}/monodoc/sources
99f1d7d3 271
79f56cce
JB
272rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*glue.la
273
b9ae5f5e 274dest=$RPM_BUILD_ROOT%{_datadir}/mozilla-firefox/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
275install -d $dest $dest/chrome
28afbe66 276install firefox-extension/{chrome.manifest,install.rdf} $dest
277cp -r firefox-extension/chrome/* $dest/chrome
c08a558f 278
28afbe66 279%if %{with epiphany}
280install -d $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions
281sed -e "s|\@localedir\@|\%{_localedir}|g" \
282 < epiphany-extension/beagle.py.in > epiphany-extension/beagle.py
283install epiphany-extension/beagle.py $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.py
284install epiphany-extension/beagle.ephy-extension.in $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.ephy-extension
285%endif
c08a558f 286
28afbe66 287%if %{with thunderbird}
288tdest=$RPM_BUILD_ROOT%{_libdir}/mozilla-thunderbird/extensions/\{b656ef18-fd76-45e6-95cc-8043f26361e7\}
289install -d $tdest
290install thunderbird-extension/{chrome.manifest,install.rdf} $tdest
291cp -r thunderbird-extension/{chrome,components,defaults} $tdest
292%endif
99f1d7d3 293
1aa42a1c 294[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
295 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
690e79b3 296%find_lang %{name}
297
99f1d7d3 298%clean
299rm -rf $RPM_BUILD_ROOT
300
a822419b 301%pre crawl-system
302%groupadd -g 166 -r -f beagleindex
303%useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
304
305%postun crawl-system
306if [ "$1" = "0" ]; then
307 %userremove beagleindex
308 %groupremove beagleindex
309fi
310
690e79b3 311%files -f %{name}.lang
99f1d7d3 312%defattr(644,root,root,755)
313%doc AUTHORS COPYING ChangeLog NEWS README
a71c95fe 314%attr(755,root,root) %{_bindir}/beagle-config
4c824a15 315%attr(755,root,root) %{_bindir}/beagle-doc-extractor
df3b0f63 316%attr(755,root,root) %{_bindir}/beagle-extract-content
a71c95fe 317%attr(755,root,root) %{_bindir}/beagle-index-info
a71c95fe 318%attr(755,root,root) %{_bindir}/beagle-info
319%attr(755,root,root) %{_bindir}/beagle-ping
320%attr(755,root,root) %{_bindir}/beagle-query
321%attr(755,root,root) %{_bindir}/beagle-shutdown
322%attr(755,root,root) %{_bindir}/beagle-status
79f56cce 323%attr(755,root,root) %{_bindir}/beagled
9d454076 324%attr(755,root,root) %{_libdir}/%{name}/*.exe
79f56cce 325%attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
9d454076 326%dir %{_libdir}/%{name}
b4b515ca 327%dir %{_libdir}/%{name}/Backends
96f57eb2 328%dir %{_libdir}/%{name}/Filters
329%{_libdir}/%{name}/*.dll
0ee55bb7 330%{_libdir}/%{name}/*.dll.config
96f57eb2 331%{_libdir}/%{name}/Filters/*.dll
3aa828d4 332%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
79f56cce
JB
333%{_mandir}/man1/beagle-config.1*
334%{_mandir}/man1/beagle-query.1*
335%{_mandir}/man1/beagle-search.1*
336%{_mandir}/man1/beagle-shutdown.1*
337%{_mandir}/man1/beagle-status.1*
338%{_mandir}/man1/beagled.1*
4afaee22 339
28afbe66 340%files debug
99f1d7d3 341%defattr(644,root,root,755)
28afbe66 342%{_libdir}/%{name}/Backends/*.mdb
343%{_libdir}/%{name}/Filters/*.mdb
344%{_libdir}/%{name}/*.mdb
cbe6bf97 345
28afbe66 346%files devel
58203720 347%defattr(644,root,root,755)
79f56cce
JB
348%{_pkgconfigdir}/beagle-0.0.pc
349%{_pkgconfigdir}/beagle-ui-0.0.pc
350%{_pkgconfigdir}/beagle-daemon.pc
351
352%if %{with apidocs}
353%files apidocs
354%defattr(644,root,root,755)
355%{_libdir}/monodoc/sources/*
356%endif
58203720 357
4afaee22 358%files crawl-system
359%defattr(644,root,root,755)
877d3586 360%dir %{_sysconfdir}/beagle
79f56cce
JB
361%dir %{_sysconfdir}/beagle/config-files
362%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/BeagleSearch.xml
363%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Daemon.xml
364%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/FilesQueryable.xml
365%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Networking.xml
366%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-applications
367%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-documentation
368%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-manpages
369%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-monodoc
370# XXX: samples not here
371%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/external-filters.xml.sample
372%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/beagle-crawl-system
86f426aa 373%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 374%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
79f56cce
JB
375%attr(755,root,root) %{_sbindir}/beagle-build-index
376%attr(755,root,root) %{_sbindir}/beagle-dump-index
377%attr(755,root,root) %{_sbindir}/beagle-manage-index
378%attr(755,root,root) %{_sbindir}/beagle-master-delete-button
379%{_mandir}/man1/beagle-dump-index.1*
380%{_mandir}/man8/beagle-build-index.8*
381%{_mandir}/man8/beagle-extract-content.8*
382%{_mandir}/man8/beagle-manage-index.8*
4afaee22 383
79f56cce
JB
384%if %{with gui}
385%files search-gui
28afbe66 386%defattr(644,root,root,755)
79f56cce
JB
387%attr(755,root,root) %{_bindir}/beagle-imlogviewer
388%attr(755,root,root) %{_bindir}/beagle-search
389%attr(755,root,root) %{_bindir}/beagle-settings
390%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
391%{_mandir}/man8/beagle-imlogviewer.8*
392%{_desktopdir}/*.desktop
28afbe66 393%endif
394
79f56cce
JB
395%files startup
396%defattr(644,root,root,755)
397%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
398%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
399
400%files webinterface
401%defattr(644,root,root,755)
402%{_datadir}/%{name}
403
a71c95fe 404%if %{with evolution}
b4b515ca 405%files evolution
406%defattr(644,root,root,755)
a4757434 407%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 408%endif
b4b515ca 409
4c824a15 410%if %{with thunderbird}
a4757434 411%files thunderbird
412%defattr(644,root,root,755)
413%{_libdir}/%{name}/Backends/Thunderbird*.dll
28afbe66 414%{_libdir}/mozilla-thunderbird/extensions/{b656ef18-fd76-45e6-95cc-8043f26361e7}
4c824a15 415%endif
a4757434 416
0217b850 417%if %{with epiphany}
cbe6bf97 418%files -n epiphany-extension-beagle
419%defattr(644,root,root,755)
28afbe66 420%attr(755,root,root) %{_libdir}/epiphany/2.20/extensions/beagle.py
421%{_libdir}/epiphany/2.20/extensions/*.ephy-extension
1c9cdc87 422%endif
a71c95fe 423
79f56cce 424%files -n mozilla-firefox-extension-beagle
28afbe66 425%defattr(644,root,root,755)
79f56cce 426%{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
This page took 0.113077 seconds and 4 git commands to generate.