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