3 %bcond_without epiphany # don't build epiphany extension
5 Summary: A download manager for GNOME
6 Summary(pl): Zarz±dca pobierania plików dla GNOME
11 Group: X11/Applications/Networking
12 Source0: http://dl.sourceforge.net/gwget/%{name}-%{version}.tar.gz
13 # Source0-md5: 7e59df048afb194baf2761cb877e8920
14 Patch0: %{name}-desktop.patch
15 URL: http://gwget.sourceforge.net/
16 BuildRequires: GConf2-devel
17 %{?with_epiphany:BuildRequires: epiphany-devel >= 1.4.0}
18 BuildRequires: gtk+2-devel >= 2:2.4.0
19 BuildRequires: intltool >= 0.11
20 BuildRequires: libgnomeui-devel >= 2.0.0
21 BuildRequires: perl-XML-Parser
22 BuildRequires: pkgconfig
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 Gwget is a download manager for GNOME.
30 Gwget to zarz±dca pobierania plików dla GNOME.
32 %package -n epiphany-extension-gwget
33 Summary: Epiphany extension - gwget
34 Summary(pl): Rozszerzenie dla Epiphany - gwget
35 Group: X11/Applications/Networking
36 Requires: %{name} = %{version}-%{release}
37 Requires: epiphany >= 1.4.0
39 %description -n epiphany-extension-gwget
40 Epiphany extension that uses gwget to download files.
42 %description -n epiphany-extension-gwget -l pl
43 Rozszerzenie dla Epiphany wykorzystuj±ce gwget do pobierania plików.
51 --disable-schemas-install \
52 %{!?with_epiphany: --disable-epiphany-extension}
56 rm -rf $RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/epiphany-1.4/extensions}
60 DESTDIR=$RPM_BUILD_ROOT \
61 GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
63 install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir}
64 install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir}
67 rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/*.{a,la}
68 mv $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/lib* $RPM_BUILD_ROOT%{_libdir}/epiphany-1.4/extensions
74 rm -rf $RPM_BUILD_ROOT
79 %files -f %{name}.lang
80 %defattr(644,root,root,755)
81 %doc AUTHORS ChangeLog NEWS README THANKS TODO
82 %attr(755,root,root) %{_bindir}/*
86 %{_libdir}/bonobo/servers/*
87 %{_sysconfdir}/gconf/schemas/*
91 %files -n epiphany-extension-gwget
92 %defattr(644,root,root,755)
93 %attr(755,root,root)%{_libdir}/epiphany-1.4/extensions/libgwgetextension.so*