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