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