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