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