Sophie

Sophie

distrib > Mandriva > 2009.0 > x86_64 > by-pkgid > fa735b42609c223075958315a3a0c2be > files > 3

gget-0.0.2-4mdv2009.0.src.rpm

%define epiphany_ver %(rpm -q --whatprovides epiphany-devel --queryformat "%{VERSION}")
%define epiphany_minor %(echo %epiphany_ver | awk -F. '{print $2}')
%define epiphany_major 2.%epiphany_minor
%define epiphany_next_major %(echo 2.$((%epiphany_minor+1)))

Summary:	Download Manager for the GNOME
Name:     	gget
Version:	0.0.2
Release:	%mkrel 4
License:	GPLv2+
Group:		Networking/File transfer
Source0: 	http://ftp.gnome.org/pub/GNOME/sources/%name/0.0/%name-%version.tar.bz2
Patch0:		gget-0.0.2-supportepiphany-2.24.patch
URL:		http://live.gnome.org/GGet
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
%py_requires -d
BuildRequires:	gnome-python-extras
BuildRequires:	gnome-python-devel
BuildRequires:	python-dbus
BuildRequires:	python-notify
BuildRequires:	pygtk2.0-devel
BuildRequires:	epiphany-devel
BuildRequires:	intltool

Requires:	gnome-python-extras
Requires:	python-dbus
Requires:	python-notify

%description
GGet is the name of an upcoming Download Manager for the GNOME desktop.

%package -n epiphany-%name
Summary:	Epiphany extension, using gget as downloader
Group: 		Networking/File transfer
Requires:	%name = %{version}
Requires:	epiphany >= %epiphany_major
Requires:	epiphany < %epiphany_next_major

%description -n epiphany-%name
GGet is the name of an upcoming Download Manager for the GNOME desktop.

This package contains epiphany extesion of gget.

%prep
%setup -q
%patch0 -p0

%build
%configure2_5x --disable-schemas-install
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%{find_lang} %{name}

%if %mdkversion < 200900
%post
%post_install_gconf_schemas %name
%{update_menus}
%{update_desktop_database}
%update_icon_cache hicolor
%endif

%preun
%preun_uninstall_gconf_schemas %name

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_desktop_database}
%clean_icon_cache hicolor
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%doc AUTHORS NEWS TODO
%{_sysconfdir}/gconf/schemas/gget.schemas
%{_bindir}/%name
%{_datadir}/%name
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.gget.service
%{_iconsdir}/hicolor/*/*/*
%{python_sitelib}/%name

%files -n epiphany-%name
%defattr(-, root, root)
%{_libdir}/epiphany/*/extensions/gget*


%changelog
* Tue Sep 23 2008 Funda Wang <fundawang@mandriva.org> 0.0.2-4mdv2009.0
+ Revision: 287171
- recognize epiphany 2.24
- rebuild with new epiphany

* Sun Sep 21 2008 Funda Wang <fundawang@mandriva.org> 0.0.2-2mdv2009.0
+ Revision: 286278
- fix typo

* Tue Sep 09 2008 Funda Wang <fundawang@mandriva.org> 0.0.2-1mdv2009.0
+ Revision: 282894
- singled out epiphany extension
- add package scripts
- import gget