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