]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- check for Epiphany 2.22 too
[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)
5# - replace epiphany-extension hack
36d6fb2e 6#
7%include /usr/lib/rpm/macros.mono
0217b850 8#
9# Conditional build:
a71c95fe 10%bcond_without apidocs # don't build API documentation
28afbe66 11%bcond_with avahi # enable Avahi support
a822419b 12%bcond_without evolution # don't include evolution support
cb261afd 13%bcond_without galago # build without galago support
14%bcond_without gsf # build without libgsf support
a71c95fe 15%bcond_without gui # don't build GNOME based GUI
1c9cdc87 16%bcond_without python # don't build python libraries
29ce6ab0 17%bcond_without epiphany # don't build epiphany extension
b33a45f4 18%bcond_without thunderbird # use Thunderbird backend
a71c95fe 19#
49827961 20%if !%{with gui}
a71c95fe 21%undefine with_evolution
22%endif
36d6fb2e 23#
99f1d7d3 24Summary: Beagle - An indexing subsystem
e30bc3c5 25Summary(pl.UTF-8): Beagle - podsystem indeksujący
99f1d7d3 26Name: beagle
28afbe66 27Version: 0.3.3
453a5488 28Release: 4
99f1d7d3 29License: Various
30Group: Libraries
28afbe66 31Source0: http://ftp.gnome.org/pub/GNOME/sources/beagle/0.3/%{name}-%{version}.tar.bz2
32# Source0-md5: c1b6c340c72a70e33212c85513bc23f2
4afaee22 33Patch0: %{name}-desktop.patch
6182bda9 34Patch1: %{name}-crawl.patch
28afbe66 35Patch2: %{name}-configure.patch
ff55a2dc 36URL: http://beagle-project.org/Main_Page
0b280122
MK
37BuildRequires: autoconf >= 2.52
38BuildRequires: automake
643f8926 39BuildRequires: chmlib-devel
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}
15c7d5f6 44#BuildRequires: dotnet-gst-sharp-devel
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
6300fca8 48%if %{with epiphany}
1b19108f 49BuildRequires: epiphany-devel >= 2.20.0
87f0d596 50%endif
119be5cb
MB
51BuildRequires: gtk+2-devel >= 2:2.10.10
52%{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
7ba8a6a9 53BuildRequires: libexif-devel >= 0.6.13
3fec4ed6 54BuildRequires: libpng-devel
6300fca8 55BuildRequires: librsvg-devel >= 1:2.16.1
a028da53 56BuildRequires: libtool
119be5cb 57BuildRequires: libxml2-devel >= 1:2.6.27
17b40177 58BuildRequires: mono-csharp >= 1.1.13.5
1c9cdc87 59BuildRequires: perl-XML-Parser
6300fca8 60BuildRequires: pkgconfig
c08a558f 61BuildRequires: python-devel
6300fca8 62%{?with_python:BuildRequires: python-pygtk-devel >= 2:2.10.4}
1c9cdc87 63BuildRequires: sqlite3-devel >= 3.3.4
4c824a15 64BuildRequires: wv-devel >= 1.2.4
7ba8a6a9 65BuildRequires: xorg-lib-libXScrnSaver-devel
10b5eb30 66BuildRequires: zip
a71c95fe 67# GUI BRs
68%if %{with gui}
87f0d596 69BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
119be5cb 70BuildRequires: gnome-vfs2-devel >= 2.18.0.1
a71c95fe 71%endif
091e6609 72Requires: dotnet-gmime-sharp >= 2.2.3
4d7c0434 73Requires: dotnet-gsf-sharp
1c9cdc87 74Requires: sqlite3
79f56cce
JB
75Obsoletes: beagle-libs
76Obsoletes: beagle-static
77Obsoletes: python-beagle
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
a4757434 196%package thunderbird
197Summary: Beagle Mozilla Thunderbird backend
e30bc3c5 198Summary(pl.UTF-8): Backend Beagle dla Mozilli Thunderbird
a4757434 199Group: X11/Applications/Networking
200Requires: %{name} = %{version}-%{release}
201
202%description thunderbird
203Beagle Mozilla Thunderbird backend.
204
2eeb2838 205%description thunderbird -l pl.UTF-8
a4757434 206Backend Beagle dla Mozilli Thunderbird.
207
cbe6bf97 208%package -n epiphany-extension-beagle
209Summary: Epiphany extension - beagle
e30bc3c5 210Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
cbe6bf97 211Group: X11/Applications/Networking
212Requires: %{name} = %{version}-%{release}
1b19108f 213Requires: epiphany-extensions >= 2.20.0
cbe6bf97 214
215%description -n epiphany-extension-beagle
216Epiphany extension that allows Beagle to index every page the user
217views.
218
2eeb2838
JR
219%description -n epiphany-extension-beagle -l pl.UTF-8
220Rozszerzenie dla Epiphany sprawiające, że Beagle indeksuje każdą
221odwiedzaną stronę.
99f1d7d3 222
79f56cce
JB
223%package -n mozilla-firefox-extension-beagle
224Summary: Mozilla Firefox extension - beagle
225Summary(pl.UTF-8): Rozszerzenie dla przeglądarki Mozilla Firefox - beagle
226Group: X11/Applications/Networking
28afbe66 227Requires: %{name} = %{version}-%{release}
79f56cce 228Requires: mozilla-firefox >= 2.0.0.1-2
28afbe66 229
79f56cce
JB
230%description -n mozilla-firefox-extension-beagle
231Mozilla Firefox extension that allows Beagle to index every page the
232user views.
28afbe66 233
79f56cce
JB
234%description -n mozilla-firefox-extension-beagle -l pl.UTF-8
235Rozszerzenie dla przeglądarki Mozilla Firefox sprawiające, że Beagle
236indeksuje każdą odwiedzaną stronę.
28afbe66 237
99f1d7d3 238%prep
239%setup -q
a822419b 240%patch0 -p1
241%patch1 -p1
28afbe66 242%patch2 -p1
99f1d7d3 243
244%build
b0d572c4 245%{__intltoolize}
0b280122
MK
246%{__libtoolize}
247%{__aclocal}
248%{__autoconf}
249%{__automake}
0217b850 250%configure \
79f56cce 251 --disable-static \
a71c95fe 252 %{?with_apidocs:--enable-gtk-doc} \
36d6fb2e 253 --with-html-dir=%{_gtkdocdir} \
dd2f6f33 254 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
a71c95fe 255 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
256 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
28afbe66 257 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird \
258 --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi
c08a558f 259
79f56cce 260%{__make}
99f1d7d3 261
262%install
263rm -rf $RPM_BUILD_ROOT
416cd106 264install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
99f1d7d3 265
266%{__make} install \
c08a558f 267 DESTDIR=$RPM_BUILD_ROOT \
28afbe66 268 pythondir=%{py_sitedir} \
269 monodocdir=%{_libdir}/monodoc/sources
99f1d7d3 270
79f56cce
JB
271rm $RPM_BUILD_ROOT%{_libdir}/%{name}/lib*glue.la
272
b9ae5f5e 273dest=$RPM_BUILD_ROOT%{_datadir}/mozilla-firefox/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
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 epiphany}
279install -d $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions
280sed -e "s|\@localedir\@|\%{_localedir}|g" \
281 < epiphany-extension/beagle.py.in > epiphany-extension/beagle.py
282install epiphany-extension/beagle.py $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.py
283install epiphany-extension/beagle.ephy-extension.in $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.ephy-extension
284%endif
c08a558f 285
28afbe66 286%if %{with thunderbird}
287tdest=$RPM_BUILD_ROOT%{_libdir}/mozilla-thunderbird/extensions/\{b656ef18-fd76-45e6-95cc-8043f26361e7\}
288install -d $tdest
289install thunderbird-extension/{chrome.manifest,install.rdf} $tdest
290cp -r thunderbird-extension/{chrome,components,defaults} $tdest
291%endif
99f1d7d3 292
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}
296
99f1d7d3 297%clean
298rm -rf $RPM_BUILD_ROOT
299
a822419b 300%pre crawl-system
301%groupadd -g 166 -r -f beagleindex
302%useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
303
304%postun crawl-system
305if [ "$1" = "0" ]; then
306 %userremove beagleindex
307 %groupremove beagleindex
308fi
309
690e79b3 310%files -f %{name}.lang
99f1d7d3 311%defattr(644,root,root,755)
312%doc AUTHORS COPYING ChangeLog NEWS README
a71c95fe 313%attr(755,root,root) %{_bindir}/beagle-config
4c824a15 314%attr(755,root,root) %{_bindir}/beagle-doc-extractor
df3b0f63 315%attr(755,root,root) %{_bindir}/beagle-extract-content
a71c95fe 316%attr(755,root,root) %{_bindir}/beagle-index-info
a71c95fe 317%attr(755,root,root) %{_bindir}/beagle-info
318%attr(755,root,root) %{_bindir}/beagle-ping
319%attr(755,root,root) %{_bindir}/beagle-query
320%attr(755,root,root) %{_bindir}/beagle-shutdown
321%attr(755,root,root) %{_bindir}/beagle-status
79f56cce 322%attr(755,root,root) %{_bindir}/beagled
9d454076 323%attr(755,root,root) %{_libdir}/%{name}/*.exe
79f56cce 324%attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
9d454076 325%dir %{_libdir}/%{name}
b4b515ca 326%dir %{_libdir}/%{name}/Backends
96f57eb2 327%dir %{_libdir}/%{name}/Filters
328%{_libdir}/%{name}/*.dll
0ee55bb7 329%{_libdir}/%{name}/*.dll.config
96f57eb2 330%{_libdir}/%{name}/Filters/*.dll
3aa828d4 331%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
79f56cce
JB
332%{_mandir}/man1/beagle-config.1*
333%{_mandir}/man1/beagle-query.1*
334%{_mandir}/man1/beagle-search.1*
335%{_mandir}/man1/beagle-shutdown.1*
336%{_mandir}/man1/beagle-status.1*
337%{_mandir}/man1/beagled.1*
4afaee22 338
28afbe66 339%files debug
99f1d7d3 340%defattr(644,root,root,755)
28afbe66 341%{_libdir}/%{name}/Backends/*.mdb
342%{_libdir}/%{name}/Filters/*.mdb
343%{_libdir}/%{name}/*.mdb
cbe6bf97 344
28afbe66 345%files devel
58203720 346%defattr(644,root,root,755)
79f56cce
JB
347%{_pkgconfigdir}/beagle-0.0.pc
348%{_pkgconfigdir}/beagle-ui-0.0.pc
349%{_pkgconfigdir}/beagle-daemon.pc
350
351%if %{with apidocs}
352%files apidocs
353%defattr(644,root,root,755)
354%{_libdir}/monodoc/sources/*
355%endif
58203720 356
4afaee22 357%files crawl-system
358%defattr(644,root,root,755)
877d3586 359%dir %{_sysconfdir}/beagle
79f56cce
JB
360%dir %{_sysconfdir}/beagle/config-files
361%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/BeagleSearch.xml
362%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Daemon.xml
363%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/FilesQueryable.xml
364%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/config-files/Networking.xml
365%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-applications
366%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-documentation
367%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-manpages
368%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/crawl-monodoc
369# XXX: samples not here
370%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/external-filters.xml.sample
371%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/beagle-crawl-system
86f426aa 372%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 373%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
79f56cce
JB
374%attr(755,root,root) %{_sbindir}/beagle-build-index
375%attr(755,root,root) %{_sbindir}/beagle-dump-index
376%attr(755,root,root) %{_sbindir}/beagle-manage-index
377%attr(755,root,root) %{_sbindir}/beagle-master-delete-button
378%{_mandir}/man1/beagle-dump-index.1*
379%{_mandir}/man8/beagle-build-index.8*
380%{_mandir}/man8/beagle-extract-content.8*
381%{_mandir}/man8/beagle-manage-index.8*
4afaee22 382
79f56cce
JB
383%if %{with gui}
384%files search-gui
28afbe66 385%defattr(644,root,root,755)
79f56cce
JB
386%attr(755,root,root) %{_bindir}/beagle-imlogviewer
387%attr(755,root,root) %{_bindir}/beagle-search
388%attr(755,root,root) %{_bindir}/beagle-settings
389%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
390%{_mandir}/man8/beagle-imlogviewer.8*
391%{_desktopdir}/*.desktop
28afbe66 392%endif
393
79f56cce
JB
394%files startup
395%defattr(644,root,root,755)
396%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
397%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
398
399%files webinterface
400%defattr(644,root,root,755)
401%{_datadir}/%{name}
402
a71c95fe 403%if %{with evolution}
b4b515ca 404%files evolution
405%defattr(644,root,root,755)
a4757434 406%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 407%endif
b4b515ca 408
4c824a15 409%if %{with thunderbird}
a4757434 410%files thunderbird
411%defattr(644,root,root,755)
412%{_libdir}/%{name}/Backends/Thunderbird*.dll
28afbe66 413%{_libdir}/mozilla-thunderbird/extensions/{b656ef18-fd76-45e6-95cc-8043f26361e7}
4c824a15 414%endif
a4757434 415
0217b850 416%if %{with epiphany}
cbe6bf97 417%files -n epiphany-extension-beagle
418%defattr(644,root,root,755)
28afbe66 419%attr(755,root,root) %{_libdir}/epiphany/2.20/extensions/beagle.py
420%{_libdir}/epiphany/2.20/extensions/*.ephy-extension
1c9cdc87 421%endif
a71c95fe 422
79f56cce 423%files -n mozilla-firefox-extension-beagle
28afbe66 424%defattr(644,root,root,755)
79f56cce 425%{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
This page took 0.108369 seconds and 4 git commands to generate.