%define epimajor 1.9
Summary: Graphical download manager that uses wget
Name: gwget
Version: 0.97
Release: 1%{?dist}
License: GPL
Group: Applications/Internet
Source0: http://ftp.gnome.org/pub/GNOME/sources/gwget/0.97/gwget-0.97.tar.bz2
Source1: gwget.desktop
URL: http://gnome.org/projects/gwget
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Buildrequires: libgnomeui-devel >= 2.0
Buildrequires: libglade2-devel >= 2.0
BuildRequires: perl-XML-Parser
BuildRequires: gettext >= 0.14.1
BuildRequires: desktop-file-utils
BuildRequires: epiphany-devel >= %{epimajor}
Requires: wget >= 1.9
Requires(post): GConf2
Requires(preun): GConf2
%description
Gwget is a Download Manager for Gnome 2. It uses wget as a backend.
Currently, very basic wget options are available, supporting multiple
downloads, drag&drop and display the errors from wget process.
%package epiphany-extension
Summary: This Package contains extensions gwget2 extensions for epiphany.
Group: Applications/Internet
Requires: %{name} = %{version}
Requires: epiphany >= %{epimajor}
%description epiphany-extension
This Package contains extensions gwget2 extensions for epiphany.
%prep
%setup -q
%build
%configure
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
# For GConf apps: prevent schemas from being installed at this stage
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
make install DESTDIR=$RPM_BUILD_ROOT
rm ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor fedora \
--dir ${RPM_BUILD_ROOT}%{_datadir}/applications \
--add-category X-Fedora \
%{SOURCE1}
rm -f ${RPM_BUILD_ROOT}/%{_includedir}/gwget/*
%find_lang %{name}
find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/libgwgetextension.a
%clean
rm -rf %{buildroot}
%post
# For GConf apps: install schemas as system default
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
/usr/bin/gconftool-2 --makefile-install-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null ||:
%preun
# For GConf apps: uninstall app's system default schemas
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
/usr/bin/gconftool-2 --makefile-uninstall-rule \
%{_sysconfdir}/gconf/schemas/%{name}.schemas >/dev/null || :
%files -f %{name}.lang
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/*
%{_libdir}/bonobo/servers/GNOME_Gwget.server
%{_sysconfdir}/gconf/schemas/gwget.schemas
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/idl/GNOME_Gwget.idl
%{_datadir}/applications/fedora-%{name}.desktop
%files epiphany-extension
%defattr (-,root,root)
%{_libdir}/epiphany*/
%changelog
* Wed Feb 01 2006 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.97-1
- Update to 0.97
- Build with epiphany 1.9/2.0
* Thu Sep 22 2005 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.96-4
- extension-dir is different on epiphany 1.8
- Own _libdir/epiphany
* Thu Sep 22 2005 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.96-3
- use dist
* Mon Sep 19 2005 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.96-2
- Remove the epiphanye build-option and build it always
- Use epimajor macro to simplify spec for different dists
- make install DESTDIR= instead of makeinstall macro
* Mon Sep 19 2005 Adel Gadllah <adel.gadllah [AT] gmail [DOT] com> 0.96-1
- Update to 0.96
- Fix urls in spec file (project has moved)
- dropped x86_64 patch (not needed anymore)
* Tue Mar 01 2005 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.93-2
- Add gwget-autoreconf.patch.bz2 ; fixes x86_64
* Tue Jan 25 2005 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.93-1
- Update to 0.93
* Thu Dec 09 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.92-0.fdr.1
- Update to 0.92
* Tue Nov 27 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.91-0.fdr.1
- Update to 0.91
- Add handling for new GCconf schemas
- Add epiphany-extension package
* Tue Oct 19 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.90-0.fdr.1
- Update to 0.90
- disable-epiphany-extension until FC3
* Tue Sep 14 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.14.1-0.fdr.2
- Don't ship header files
* Mon Sep 13 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.14.1-0.fdr.1
- Update to 0.14.1
- Add BuildRequire gettext intltool
- Remove gwget.png workaround
* Mon Aug 30 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.14-0.fdr.3
- Fixed devel description (again)
- Fixed Changelog-Versions
* Mon Aug 30 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.14-0.fdr.2
- Source changed to something downloadable with wget
- Fixed devel description
- use desktop-file-utils
* Sun Aug 29 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0:0.14-0.fdr.1
- Update to 0.14
* Thu Aug 16 2004 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> 0.13-0.fdr.1
- New Spec file based on impressions from gwget-0.13.1-5asp with
work from various people:
Pavlo Bohmat <bohm@ukr.net>
Arkady L. Shane <shejn@msiu.ru>
Abel Cheung <deaddog@deaddog.org>
Lenny Cartier <lenny@mandrakesoft.com>
Michael Scherer <scherer.michael@free.fr>
Laurent MONTEL <lmontel@mandrakesoft.com>