]> git.pld-linux.org Git - packages/beagle.git/blame - beagle.spec
- build thunderbird plugin
[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
b33a45f4 17%bcond_without 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
b0d572c4 26Version: 0.2.18
1aa42a1c 27Release: 3
99f1d7d3 28License: Various
29Group: Libraries
8d5854d2 30Source0: http://ftp.gnome.org/pub/gnome/sources/beagle/0.2/%{name}-%{version}.tar.bz2
b0d572c4 31# Source0-md5: 8bab6ce40fff497120dbfcfd0a789c65
4afaee22 32Patch0: %{name}-desktop.patch
6182bda9 33Patch1: %{name}-crawl.patch
d19f4a59 34Patch3: %{name}-configure.patch
1b19108f 35Patch4: %{name}-epiphany-2.20.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
6300fca8 46%if %{with epiphany}
1b19108f 47BuildRequires: epiphany-devel >= 2.20.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
1aa42a1c 82# sr@Latn vs. sr@latin
83Conflicts: glibc-misc < 6:2.7
a4757434 84ExclusiveArch: %{ix86} %{x8664} arm hppa ia64 ppc s390 s390x sparc sparcv9 sparc64
6300fca8 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
e30bc3c5 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
e30bc3c5 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
e30bc3c5 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
e30bc3c5 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
e30bc3c5 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
e30bc3c5 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
119be5cb 163Requires: evolution >= 2.10.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
e30bc3c5 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
e30bc3c5 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
e30bc3c5 200Summary(pl.UTF-8): Rozszerzenie dla Epiphany - beagle
cbe6bf97 201Group: X11/Applications/Networking
202Requires: %{name} = %{version}-%{release}
1b19108f 203Requires: epiphany-extensions >= 2.20.0
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
e30bc3c5 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
e30bc3c5 228Summary(pl.UTF-8): Oparty na GNOME graficzny interfejs dla Beagle
a71c95fe 229Group: Libraries/Python
230Requires: %{name} = %{version}-%{release}
119be5cb 231Requires: gtk+2 >= 2:2.10.10
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
e30bc3c5 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
d19f4a59 256%patch3 -p1
17b40177 257%patch4 -p1
99f1d7d3 258
259%build
b0d572c4 260%{__intltoolize}
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
1b19108f 292rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/2.20/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
1aa42a1c 300[ -d $RPM_BUILD_ROOT%{_datadir}/locale/sr@latin ] || \
301 mv -f $RPM_BUILD_ROOT%{_datadir}/locale/sr@{Latn,latin}
690e79b3 302%find_lang %{name}
303
99f1d7d3 304%clean
305rm -rf $RPM_BUILD_ROOT
306
a822419b 307%pre crawl-system
308%groupadd -g 166 -r -f beagleindex
309%useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
310
311%postun crawl-system
312if [ "$1" = "0" ]; then
313 %userremove beagleindex
314 %groupremove beagleindex
315fi
316
12f14f45 317%post libs -p /sbin/ldconfig
318%postun libs -p /sbin/ldconfig
10b5eb30 319
690e79b3 320%files -f %{name}.lang
99f1d7d3 321%defattr(644,root,root,755)
322%doc AUTHORS COPYING ChangeLog NEWS README
a71c95fe 323%attr(755,root,root) %{_bindir}/beagle-config
df3b0f63 324%attr(755,root,root) %{_bindir}/beagled
4c824a15 325%attr(755,root,root) %{_bindir}/beagle-doc-extractor
a71c95fe 326%attr(755,root,root) %{_bindir}/beagle-exercise-file-system
df3b0f63 327%attr(755,root,root) %{_bindir}/beagle-extract-content
a71c95fe 328%attr(755,root,root) %{_bindir}/beagle-index-info
329%attr(755,root,root) %{_bindir}/beagle-index-url
330%attr(755,root,root) %{_bindir}/beagle-info
331%attr(755,root,root) %{_bindir}/beagle-ping
332%attr(755,root,root) %{_bindir}/beagle-query
333%attr(755,root,root) %{_bindir}/beagle-shutdown
334%attr(755,root,root) %{_bindir}/beagle-status
9d454076 335%attr(755,root,root) %{_libdir}/%{name}/libbeagleglue.so*
336%attr(755,root,root) %{_libdir}/%{name}/*.exe
337%dir %{_libdir}/%{name}
b4b515ca 338%dir %{_libdir}/%{name}/Backends
96f57eb2 339%dir %{_libdir}/%{name}/Filters
340%{_libdir}/%{name}/*.dll
0ee55bb7 341%{_libdir}/%{name}/*.dll.config
96f57eb2 342%{_libdir}/%{name}/Filters/*.dll
3aa828d4 343%attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
36d6fb2e 344%{_mandir}/man*/*
b77528a3 345
4afaee22 346%files libs
347%defattr(644,root,root,755)
c9a8a536 348%attr(755,root,root) %{_libdir}/lib*.so.*.*.*
4afaee22 349
99f1d7d3 350%files devel
351%defattr(644,root,root,755)
c9a8a536 352%attr(755,root,root) %{_libdir}/*.so
62d9e9c3 353%{_includedir}/libbeagle
f2d711b9 354%{_libdir}/*.la
99f1d7d3 355%{_pkgconfigdir}/*
cbe6bf97 356
4afaee22 357%files static
358%defattr(644,root,root,755)
359%{_libdir}/*.a
4afaee22 360
58203720 361%if %{with apidocs}
362%files apidocs
363%defattr(644,root,root,755)
364%{_gtkdocdir}/beagle
365%endif
366
4afaee22 367%files crawl-system
368%defattr(644,root,root,755)
416cd106 369%attr(750,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.daily/*
877d3586 370%dir %{_sysconfdir}/beagle
86f426aa 371%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
372%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
416cd106 373%dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/indexes
4afaee22 374%attr(755,root,root) %{_sbindir}/*
4afaee22 375
a71c95fe 376%if %{with evolution}
b4b515ca 377%files evolution
378%defattr(644,root,root,755)
a4757434 379%{_libdir}/%{name}/Backends/Evolution*.dll
a71c95fe 380%endif
b4b515ca 381
4c824a15 382%if %{with thunderbird}
a4757434 383%files thunderbird
384%defattr(644,root,root,755)
4c824a15 385%attr(755,root,root) %{_bindir}/beagle-contactviewer
a4757434 386%{_libdir}/%{name}/Backends/Thunderbird*.dll
4c824a15 387%endif
a4757434 388
b9ae5f5e 389%files -n mozilla-firefox-extension-beagle
390%defattr(644,root,root,755)
391%{_datadir}/mozilla-firefox/extensions/{fda00e13-8c62-4f63-9d19-d168115b11ca}
392
0217b850 393%if %{with epiphany}
cbe6bf97 394%files -n epiphany-extension-beagle
395%defattr(644,root,root,755)
396%doc epiphany-extension/README
1b19108f 397%attr(755,root,root) %{_libdir}/epiphany/2.20/extensions/libbeagleextension.so*
398%{_libdir}/epiphany/2.20/extensions/*.xml
0217b850 399%endif
c08a558f 400
1c9cdc87 401%if %{with python}
c08a558f 402%files -n python-%{name}
403%defattr(644,root,root,755)
404%attr(755,root,root) %{py_sitedir}/*.so
1c9cdc87 405%endif
a71c95fe 406
407%if %{with gui}
408%files search-gui
409%defattr(644,root,root,755)
ab276991 410%attr(755,root,root) %{_bindir}/beagle-imlogviewer
a4757434 411%attr(755,root,root) %{_bindir}/beagle-search
ab276991 412%attr(755,root,root) %{_bindir}/beagle-settings
9d454076 413%attr(755,root,root) %{_libdir}/%{name}/libbeagleuiglue.so*
a71c95fe 414%{_pixmapsdir}/*.png
415%{_desktopdir}/*.desktop
416%endif
695bd367 417
87f0d596 418%files startup
695bd367 419%defattr(644,root,root,755)
643f8926 420%{_sysconfdir}/xdg/autostart/beagled-autostart.desktop
f2db6a9e 421%{_sysconfdir}/xdg/autostart/beagle-search-autostart.desktop
This page took 0.122356 seconds and 4 git commands to generate.