]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- R: dotnet-gsf-sharp; beagled won't start without it
[packages/beagle.git] / beagle.spec
CommitLineData
0c1be701 1#
c08a558f 2# TODO:
a71c95fe 3# - kill bashisms in crawl stuff
643f8926 4# - mozilla extension?
36d6fb2e 5#
6%include /usr/lib/rpm/macros.mono
0217b850 7#
8# Conditional build:
a71c95fe 9%bcond_without apidocs # don't build API documentation
a822419b 10%bcond_without evolution # don't include evolution support
cb261afd 11%bcond_without galago # build without galago support
12%bcond_without gsf # build without libgsf support
a71c95fe 13%bcond_without gui # don't build GNOME based GUI
1c9cdc87 14%bcond_without python # don't build python libraries
29ce6ab0 15%bcond_without epiphany # don't build epiphany extension
1c9cdc87 16%bcond_with sqlite3 # use sqlite3 instead of sqlite2
4c824a15 17%bcond_with 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
3e7d1c94 26Version: 0.2.17
17b40177 27Release: 1
99f1d7d3 28License: Various
29Group: Libraries
8d5854d2 30Source0: http://ftp.gnome.org/pub/gnome/sources/beagle/0.2/%{name}-%{version}.tar.bz2
3e7d1c94 31# Source0-md5: 75903ca41fe8b7729d1a02987625e90f
4afaee22 32Patch0: %{name}-desktop.patch
6182bda9 33Patch1: %{name}-crawl.patch
d19f4a59 34Patch3: %{name}-configure.patch
119be5cb 35Patch4: %{name}-epiphany-2.18.patch
ff55a2dc 36URL: http://beagle-project.org/Main_Page
0b280122
MK
37BuildRequires: autoconf >= 2.52
38BuildRequires: automake
643f8926 39BuildRequires: chmlib-devel
7ba8a6a9 40%{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.11.1}
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
6300fca8 46%if %{with epiphany}
119be5cb 47BuildRequires: epiphany-devel >= 2.18.0
87f0d596 48%endif
119be5cb
MB
49BuildRequires: gtk+2-devel >= 2:2.10.10
50%{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
7ba8a6a9 51BuildRequires: libexif-devel >= 0.6.13
3fec4ed6 52BuildRequires: libpng-devel
6300fca8 53BuildRequires: librsvg-devel >= 1:2.16.1
a028da53 54BuildRequires: libtool
119be5cb 55BuildRequires: libxml2-devel >= 1:2.6.27
17b40177 56BuildRequires: mono-csharp >= 1.1.13.5
1c9cdc87 57BuildRequires: perl-XML-Parser
6300fca8 58BuildRequires: pkgconfig
c08a558f 59BuildRequires: python-devel
6300fca8 60%{?with_python:BuildRequires: python-pygtk-devel >= 2:2.10.4}
1c9cdc87 61%if %{with sqlite3}
62BuildRequires: sqlite3-devel >= 3.3.4
63%else
900b25a6 64BuildRequires: sqlite-devel
1c9cdc87 65%endif
4c824a15 66BuildRequires: wv-devel >= 1.2.4
7ba8a6a9 67BuildRequires: xorg-lib-libXScrnSaver-devel
10b5eb30 68BuildRequires: zip
a71c95fe 69# GUI BRs
70%if %{with gui}
87f0d596 71BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
119be5cb 72BuildRequires: gnome-vfs2-devel >= 2.18.0.1
a71c95fe 73%endif
4afaee22 74Requires: %{name}-libs = %{version}-%{release}
091e6609 75Requires: dotnet-gmime-sharp >= 2.2.3
4d7c0434 76Requires: dotnet-gsf-sharp
1c9cdc87 77%if %{with sqlite3}
78Requires: sqlite3
79%else
900b25a6 80Requires: sqlite
1c9cdc87 81%endif
a4757434 82ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
6300fca8 83ExcludeArch: i386
99f1d7d3 84BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
85
86%description
87Beagle is an indexing sub-system and search aggregator built on top of
88Lucene.Net.
89
2eeb2838
JR
90%description -l pl.UTF-8
91Beagle jest podsystemem indeksującym i wyszukującym zbudowanym na
99f1d7d3 92bazie Lucene.Net.
93
4afaee22 94%package libs
95Summary: Beagle libraries
e30bc3c5 96Summary(pl.UTF-8): Bibiloteki Beagle
4afaee22 97Group: Libraries
98
99%description libs
100Beagle libraries.
101
2eeb2838 102%description libs -l pl.UTF-8
4afaee22 103Bibiloteki Beagle.
104
99f1d7d3 105%package devel
106Summary: Beagle development files
e30bc3c5 107Summary(pl.UTF-8): Pliki programistyczne Beagle
99f1d7d3 108Group: Development/Libraries
4afaee22 109Requires: %{name}-libs = %{version}-%{release}
99f1d7d3 110
111%description devel
cbe6bf97 112Beagle development files.
99f1d7d3 113
2eeb2838 114%description devel -l pl.UTF-8
cbe6bf97 115Pliki programistyczne Beagle.
116
4afaee22 117%package static
118Summary: Beagle static libraries
e30bc3c5 119Summary(pl.UTF-8): Statyczne biblioteki Beagle
4afaee22 120Group: Development/Libraries
121Requires: %{name}-devel = %{version}-%{release}
122
123%description static
124Beagle static libraries.
125
2eeb2838 126%description static -l pl.UTF-8
4afaee22 127Statyczne biblioteki Beagle.
128
58203720 129%package apidocs
130Summary: libbeagle API documentation
e30bc3c5 131Summary(pl.UTF-8): Dokumentacja API libbeagle
58203720 132Group: Documentation
133Requires: gtk-doc-common
134
135%description apidocs
136libbeagle API documentation.
137
2eeb2838 138%description apidocs -l pl.UTF-8
58203720 139Dokumentacja API libbeagle.
140
4afaee22 141%package crawl-system
142Summary: Beagle crawl system
e30bc3c5 143Summary(pl.UTF-8): System przeszukujący beagle-crawl
4afaee22 144Group: Applications/System
a822419b 145Requires: crondaemon
47a83e37
JB
146Provides: group(beagleindex)
147Provides: user(beagleindex)
4afaee22 148
149%description crawl-system
150Beagle crawl system.
151
2eeb2838
JR
152%description crawl-system -l pl.UTF-8
153System przeszukujący beagle-crawl.
4afaee22 154
b4b515ca 155%package evolution
156Summary: Beagle Evolution backend
e30bc3c5 157Summary(pl.UTF-8): Backend Beagle dla Evolution
b4b515ca 158Group: X11/Applications/Networking
159Requires: %{name} = %{version}-%{release}
7ba8a6a9 160Requires: dotnet-evolution-sharp >= 0.11.1
119be5cb 161Requires: evolution >= 2.10.0
b4b515ca 162
0543bc3b 163%description evolution
b4b515ca 164Beagle Evolution backend.
165
2eeb2838 166%description evolution -l pl.UTF-8
b4b515ca 167Backend Beagle dla Evolution.
168
a4757434 169%package thunderbird
170Summary: Beagle Mozilla Thunderbird backend
e30bc3c5 171Summary(pl.UTF-8): Backend Beagle dla Mozilli Thunderbird
a4757434 172Group: X11/Applications/Networking
173Requires: %{name} = %{version}-%{release}
174
175%description thunderbird
176Beagle Mozilla Thunderbird backend.
177
2eeb2838 178%description thunderbird -l pl.UTF-8
a4757434 179Backend Beagle dla Mozilli Thunderbird.
180
b9ae5f5e 181%package -n mozilla-firefox-extension-beagle
182Summary: Mozilla Firefox extension - beagle
e30bc3c5 183Summary(pl.UTF-8): Rozszerzenie dla Mozilla Firefox - beagle
b9ae5f5e 184Group: X11/Applications/Networking
185Requires: %{name} = %{version}-%{release}
cce36e2c 186Requires: mozilla-firefox >= 2.0.0.1-2
b9ae5f5e 187
188%description -n mozilla-firefox-extension-beagle
189Mozilla Firefox extension that allows Beagle to index every page the
190user views.
191
2eeb2838
JR
192%description -n mozilla-firefox-extension-beagle -l pl.UTF-8
193Rozszerzenie dla Mozilla Firefox sprawiające, że Beagle indeksuje
194każdą odwiedzaną stronę.
b9ae5f5e 195
cbe6bf97 196%package -n epiphany-extension-beagle
197Summary: Epiphany extension - beagle
e30bc3c5 198Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
cbe6bf97 199Group: X11/Applications/Networking
200Requires: %{name} = %{version}-%{release}
119be5cb 201Requires: epiphany-extensions >= 2.18.0
cbe6bf97 202
203%description -n epiphany-extension-beagle
204Epiphany extension that allows Beagle to index every page the user
205views.
206
2eeb2838
JR
207%description -n epiphany-extension-beagle -l pl.UTF-8
208Rozszerzenie dla Epiphany sprawiające, że Beagle indeksuje każdą
209odwiedzaną stronę.
99f1d7d3 210
c08a558f 211%package -n python-%{name}
212Summary: Beagle Python bindings
e30bc3c5 213Summary(pl.UTF-8): Wiązania języka Python dla Beagle
c08a558f 214Group: Libraries/Python
215Requires: %{name} = %{version}-%{release}
216%pyrequires_eq python-libs
217
218%description -n python-%{name}
219Beagle Python bindings.
220
2eeb2838
JR
221%description -n python-%{name} -l pl.UTF-8
222Wiązania języka Python dla Beagle.
c08a558f 223
a71c95fe 224%package search-gui
225Summary: GNOME based Beagle GUI
e30bc3c5 226Summary(pl.UTF-8): Oparty na GNOME graficzny interfejs dla Beagle
a71c95fe 227Group: Libraries/Python
228Requires: %{name} = %{version}-%{release}
119be5cb 229Requires: gtk+2 >= 2:2.10.10
a71c95fe 230
231%description search-gui
232GNOME based Beagle GUI.
233
2eeb2838 234%description search-gui -l pl.UTF-8
5713f50e 235Oparty na GNOME graficzny interfejs dla Beagle.
a71c95fe 236
87f0d596 237%package startup
238Summary: Automatic startup integration for Beagle
e30bc3c5 239Summary(pl.UTF-8): Integracja funkcji automatycznego startu Beagle
695bd367
PZ
240Group: X11/Applications
241Requires: %{name} = %{version}-%{release}
5713f50e 242Obsoletes: beagle-gnome
695bd367 243
87f0d596 244%description startup
245Automatic session startup integration for Beagle.
695bd367 246
2eeb2838 247%description startup -l pl.UTF-8
87f0d596 248Integracja funkcji automatycznego startu Beagle.
695bd367 249
99f1d7d3 250%prep
251%setup -q
a822419b 252%patch0 -p1
253%patch1 -p1
d19f4a59 254%patch3 -p1
17b40177 255%patch4 -p1
99f1d7d3 256
257%build
0b280122
MK
258%{__libtoolize}
259%{__aclocal}
260%{__autoconf}
261%{__automake}
0217b850 262%configure \
4afaee22 263 --enable-static \
a71c95fe 264 %{?with_apidocs:--enable-gtk-doc} \
36d6fb2e 265 --with-html-dir=%{_gtkdocdir} \
dd2f6f33 266 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
a71c95fe 267 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
268 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
4c824a15 269 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird
c08a558f 270
1f778816 271%{__make} \
c08a558f 272 MOZILLA_HOME=%{_libdir}/mozilla \
273 pythondir=%{py_sitedir}
99f1d7d3 274
275%install
276rm -rf $RPM_BUILD_ROOT
416cd106 277install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
99f1d7d3 278
279%{__make} install \
c08a558f 280 DESTDIR=$RPM_BUILD_ROOT \
281 pythondir=%{py_sitedir}
99f1d7d3 282
b9ae5f5e 283dest=$RPM_BUILD_ROOT%{_datadir}/mozilla-firefox/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
284install -d $dest $dest/chrome
285install mozilla-extension/{chrome.manifest,install.rdf} $dest
286install mozilla-extension/chrome/beagle.jar $dest/chrome
287
99f1d7d3 288# Kill useless files
119be5cb 289rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/2.18/extensions/*.{la,a} \
f2d711b9 290 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
c08a558f 291
292rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
6a67c030 293rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
c08a558f 294
f2d711b9 295rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
99f1d7d3 296
690e79b3 297%find_lang %{name}
298
99f1d7d3 299%clean
300rm -rf $RPM_BUILD_ROOT
301
a822419b 302%pre crawl-system
303%groupadd -g 166 -r -f beagleindex
304%useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
305
306%postun crawl-system
307if [ "$1" = "0" ]; then
308 %userremove beagleindex
309 %groupremove beagleindex
310fi
311
12f14f45 312%post libs -p /sbin/ldconfig
313%postun libs -p /sbin/ldconfig
10b5eb30 314
690e79b3 315%files -f %{name}.lang
99f1d7d3 316%defattr(644,root,root,755)
317%doc AUTHORS COPYING ChangeLog NEWS README
a71c95fe 318%attr(755,root,root) %{_bindir}/beagle-config
df3b0f63 319%attr(755,root,root) %{_bindir}/beagled
4c824a15 320%attr(755,root,root) %{_bindir}/beagle-doc-extractor
a71c95fe 321%attr(755,root,root) %{_bindir}/beagle-exercise-file-system
df3b0f63 322%attr(755,root,root) %{_bindir}/beagle-extract-content
a71c95fe 323%attr(755,root,root) %{_bindir}/beagle-index-info
324%attr(755,root,root) %{_bindir}/beagle-index-url
325%attr(755,root,root) %{_bindir}/beagle-info
326%attr(755,root,root) %{_bindir}/beagle-ping
327%attr(755,root,root) %{_bindir}/beagle-query
328%attr(755,root,root) %{_bindir}/beagle-shutdown
329%attr(755,root,root) %{_bindir}/beagle-status
9d454076 330%attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
331%attr(755,root,root) %{_libdir}/%{name}/*.exe
332%dir %{_libdir}/%{name}
b4b515ca 333%dir %{_libdir}/%{name}/Backends
96f57eb2 334%dir %{_libdir}/%{name}/Filters
335%{_libdir}/%{name}/*.dll
0ee55bb7 336%{_libdir}/%{name}/*.dll.config
96f57eb2 337%{_libdir}/%{name}/Filters/*.dll
3aa828d4 338%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
36d6fb2e 339%{_mandir}/man*/*
b77528a3 340
4afaee22 341%files libs
342%defattr(644,root,root,755)
c9a8a536 343%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
4afaee22 344
99f1d7d3 345%files devel
346%defattr(644,root,root,755)
c9a8a536 347%attr(755,root,root) %{_libdir}/*.so
62d9e9c3 348%{_includedir}/libbeagle
f2d711b9 349%{_libdir}/*.la
99f1d7d3 350%{_pkgconfigdir}/*
cbe6bf97 351
4afaee22 352%files static
353%defattr(644,root,root,755)
354%{_libdir}/*.a
4afaee22 355
58203720 356%if %{with apidocs}
357%files apidocs
358%defattr(644,root,root,755)
359%{_gtkdocdir}/beagle
360%endif
361
4afaee22 362%files crawl-system
363%defattr(644,root,root,755)
416cd106 364%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/*
877d3586 365%dir %{_sysconfdir}/beagle
86f426aa 366%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
367%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 368%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
4afaee22 369%attr(755,root,root) %{_sbindir}/*
4afaee22 370
a71c95fe 371%if %{with evolution}
b4b515ca 372%files evolution
373%defattr(644,root,root,755)
a4757434 374%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 375%endif
b4b515ca 376
4c824a15 377%if %{with thunderbird}
a4757434 378%files thunderbird
379%defattr(644,root,root,755)
4c824a15 380%attr(755,root,root) %{_bindir}/beagle-contactviewer
a4757434 381%{_libdir}/%{name}/Backends/Thunderbird*.dll
4c824a15 382%endif
a4757434 383
b9ae5f5e 384%files -n mozilla-firefox-extension-beagle
385%defattr(644,root,root,755)
386%{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
387
0217b850 388%if %{with epiphany}
cbe6bf97 389%files -n epiphany-extension-beagle
390%defattr(644,root,root,755)
391%doc epiphany-extension/README
119be5cb
MB
392%attr(755,root,root) %{_libdir}/epiphany/2.18/extensions/libbeagleextension.so*
393%{_libdir}/epiphany/2.18/extensions/*.xml
0217b850 394%endif
c08a558f 395
1c9cdc87 396%if %{with python}
c08a558f 397%files -n python-%{name}
398%defattr(644,root,root,755)
399%attr(755,root,root) %{py_sitedir}/*.so
1c9cdc87 400%endif
a71c95fe 401
402%if %{with gui}
403%files search-gui
404%defattr(644,root,root,755)
ab276991 405%attr(755,root,root) %{_bindir}/beagle-imlogviewer
a4757434 406%attr(755,root,root) %{_bindir}/beagle-search
ab276991 407%attr(755,root,root) %{_bindir}/beagle-settings
9d454076 408%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
a71c95fe 409%{_pixmapsdir}/*.png
410%{_desktopdir}/*.desktop
411%endif
695bd367 412
87f0d596 413%files startup
695bd367 414%defattr(644,root,root,755)
643f8926 415%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
f2db6a9e 416%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
This page took 0.136527 seconds and 4 git commands to generate.