]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- updated for 0.2.16.3
[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
119be5cb 26Version: 0.2.16.2
17b40177 27Release: 1
99f1d7d3 28License: Various
29Group: Libraries
8d5854d2 30Source0: http://ftp.gnome.org/pub/gnome/sources/beagle/0.2/%{name}-%{version}.tar.bz2
119be5cb 31# Source0-md5: 4cff44be5917bfce5f1c265039a60626
4afaee22 32Patch0: %{name}-desktop.patch
6182bda9 33Patch1: %{name}-crawl.patch
117e4cdd 34Patch2: %{name}-kill_exec_a.patch
d19f4a59 35Patch3: %{name}-configure.patch
119be5cb 36Patch4: %{name}-epiphany-2.18.patch
ff55a2dc 37URL: http://beagle-project.org/Main_Page
0b280122
MK
38BuildRequires: autoconf >= 2.52
39BuildRequires: automake
643f8926 40BuildRequires: chmlib-devel
7ba8a6a9 41%{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.11.1}
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}
15c7d5f6 45#BuildRequires: dotnet-gst-sharp-devel
87f0d596 46BuildRequires: dotnet-gtk-sharp2-devel >= 2.10.0
47%if %{with epiphany}
119be5cb 48BuildRequires: epiphany-devel >= 2.18.0
87f0d596 49%endif
119be5cb
MB
50BuildRequires: gtk+2-devel >= 2:2.10.10
51%{?with_apidocs:BuildRequires: gtk-doc >= 1.8}
7ba8a6a9 52BuildRequires: libexif-devel >= 0.6.13
119be5cb 53BuildRequires: librsvg-devel >= 1:2.16.1
3fec4ed6 54BuildRequires: libpng-devel
a028da53 55BuildRequires: libtool
119be5cb 56BuildRequires: libxml2-devel >= 1:2.6.27
17b40177 57BuildRequires: mono-csharp >= 1.1.13.5
119be5cb 58%{?with_python:BuildRequires: python-pygtk-devel >= 2:2.10.4}
cbe6bf97 59BuildRequires: pkgconfig
1c9cdc87 60BuildRequires: perl-XML-Parser
c08a558f 61BuildRequires: python-devel
1c9cdc87 62%if %{with sqlite3}
63BuildRequires: sqlite3-devel >= 3.3.4
64%else
900b25a6 65BuildRequires: sqlite-devel
1c9cdc87 66%endif
4c824a15 67BuildRequires: wv-devel >= 1.2.4
7ba8a6a9 68BuildRequires: xorg-lib-libXScrnSaver-devel
10b5eb30 69BuildRequires: zip
a71c95fe 70# GUI BRs
71%if %{with gui}
87f0d596 72BuildRequires: dotnet-gnome-sharp-devel >= 2.16.0
119be5cb 73BuildRequires: gnome-vfs2-devel >= 2.18.0.1
a71c95fe 74%endif
4afaee22 75Requires: %{name}-libs = %{version}-%{release}
091e6609 76Requires: dotnet-gmime-sharp >= 2.2.3
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
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
117e4cdd 254%patch2 -p1
d19f4a59 255%patch3 -p1
17b40177 256%patch4 -p1
99f1d7d3 257
258%build
0b280122
MK
259%{__libtoolize}
260%{__aclocal}
261%{__autoconf}
262%{__automake}
0217b850 263%configure \
4afaee22 264 --enable-static \
a71c95fe 265 %{?with_apidocs:--enable-gtk-doc} \
36d6fb2e 266 --with-html-dir=%{_gtkdocdir} \
dd2f6f33 267 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
a71c95fe 268 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp \
269 --%{!?with_gui:dis}%{?with_gui:en}able-gui \
4c824a15 270 --%{!?with_thunderbird:dis}%{?with_thunderbird:en}able-thunderbird
c08a558f 271
1f778816 272%{__make} \
c08a558f 273 MOZILLA_HOME=%{_libdir}/mozilla \
274 pythondir=%{py_sitedir}
99f1d7d3 275
276%install
277rm -rf $RPM_BUILD_ROOT
416cd106 278install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
99f1d7d3 279
280%{__make} install \
c08a558f 281 DESTDIR=$RPM_BUILD_ROOT \
282 pythondir=%{py_sitedir}
99f1d7d3 283
b9ae5f5e 284dest=$RPM_BUILD_ROOT%{_datadir}/mozilla-firefox/extensions/\{fda00e13-8c62-4f63-9d19-d168115b11ca\}
285install -d $dest $dest/chrome
286install mozilla-extension/{chrome.manifest,install.rdf} $dest
287install mozilla-extension/chrome/beagle.jar $dest/chrome
288
99f1d7d3 289# Kill useless files
119be5cb 290rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/2.18/extensions/*.{la,a} \
f2d711b9 291 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
c08a558f 292
293rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
6a67c030 294rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
c08a558f 295
f2d711b9 296rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
99f1d7d3 297
690e79b3 298%find_lang %{name}
299
99f1d7d3 300%clean
301rm -rf $RPM_BUILD_ROOT
302
a822419b 303%pre crawl-system
304%groupadd -g 166 -r -f beagleindex
305%useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
306
307%postun crawl-system
308if [ "$1" = "0" ]; then
309 %userremove beagleindex
310 %groupremove beagleindex
311fi
312
12f14f45 313%post libs -p /sbin/ldconfig
314%postun libs -p /sbin/ldconfig
10b5eb30 315
690e79b3 316%files -f %{name}.lang
99f1d7d3 317%defattr(644,root,root,755)
318%doc AUTHORS COPYING ChangeLog NEWS README
a71c95fe 319%attr(755,root,root) %{_bindir}/beagle-config
df3b0f63 320%attr(755,root,root) %{_bindir}/beagled
4c824a15 321%attr(755,root,root) %{_bindir}/beagle-doc-extractor
a71c95fe 322%attr(755,root,root) %{_bindir}/beagle-exercise-file-system
df3b0f63 323%attr(755,root,root) %{_bindir}/beagle-extract-content
a71c95fe 324%attr(755,root,root) %{_bindir}/beagle-index-info
325%attr(755,root,root) %{_bindir}/beagle-index-url
326%attr(755,root,root) %{_bindir}/beagle-info
327%attr(755,root,root) %{_bindir}/beagle-ping
328%attr(755,root,root) %{_bindir}/beagle-query
329%attr(755,root,root) %{_bindir}/beagle-shutdown
330%attr(755,root,root) %{_bindir}/beagle-status
9d454076 331%attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
332%attr(755,root,root) %{_libdir}/%{name}/*.exe
333%dir %{_libdir}/%{name}
b4b515ca 334%dir %{_libdir}/%{name}/Backends
96f57eb2 335%dir %{_libdir}/%{name}/Filters
336%{_libdir}/%{name}/*.dll
0ee55bb7 337%{_libdir}/%{name}/*.dll.config
96f57eb2 338%{_libdir}/%{name}/Filters/*.dll
3aa828d4 339%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
36d6fb2e 340%{_mandir}/man*/*
b77528a3 341
4afaee22 342%files libs
343%defattr(644,root,root,755)
c9a8a536 344%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
4afaee22 345
99f1d7d3 346%files devel
347%defattr(644,root,root,755)
c9a8a536 348%attr(755,root,root) %{_libdir}/*.so
62d9e9c3 349%{_includedir}/libbeagle
f2d711b9 350%{_libdir}/*.la
99f1d7d3 351%{_pkgconfigdir}/*
cbe6bf97 352
4afaee22 353%files static
354%defattr(644,root,root,755)
355%{_libdir}/*.a
4afaee22 356
58203720 357%if %{with apidocs}
358%files apidocs
359%defattr(644,root,root,755)
360%{_gtkdocdir}/beagle
361%endif
362
4afaee22 363%files crawl-system
364%defattr(644,root,root,755)
416cd106 365%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/*
877d3586 366%dir %{_sysconfdir}/beagle
86f426aa 367%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
368%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 369%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
4afaee22 370%attr(755,root,root) %{_sbindir}/*
4afaee22 371
a71c95fe 372%if %{with evolution}
b4b515ca 373%files evolution
374%defattr(644,root,root,755)
a4757434 375%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 376%endif
b4b515ca 377
4c824a15 378%if %{with thunderbird}
a4757434 379%files thunderbird
380%defattr(644,root,root,755)
4c824a15 381%attr(755,root,root) %{_bindir}/beagle-contactviewer
a4757434 382%{_libdir}/%{name}/Backends/Thunderbird*.dll
4c824a15 383%endif
a4757434 384
b9ae5f5e 385%files -n mozilla-firefox-extension-beagle
386%defattr(644,root,root,755)
387%{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
388
0217b850 389%if %{with epiphany}
cbe6bf97 390%files -n epiphany-extension-beagle
391%defattr(644,root,root,755)
392%doc epiphany-extension/README
119be5cb
MB
393%attr(755,root,root) %{_libdir}/epiphany/2.18/extensions/libbeagleextension.so*
394%{_libdir}/epiphany/2.18/extensions/*.xml
0217b850 395%endif
c08a558f 396
1c9cdc87 397%if %{with python}
c08a558f 398%files -n python-%{name}
399%defattr(644,root,root,755)
400%attr(755,root,root) %{py_sitedir}/*.so
1c9cdc87 401%endif
a71c95fe 402
403%if %{with gui}
404%files search-gui
405%defattr(644,root,root,755)
ab276991 406%attr(755,root,root) %{_bindir}/beagle-imlogviewer
a4757434 407%attr(755,root,root) %{_bindir}/beagle-search
ab276991 408%attr(755,root,root) %{_bindir}/beagle-settings
9d454076 409%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
a71c95fe 410%{_pixmapsdir}/*.png
411%{_desktopdir}/*.desktop
412%endif
695bd367 413
87f0d596 414%files startup
695bd367 415%defattr(644,root,root,755)
643f8926 416%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
f2db6a9e 417%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
This page took 0.144736 seconds and 4 git commands to generate.