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