Summary(pl): Beagle - podsystem indeksuj±cy
Name: beagle
Version: 0.2.8
-Release: 2
+Release: 3
License: Various
Group: Libraries
Source0: http://ftp.gnome.org/pub/gnome/sources/beagle/0.2/%{name}-%{version}.tar.bz2
# Source0-md5: 477e34538776ca2f4da8f3404edf28dd
+Source1: %{name}-autostart.desktop
Patch0: %{name}-desktop.patch
Patch1: %{name}-crawl.patch
Patch2: %{name}-kill_exec_a.patch
%description search-gui -l pl
Bazowane na GNOME GUI dla Beagle.
+%package gnome
+Summary: GNOME session startup integration for Beagle
+Summary(pl): Integracja funkcji automatycznego startu Beagle z sesj± GNOME
+Group: X11/Applications
+Requires: %{name} = %{version}-%{release}
+Requires: gnome-session
+
+%description gnome
+GNOME session startup integration for Beagle
+
+%description gnome -l pl
+Integracja funkcji automatycznego startu Beagle z sesj± GNOME
+
%prep
%setup -q
%patch0 -p1
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_var}/cache/beagle/indexes
+install -d $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT \
pythondir=%{py_sitedir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/gnome/autostart
+
# Kill useless files
rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/1.8/extensions/*.la \
$RPM_BUILD_ROOT%{_libdir}/%{name}/*.la
%{_pixmapsdir}/*.png
%{_desktopdir}/*.desktop
%endif
+
+%files gnome
+%defattr(644,root,root,755)
+%{_datadir}/gnome/autostart/beagle-autostart.desktop