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