3 # - separtate CLI utilities
5 %include /usr/lib/rpm/macros.mono
8 %bcond_with epiphany # build epiphany extension
9 %bcond_with gsf # build with libgsf support
10 %bcond_without evolution # don't include evolution support
12 Summary: Beagle - An indexing subsystem
13 Summary(pl): Beagle - podsystem indeksuj±cy
19 Source0: http://ftp.gnome.org/pub/gnome/sources/beagle/0.2/%{name}-%{version}.tar.bz2
20 # Source0-md5: 325ed91dc66fb6be060d0a5f4c8f56dd
21 Patch0: %{name}-desktop.patch
22 Patch1: %{name}-crawl.patch
23 URL: http://beaglewiki.org/Main_Page
24 BuildRequires: autoconf >= 2.52
25 BuildRequires: automake
26 %{?with_evolution:BuildRequires: dotnet-evolution-sharp-devel >= 0.10.2}
27 BuildRequires: dotnet-gmime-sharp-devel >= 2.1.19
28 %{?with_gsf:BuildRequires: dotnet-gsf-sharp-devel >= 0.7}
29 #BuildRequires: dotnet-gst-sharp-devel
30 BuildRequires: dotnet-gtk-sharp2-gnome-devel >= 2.3.90
31 %{?with_epiphany:BuildRequires: epiphany-devel >= 1.8}
32 BuildRequires: gnome-vfs2-devel
33 BuildRequires: gtk+2-devel >= 2:2.6.0
34 BuildRequires: gtk-doc
35 BuildRequires: libexif-devel >= 0.5.0
36 BuildRequires: libgnome-devel
37 BuildRequires: libpng-devel
38 BuildRequires: libtool
39 BuildRequires: libxml2-devel >= 2.6.19
40 BuildRequires: mono-csharp >= 1.1.10
41 BuildRequires: mozilla-devel
42 BuildRequires: pkgconfig
43 BuildRequires: python-devel
44 BuildRequires: sqlite-devel
45 BuildRequires: wv-devel >= 1.0.0
47 Requires: %{name}-libs = %{version}-%{release}
48 Requires: dotnet-gmime-sharp >= 2.1.19
49 %{?with_epiphany:Requires: epiphany-extensions}
50 Requires: gtk+2 >= 2:2.6.0
52 ExcludeArch: alpha i386 sparc sparc64
53 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
56 Beagle is an indexing sub-system and search aggregator built on top of
60 Beagle jest podsystemem indeksuj±cym i wyszukuj±cym zbudowanym na
64 Summary: Beagle libraries
65 Summary(pl): Bibiloteki Beagle
71 %description libs -l pl
75 Summary: Beagle development files
76 Summary(pl): Pliki programistyczne Beagle
77 Group: Development/Libraries
78 Requires: %{name}-libs = %{version}-%{release}
81 Beagle development files.
83 %description devel -l pl
84 Pliki programistyczne Beagle.
87 Summary: Beagle static libraries
88 Summary(pl): Statyczne biblioteki Beagle
89 Group: Development/Libraries
90 Requires: %{name}-devel = %{version}-%{release}
93 Beagle static libraries.
95 %description static -l pl
96 Statyczne biblioteki Beagle.
99 Summary: Beagle crawl system
100 Summary(pl): System przeszukuj±cy beagle-crawl
101 Group: Applications/System
103 Provides: group(beagleindex)
104 Provides: user(beagleindex)
106 %description crawl-system
109 %description crawl-system -l pl
110 System przeszukuj±cy beagle-crawl.
113 Summary: Beagle Evolution backend
114 Summary(pl): Backend Beagle dla Evolution
115 Group: X11/Applications/Networking
116 Requires: %{name} = %{version}-%{release}
117 Requires: dotnet-evolution-sharp >= 0.10.2-4
121 Beagle Evolution backend.
123 %description evolution -l pl
124 Backend Beagle dla Evolution.
126 %package -n epiphany-extension-beagle
127 Summary: Epiphany extension - beagle
128 Summary(pl): Rozszerzenie dla Epiphany - beagle
129 Group: X11/Applications/Networking
130 Requires: %{name} = %{version}-%{release}
131 Requires: epiphany >= 1.2.1
133 %description -n epiphany-extension-beagle
134 Epiphany extension that allows Beagle to index every page the user
137 %description -n epiphany-extension-beagle -l pl
138 Rozszerzenie dla Epiphany sprawiaj±ce, ¿e Beagle indeksuje ka¿d±
141 %package -n python-%{name}
142 Summary: Beagle Python bindings
143 Summary(pl): Wi±zania jêzyka Python dla Beagle
144 Group: Libraries/Python
145 Requires: %{name} = %{version}-%{release}
146 %pyrequires_eq python-libs
148 %description -n python-%{name}
149 Beagle Python bindings.
151 %description -n python-%{name} -l pl
152 Wi±zania jêzyka Python dla Beagle.
167 --with-html-dir=%{_gtkdocdir} \
168 --%{!?with_epiphany:dis}%{?with_epiphany:en}able-epiphany-extension \
169 --%{!?with_evolution:dis}%{?with_evolution:en}able-evolution-sharp
172 MOZILLA_HOME=%{_libdir}/mozilla \
173 pythondir=%{py_sitedir}
176 rm -rf $RPM_BUILD_ROOT
177 install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/index
180 DESTDIR=$RPM_BUILD_ROOT \
181 pythondir=%{py_sitedir}
184 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/1.8/extensions/*.la \
185 $RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
187 rm -f $RPM_BUILD_ROOT%{py_sitedir}/*.{a,la}
188 rm -f $RPM_BUILD_ROOT%{_libdir}/%{name}/*.{a,la}
190 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/no
195 rm -rf $RPM_BUILD_ROOT
198 %groupadd -g 166 -r -f beagleindex
199 %useradd -u 166 -r -d /var/cache/beagle -s /bin/false -c "Beagle indexing" -g beagleindex beagleindex
202 if [ "$1" = "0" ]; then
203 %userremove beagleindex
204 %groupremove beagleindex
207 %post libs -p /sbin/ldconfig
208 %postun libs -p /sbin/ldconfig
210 %files -f %{name}.lang
211 %defattr(644,root,root,755)
212 %doc AUTHORS COPYING ChangeLog NEWS README
213 %attr(755,root,root) %{_bindir}/*
214 %attr(755,root,root) %{_libdir}/%{name}/lib*.so*
215 %dir %{_libdir}/%{name}/Backends
216 %{_libdir}/%{name}/Filters
217 %attr(755,root,root) %{_libdir}/%{name}/*.exe
218 %{_libdir}/%{name}/*.dll*
220 %attr(755,root,root) %{_libdir}/%{name}/beagled-index-helper
223 %{_desktopdir}/*.desktop
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
229 %dir %{_libdir}/%{name}
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_libdir}/*.so
234 %{_includedir}/libbeagle
240 %defattr(644,root,root,755)
244 %defattr(644,root,root,755)
245 %attr(640,root,crontab) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/*.crontab
246 %dir %{_sysconfdir}/beagle
247 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/beagle/*
248 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle
249 %dir %attr(755,beagleindex,beagleindex) %{_var}/cache/beagle/index
250 %attr(755,root,root) %{_sbindir}/*
251 %attr(755,root,root) %{_libdir}/beagle-crawl-system
254 %defattr(644,root,root,755)
255 %{_libdir}/%{name}/Backends/Evolution*
258 %files -n epiphany-extension-beagle
259 %defattr(644,root,root,755)
260 %doc epiphany-extension/README
261 %attr(755,root,root) %{_libdir}/epiphany/1.8/extensions/libbeagleextension.so*
262 %{_libdir}/epiphany/1.8/extensions/*.xml
265 %files -n python-%{name}
266 %defattr(644,root,root,755)
267 %attr(755,root,root) %{py_sitedir}/*.so