# # Conditional build: %bcond_without epiphany # don't build epiphany extension Summary: A download manager for GNOME Summary(pl): Zarządca pobierania plików dla GNOME Name: gwget Version: 0.90 Release: 1 License: GPL Group: X11/Applications/Networking Source0: http://dl.sourceforge.net/gwget/%{name}-%{version}.tar.gz # Source0-md5: 44882057713aa64df9b94bbc6b678f29 # Source0-size: 473147 Patch0: %{name}-desktop.patch URL: http://gwget.sourceforge.net/ BuildRequires: gtk+2-devel >= 2.4.0 BuildRequires: libgnomeui-devel >= 2.0.0 BuildRequires: pkgconfig BuildRequires: perl-XML-Parser Requires: wget BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description Gwget is a download manager for GNOME. %description -l pl Gwget to zarządca pobierania plików dla GNOME. %package -n epiphany-extension-gwget Summary: Epiphany extension - gwget Summary(pl): Rozszerzenie dla Epiphany - gwget Group: X11/Applications/Networking %if %{with epiphany} BuildRequires: epiphany-devel >= 1.4.0 %endif Requires: %{name} = %{version}-%{release} Requires: epiphany >= 1.4.0 %description -n epiphany-extension-gwget Epiphany extension that uses gwget to download files. %description -n epiphany-extension-gwget -l pl Rozszerzenie dla Epiphany wykorzystujące gwget do pobierania plików. %prep %setup -q %patch0 -p1 %build %configure \ %if %{with epiphany} --enable-epiphany-extension %else --disable-epiphany-extension %endif %{__make} %install rm -rf $RPM_BUILD_ROOT install -d $RPM_BUILD_ROOT{%{_pixmapsdir},%{_desktopdir},%{_libdir}/epiphany-1.4/extensions} %{__make} install \ DESTDIR=$RPM_BUILD_ROOT install pixmaps/%{name}.png $RPM_BUILD_ROOT%{_pixmapsdir} install %{name}.desktop $RPM_BUILD_ROOT%{_desktopdir} %if %{with epiphany} rm -f $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/*.{a,la} mv $RPM_BUILD_ROOT%{_libdir}/epiphany/extensions/lib* $RPM_BUILD_ROOT%{_libdir}/epiphany-1.4/extensions %endif %find_lang %{name} %clean rm -rf $RPM_BUILD_ROOT %files -f %{name}.lang %defattr(644,root,root,755) %doc AUTHORS ChangeLog NEWS README THANKS TODO %attr(755,root,root) %{_bindir}/* %{_datadir}/%{name} %{_datadir}/idl/* %{_desktopdir}/* %{_libdir}/bonobo/servers/* %{_pixmapsdir}/* %if %{with epiphany} %files -n epiphany-extension-gwget %defattr(644,root,root,755) %attr(755,root,root)%{_libdir}/epiphany-1.4/extensions/libgwgetextension.so* %endif