]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- version 0.3.3 merged from DEVEL
[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
28Release: 1
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
4afaee22 72Requires: %{name}-libs = %{version}-%{release}
091e6609 73Requires: dotnet-gmime-sharp >= 2.2.3
4d7c0434 74Requires: dotnet-gsf-sharp
1c9cdc87 75Requires: sqlite3
1aa42a1c 76# sr@Latn vs. sr@latin
77Conflicts: glibc-misc < 6:2.7
a4757434 78ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
6300fca8 79ExcludeArch: i386
99f1d7d3 80BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
81
82%description
83Beagle is an indexing sub-system and search aggregator built on top of
84Lucene.Net.
85
2eeb2838
JR
86%description -l pl.UTF-8
87Beagle jest podsystemem indeksującym i wyszukującym zbudowanym na
99f1d7d3 88bazie Lucene.Net.
89
4afaee22 90%package libs
91Summary: Beagle libraries
e30bc3c5 92Summary(pl.UTF-8): Bibiloteki Beagle
4afaee22 93Group: Libraries
94
95%description libs
96Beagle libraries.
97
2eeb2838 98%description libs -l pl.UTF-8
4afaee22 99Bibiloteki Beagle.
100
28afbe66 101%package debug
102Summary: Debug files for the Mono part of Beagle
103Summary(pl.UTF-8): Pliki debugujące dla części Mono Beagle'a
104Group: Development/Libraries
105Requires: %{name} = %{version}-%{release}
106
107%description debug
108Debug files for the Mono part of Beagle.
109
110%description -l pl.UTF-8
111Pliki debugujące dla części Mono Beagle'a.
112
99f1d7d3 113%package devel
114Summary: Beagle development files
e30bc3c5 115Summary(pl.UTF-8): Pliki programistyczne Beagle
99f1d7d3 116Group: Development/Libraries
4afaee22 117Requires: %{name}-libs = %{version}-%{release}
99f1d7d3 118
119%description devel
cbe6bf97 120Beagle development files.
99f1d7d3 121
2eeb2838 122%description devel -l pl.UTF-8
cbe6bf97 123Pliki programistyczne Beagle.
124
4afaee22 125%package static
126Summary: Beagle static libraries
e30bc3c5 127Summary(pl.UTF-8): Statyczne biblioteki Beagle
4afaee22 128Group: Development/Libraries
129Requires: %{name}-devel = %{version}-%{release}
130
131%description static
132Beagle static libraries.
133
2eeb2838 134%description static -l pl.UTF-8
4afaee22 135Statyczne biblioteki Beagle.
136
58203720 137%package apidocs
138Summary: libbeagle API documentation
e30bc3c5 139Summary(pl.UTF-8): Dokumentacja API libbeagle
58203720 140Group: Documentation
141Requires: gtk-doc-common
142
143%description apidocs
144libbeagle API documentation.
145
2eeb2838 146%description apidocs -l pl.UTF-8
58203720 147Dokumentacja API libbeagle.
148
4afaee22 149%package crawl-system
150Summary: Beagle crawl system
e30bc3c5 151Summary(pl.UTF-8): System przeszukujący beagle-crawl
4afaee22 152Group: Applications/System
a822419b 153Requires: crondaemon
47a83e37
JB
154Provides: group(beagleindex)
155Provides: user(beagleindex)
4afaee22 156
157%description crawl-system
158Beagle crawl system.
159
2eeb2838
JR
160%description crawl-system -l pl.UTF-8
161System przeszukujący beagle-crawl.
4afaee22 162
b4b515ca 163%package evolution
164Summary: Beagle Evolution backend
e30bc3c5 165Summary(pl.UTF-8): Backend Beagle dla Evolution
b4b515ca 166Group: X11/Applications/Networking
167Requires: %{name} = %{version}-%{release}
7ba8a6a9 168Requires: dotnet-evolution-sharp >= 0.11.1
119be5cb 169Requires: evolution >= 2.10.0
b4b515ca 170
0543bc3b 171%description evolution
b4b515ca 172Beagle Evolution backend.
173
2eeb2838 174%description evolution -l pl.UTF-8
b4b515ca 175Backend Beagle dla Evolution.
176
a4757434 177%package thunderbird
178Summary: Beagle Mozilla Thunderbird backend
e30bc3c5 179Summary(pl.UTF-8): Backend Beagle dla Mozilli Thunderbird
a4757434 180Group: X11/Applications/Networking
181Requires: %{name} = %{version}-%{release}
182
183%description thunderbird
184Beagle Mozilla Thunderbird backend.
185
2eeb2838 186%description thunderbird -l pl.UTF-8
a4757434 187Backend Beagle dla Mozilli Thunderbird.
188
b9ae5f5e 189%package -n mozilla-firefox-extension-beagle
190Summary: Mozilla Firefox extension - beagle
e30bc3c5 191Summary(pl.UTF-8): Rozszerzenie dla Mozilla Firefox - beagle
b9ae5f5e 192Group: X11/Applications/Networking
193Requires: %{name} = %{version}-%{release}
cce36e2c 194Requires: mozilla-firefox >= 2.0.0.1-2
b9ae5f5e 195
196%description -n mozilla-firefox-extension-beagle
197Mozilla Firefox extension that allows Beagle to index every page the
198user views.
199
2eeb2838
JR
200%description -n mozilla-firefox-extension-beagle -l pl.UTF-8
201Rozszerzenie dla Mozilla Firefox sprawiające, że Beagle indeksuje
202każdą odwiedzaną stronę.
b9ae5f5e 203
cbe6bf97 204%package -n epiphany-extension-beagle
205Summary: Epiphany extension - beagle
e30bc3c5 206Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
cbe6bf97 207Group: X11/Applications/Networking
208Requires: %{name} = %{version}-%{release}
1b19108f 209Requires: epiphany-extensions >= 2.20.0
cbe6bf97 210
211%description -n epiphany-extension-beagle
212Epiphany extension that allows Beagle to index every page the user
213views.
214
2eeb2838
JR
215%description -n epiphany-extension-beagle -l pl.UTF-8
216Rozszerzenie dla Epiphany sprawiające, że Beagle indeksuje każdą
217odwiedzaną stronę.
99f1d7d3 218
c08a558f 219%package -n python-%{name}
220Summary: Beagle Python bindings
e30bc3c5 221Summary(pl.UTF-8): Wiązania języka Python dla Beagle
c08a558f 222Group: Libraries/Python
223Requires: %{name} = %{version}-%{release}
224%pyrequires_eq python-libs
225
226%description -n python-%{name}
227Beagle Python bindings.
228
2eeb2838
JR
229%description -n python-%{name} -l pl.UTF-8
230Wiązania języka Python dla Beagle.
c08a558f 231
a71c95fe 232%package search-gui
233Summary: GNOME based Beagle GUI
e30bc3c5 234Summary(pl.UTF-8): Oparty na GNOME graficzny interfejs dla Beagle
a71c95fe 235Group: Libraries/Python
236Requires: %{name} = %{version}-%{release}
119be5cb 237Requires: gtk+2 >= 2:2.10.10
a71c95fe 238
239%description search-gui
240GNOME based Beagle GUI.
241
2eeb2838 242%description search-gui -l pl.UTF-8
5713f50e 243Oparty na GNOME graficzny interfejs dla Beagle.
a71c95fe 244
87f0d596 245%package startup
246Summary: Automatic startup integration for Beagle
e30bc3c5 247Summary(pl.UTF-8): Integracja funkcji automatycznego startu Beagle
695bd367
PZ
248Group: X11/Applications
249Requires: %{name} = %{version}-%{release}
5713f50e 250Obsoletes: beagle-gnome
695bd367 251
87f0d596 252%description startup
253Automatic session startup integration for Beagle.
695bd367 254
2eeb2838 255%description startup -l pl.UTF-8
87f0d596 256Integracja funkcji automatycznego startu Beagle.
695bd367 257
28afbe66 258%package webinterface
259Summary: A web interface for Beagle
260Summary(pl.UTF-8): Interfejs sieciowy dla Beagle
261Group: Applications
262Requires: %{name} = %{version}-%{release}
263
264%description webinterface
265An AJAX interface that allows users to search for data through their
266web browser.
267
268%description webinterface -l pl.UTF-8
269AJAX-owy interfejs pozwalający użytkownikom wyszukiwać dane za pomocą
270przeglądarki internetowej.
271
99f1d7d3 272%prep
273%setup -q
a822419b 274%patch0 -p1
275%patch1 -p1
28afbe66 276%patch2 -p1
99f1d7d3 277
278%build
b0d572c4 279%{__intltoolize}
0b280122
MK
280%{__libtoolize}
281%{__aclocal}
282%{__autoconf}
283%{__automake}
0217b850 284%configure \
4afaee22 285 --enable-static \
a71c95fe 286 %{?with_apidocs:--enable-gtk-doc} \
36d6fb2e 287 --with-html-dir=%{_gtkdocdir} \
dd2f6f33 288 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
a71c95fe 289 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
290 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
28afbe66 291 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird \
292 --%{!?with_avahi:dis}%{?with_avahi:en}able-avahi
c08a558f 293
1f778816 294%{__make} \
c08a558f 295 MOZILLA_HOME=%{_libdir}/mozilla \
296 pythondir=%{py_sitedir}
99f1d7d3 297
298%install
299rm -rf $RPM_BUILD_ROOT
416cd106 300install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
99f1d7d3 301
302%{__make} install \
c08a558f 303 DESTDIR=$RPM_BUILD_ROOT \
28afbe66 304 pythondir=%{py_sitedir} \
305 monodocdir=%{_libdir}/monodoc/sources
99f1d7d3 306
b9ae5f5e 307dest=$RPM_BUILD_ROOT%{_datadir}/mozilla-firefox/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
308install -d $dest $dest/chrome
28afbe66 309install firefox-extension/{chrome.manifest,install.rdf} $dest
310cp -r firefox-extension/chrome/* $dest/chrome
c08a558f 311
28afbe66 312%if %{with epiphany}
313install -d $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions
314sed -e "s|\@localedir\@|\%{_localedir}|g" \
315 < epiphany-extension/beagle.py.in > epiphany-extension/beagle.py
316install epiphany-extension/beagle.py $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.py
317install epiphany-extension/beagle.ephy-extension.in $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/extensions/beagle.ephy-extension
318%endif
c08a558f 319
28afbe66 320%if %{with thunderbird}
321tdest=$RPM_BUILD_ROOT%{_libdir}/mozilla-thunderbird/extensions/\{b656ef18-fd76-45e6-95cc-8043f26361e7\}
322install -d $tdest
323install thunderbird-extension/{chrome.manifest,install.rdf} $tdest
324cp -r thunderbird-extension/{chrome,components,defaults} $tdest
325%endif
99f1d7d3 326
1aa42a1c 327[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
328 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
690e79b3 329%find_lang %{name}
330
99f1d7d3 331%clean
332rm -rf $RPM_BUILD_ROOT
333
a822419b 334%pre crawl-system
335%groupadd -g 166 -r -f beagleindex
336%useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
337
338%postun crawl-system
339if [ "$1" = "0" ]; then
340 %userremove beagleindex
341 %groupremove beagleindex
342fi
343
12f14f45 344%post libs -p /sbin/ldconfig
345%postun libs -p /sbin/ldconfig
10b5eb30 346
690e79b3 347%files -f %{name}.lang
99f1d7d3 348%defattr(644,root,root,755)
349%doc AUTHORS COPYING ChangeLog NEWS README
a71c95fe 350%attr(755,root,root) %{_bindir}/beagle-config
df3b0f63 351%attr(755,root,root) %{_bindir}/beagled
4c824a15 352%attr(755,root,root) %{_bindir}/beagle-doc-extractor
df3b0f63 353%attr(755,root,root) %{_bindir}/beagle-extract-content
a71c95fe 354%attr(755,root,root) %{_bindir}/beagle-index-info
a71c95fe 355%attr(755,root,root) %{_bindir}/beagle-info
356%attr(755,root,root) %{_bindir}/beagle-ping
357%attr(755,root,root) %{_bindir}/beagle-query
358%attr(755,root,root) %{_bindir}/beagle-shutdown
359%attr(755,root,root) %{_bindir}/beagle-status
9d454076 360%attr(755,root,root) %{_libdir}/%{name}/*.exe
361%dir %{_libdir}/%{name}
b4b515ca 362%dir %{_libdir}/%{name}/Backends
96f57eb2 363%dir %{_libdir}/%{name}/Filters
364%{_libdir}/%{name}/*.dll
0ee55bb7 365%{_libdir}/%{name}/*.dll.config
96f57eb2 366%{_libdir}/%{name}/Filters/*.dll
3aa828d4 367%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
36d6fb2e 368%{_mandir}/man*/*
b77528a3 369
4afaee22 370%files libs
371%defattr(644,root,root,755)
28afbe66 372%attr(755,root,root) %{_libdir}/%{name}/lib*.so.*.*.*
4afaee22 373
28afbe66 374%files debug
99f1d7d3 375%defattr(644,root,root,755)
28afbe66 376%{_libdir}/%{name}/Backends/*.mdb
377%{_libdir}/%{name}/Filters/*.mdb
378%{_libdir}/%{name}/*.mdb
cbe6bf97 379
28afbe66 380%files devel
58203720 381%defattr(644,root,root,755)
28afbe66 382%attr(755,root,root) %{_libdir}/%{name}/*.so
383%attr(755,root,root) %ghost %{_libdir}/%{name}/*.so.0
384%{_libdir}/%{name}/*.la
385%{_pkgconfigdir}/*
58203720 386
4afaee22 387%files crawl-system
388%defattr(644,root,root,755)
416cd106 389%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/*
877d3586 390%dir %{_sysconfdir}/beagle
86f426aa 391%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
392%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 393%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
4afaee22 394%attr(755,root,root) %{_sbindir}/*
4afaee22 395
28afbe66 396%if %{with apidocs}
397%files apidocs
398%defattr(644,root,root,755)
399%{_libdir}/monodoc/sources/*
400%endif
401
a71c95fe 402%if %{with evolution}
b4b515ca 403%files evolution
404%defattr(644,root,root,755)
a4757434 405%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 406%endif
b4b515ca 407
4c824a15 408%if %{with thunderbird}
a4757434 409%files thunderbird
410%defattr(644,root,root,755)
411%{_libdir}/%{name}/Backends/Thunderbird*.dll
28afbe66 412%{_libdir}/mozilla-thunderbird/extensions/{b656ef18-fd76-45e6-95cc-8043f26361e7}
4c824a15 413%endif
a4757434 414
b9ae5f5e 415%files -n mozilla-firefox-extension-beagle
416%defattr(644,root,root,755)
417%{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
418
0217b850 419%if %{with epiphany}
cbe6bf97 420%files -n epiphany-extension-beagle
421%defattr(644,root,root,755)
28afbe66 422%attr(755,root,root) %{_libdir}/epiphany/2.20/extensions/beagle.py
423%{_libdir}/epiphany/2.20/extensions/*.ephy-extension
1c9cdc87 424%endif
a71c95fe 425
426%if %{with gui}
427%files search-gui
428%defattr(644,root,root,755)
ab276991 429%attr(755,root,root) %{_bindir}/beagle-imlogviewer
a4757434 430%attr(755,root,root) %{_bindir}/beagle-search
ab276991 431%attr(755,root,root) %{_bindir}/beagle-settings
9d454076 432%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
a71c95fe 433%{_desktopdir}/*.desktop
434%endif
695bd367 435
28afbe66 436%files static
437%defattr(644,root,root,755)
438%{_libdir}/%{name}/*.a
439
87f0d596 440%files startup
695bd367 441%defattr(644,root,root,755)
643f8926 442%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
f2db6a9e 443%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
28afbe66 444
445%files webinterface
446%defattr(644,root,root,755)
447%{_datadir}/%{name}
This page took 0.139519 seconds and 4 git commands to generate.