]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- drop obsolete and outdated manual inclusion of rpm macros
[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#
0217b850 6# Conditional build:
a71c95fe 7%bcond_without apidocs # don't build API documentation
28afbe66 8%bcond_with avahi # enable Avahi support
a822419b 9%bcond_without evolution # don't include evolution support
cb261afd 10%bcond_without galago # build without galago support
11%bcond_without gsf # build without libgsf support
a71c95fe 12%bcond_without gui # don't build GNOME based GUI
e572d146
SS
13# required epiphany with python support (2009.06.06 removed permanently from epiphany)
14%bcond_with epiphany # don't build epiphany extension
b33a45f4 15%bcond_without thunderbird # use Thunderbird backend
a71c95fe 16#
49827961 17%if !%{with gui}
a71c95fe 18%undefine with_evolution
19%endif
418f519e 20
99f1d7d3 21Summary: Beagle - An indexing subsystem
e30bc3c5 22Summary(pl.UTF-8): Beagle - podsystem indeksujący
99f1d7d3 23Name: beagle
b69de5ba 24Version: 0.3.9
c972595d 25Release: 7
99f1d7d3 26License: Various
27Group: Libraries
28afbe66 28Source0: http://ftp.gnome.org/pub/GNOME/sources/beagle/0.3/%{name}-%{version}.tar.bz2
b69de5ba 29# Source0-md5: b73c12423d2d67133dbb05933f4c8fe1
4afaee22 30Patch0: %{name}-desktop.patch
6182bda9 31Patch1: %{name}-crawl.patch
28afbe66 32Patch2: %{name}-configure.patch
273f1f36 33Patch3: %{name}-use-xdg-open.patch
50e3f6c4 34Patch4: %{name}-epiphany.patch
6aae2e75 35Patch5: %{name}-gmime-2.4.patch
5148c047 36Patch6: %{name}-sqlite.patch
fabf1112 37Patch7: %{name}-mono28.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 50%{?with_epiphany:BuildRequires: epiphany-devel >= 2.22.0}
ee4192e9 51BuildRequires: gettext-tools
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
8d20b13a 99%description debug -l pl.UTF-8
28afbe66 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
5148c047 249%patch6 -p1
fabf1112 250%patch7 -p1
99f1d7d3 251
252%build
b0d572c4 253%{__intltoolize}
0b280122
MK
254%{__libtoolize}
255%{__aclocal}
256%{__autoconf}
273f1f36 257%{__autoheader}
0b280122 258%{__automake}
0217b850 259%configure \
79f56cce 260 --disable-static \
dd2f6f33 261 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
273f1f36 262 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution \
a71c95fe 263 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
28afbe66 264 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird \
265 --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi
c08a558f 266
5148c047 267%{__make} -j1
99f1d7d3 268
269%install
270rm -rf $RPM_BUILD_ROOT
416cd106 271install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
99f1d7d3 272
273%{__make} install \
5148c047 274 DESTDIR=$RPM_BUILD_ROOT
99f1d7d3 275
79f56cce
JB
276rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*glue.la
277
273f1f36 278dest=$RPM_BUILD_ROOT%{_datadir}/iceweasel/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
b9ae5f5e 279install -d $dest $dest/chrome
28afbe66 280install firefox-extension/{chrome.manifest,install.rdf} $dest
281cp -r firefox-extension/chrome/* $dest/chrome
c08a558f 282
28afbe66 283%if %{with thunderbird}
273f1f36 284tdest=$RPM_BUILD_ROOT%{_libdir}/icedove/extensions/\{b656ef18-fd76-45e6-95cc-8043f26361e7\}
28afbe66 285install -d $tdest
286install thunderbird-extension/{chrome.manifest,install.rdf} $tdest
287cp -r thunderbird-extension/{chrome,components,defaults} $tdest
288%endif
99f1d7d3 289
c9a3775a 290%if %{with gui}
1aa42a1c 291[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
292 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
690e79b3 293%find_lang %{name}
c9a3775a
SS
294%else
295touch %{name}.lang
296%endif
690e79b3 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
4a902ddf 315%{?with_gsf:%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
bad3b6b5 322%attr(755,root,root) %{_bindir}/beagle-static-query
a71c95fe 323%attr(755,root,root) %{_bindir}/beagle-status
79f56cce 324%attr(755,root,root) %{_bindir}/beagled
bad3b6b5 325%attr(755,root,root) %{_bindir}/blocate
9d454076 326%attr(755,root,root) %{_libdir}/%{name}/*.exe
79f56cce 327%attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
273f1f36
MB
328%dir %{_sysconfdir}/beagle
329%dir %{_sysconfdir}/beagle/config-files
330%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/blocate.conf
331%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/query-mapping.xml
332%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/BeagleSearch.xml
333%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Daemon.xml
334%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/FilesQueryable.xml
335%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/GoogleBackends.xml
336%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Networking.xml
9d454076 337%dir %{_libdir}/%{name}
b4b515ca 338%dir %{_libdir}/%{name}/Backends
96f57eb2 339%dir %{_libdir}/%{name}/Filters
340%{_libdir}/%{name}/*.dll
0ee55bb7 341%{_libdir}/%{name}/*.dll.config
273f1f36 342%{_libdir}/%{name}/Backends/GoogleBackends*.dll
96f57eb2 343%{_libdir}/%{name}/Filters/*.dll
3aa828d4 344%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
79f56cce 345%{_mandir}/man1/beagle-config.1*
273f1f36
MB
346%{_mandir}/man1/beagle-info.1*
347%{_mandir}/man1/beagle-ping.1*
79f56cce 348%{_mandir}/man1/beagle-query.1*
79f56cce
JB
349%{_mandir}/man1/beagle-shutdown.1*
350%{_mandir}/man1/beagle-status.1*
351%{_mandir}/man1/beagled.1*
273f1f36
MB
352%{_mandir}/man8/beagle-doc-extractor.8*
353%{_mandir}/man8/beagle-index-info.8*
4afaee22 354
28afbe66 355%files debug
99f1d7d3 356%defattr(644,root,root,755)
28afbe66 357%{_libdir}/%{name}/Backends/*.mdb
358%{_libdir}/%{name}/Filters/*.mdb
359%{_libdir}/%{name}/*.mdb
cbe6bf97 360
28afbe66 361%files devel
58203720 362%defattr(644,root,root,755)
79f56cce 363%{_pkgconfigdir}/beagle-0.0.pc
e109d8b1 364%{?with_gui:%{_pkgconfigdir}/beagle-ui-0.0.pc}
79f56cce
JB
365%{_pkgconfigdir}/beagle-daemon.pc
366
367%if %{with apidocs}
368%files apidocs
369%defattr(644,root,root,755)
5148c047 370%{_prefix}/lib/monodoc/sources/*
79f56cce 371%endif
58203720 372
4afaee22 373%files crawl-system
374%defattr(644,root,root,755)
bad3b6b5 375%dir %{_sysconfdir}/beagle/crawl-rules
bad3b6b5 376%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-applications
377%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-documentation
273f1f36 378%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-executables
bad3b6b5 379%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-manpages
380%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-monodoc
381%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-rules/crawl-windows
79f56cce
JB
382# XXX: samples not here
383%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/external-filters.xml.sample
384%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/beagle-crawl-system
86f426aa 385%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 386%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
79f56cce
JB
387%attr(755,root,root) %{_sbindir}/beagle-build-index
388%attr(755,root,root) %{_sbindir}/beagle-dump-index
389%attr(755,root,root) %{_sbindir}/beagle-manage-index
390%attr(755,root,root) %{_sbindir}/beagle-master-delete-button
273f1f36
MB
391%attr(755,root,root) %{_sbindir}/beagle-removable-index
392%{_mandir}/man8/beagle-dump-index.8*
79f56cce
JB
393%{_mandir}/man8/beagle-build-index.8*
394%{_mandir}/man8/beagle-extract-content.8*
395%{_mandir}/man8/beagle-manage-index.8*
4afaee22 396
79f56cce
JB
397%if %{with gui}
398%files search-gui
28afbe66 399%defattr(644,root,root,755)
79f56cce
JB
400%attr(755,root,root) %{_bindir}/beagle-imlogviewer
401%attr(755,root,root) %{_bindir}/beagle-search
402%attr(755,root,root) %{_bindir}/beagle-settings
403%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
273f1f36 404%attr(755,root,root) %{_libdir}/%{name}/keygrabber.py
e109d8b1 405%{_mandir}/man1/beagle-search.1*
273f1f36 406%{_mandir}/man1/beagle-settings.1*
79f56cce
JB
407%{_mandir}/man8/beagle-imlogviewer.8*
408%{_desktopdir}/*.desktop
28afbe66 409%endif
410
79f56cce
JB
411%files startup
412%defattr(644,root,root,755)
413%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
e109d8b1 414%{?with_gui:%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop}
79f56cce
JB
415
416%files webinterface
417%defattr(644,root,root,755)
418%{_datadir}/%{name}
419
a71c95fe 420%if %{with evolution}
b4b515ca 421%files evolution
422%defattr(644,root,root,755)
a4757434 423%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 424%endif
b4b515ca 425
4c824a15 426%if %{with thunderbird}
273f1f36 427%files icedove
a4757434 428%defattr(644,root,root,755)
429%{_libdir}/%{name}/Backends/Thunderbird*.dll
273f1f36 430%{_libdir}/icedove/extensions/{b656ef18-fd76-45e6-95cc-8043f26361e7}
4c824a15 431%endif
a4757434 432
0217b850 433%if %{with epiphany}
cbe6bf97 434%files -n epiphany-extension-beagle
435%defattr(644,root,root,755)
e99f7fdd 436%attr(755,root,root) %{_libdir}/epiphany/2.26/extensions/beagle.py
437%{_libdir}/epiphany/2.26/extensions/*.ephy-extension
1c9cdc87 438%endif
a71c95fe 439
273f1f36 440%files -n iceweasel-extension-beagle
28afbe66 441%defattr(644,root,root,755)
273f1f36 442%{_datadir}/iceweasel/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
This page took 0.147564 seconds and 4 git commands to generate.