ALT Linux repos
Group :: Networking/File transfer
RPM: gwget
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define ver_major 1.0
%def_disable epiphany
Name: gwget
Version: %ver_major.4
Release: alt5
Summary: Gwget - Gnome wget Front-end
License: GPL-2.0+
Group: Networking/File transfer
URL: http://gnome.org/projects/gwget
Source: %name-%version.tar
Patch1: %name-%version-git.patch
Patch2: %name-%version-alt-fixes.patch
Provides: gwget2
%{?_enable_epiphany:BuildRequires: epiphany-devel}
BuildRequires: gcc-c++ libnotify-devel intltool
BuildRequires: libgtk+3-devel libdbus-glib-devel
BuildRequires: zlib-devel
BuildRequires: libgio-devel >= 2.16.0
BuildRequires: ImageMagick-tools
Requires: wget
%description
Gwget: Gnome wget Front-end.
Gwget it's a download manager for the Gnome Desktop. The main features are:
* Resume: By default, gwget tries to continue any download.
* Notification: Gwget tries to use the Gnome notification area support,
if available. You can close the main window and gwget runs in the background.
* Recursivity: Gwget detects when you put a html, php, asp or a web page dir
in the url to download, and ask you
to only download certain files (multimedia, only the index, and so on).
* Drag & Drop: You can d&d a url to the main gwget window or
the notification area icon to add a new download.
%package -n epiphany-extension-gwget
Summary: Gwget extention for Epiphany browser
Group: Networking/File transfer
Requires: %name = %version-%release
Requires: epiphany epiphany-extensions
%description -n epiphany-extension-gwget
Extention Gwget for Epiphany browser
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%add_optflags -fcommon
%autoreconf
%configure \
%if_enabled epiphany
--enable-epiphany-extension \
%endif
--disable-static \
--disable-schemas-install
%make_build
%install
%make_install install DESTDIR=%buildroot
mkdir -p %buildroot%_iconsdir/hicolor/{48x48,64x64,128x128}/apps/
convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 48x48 -alpha on "%buildroot%_iconsdir/hicolor/48x48/apps/gwget.png"
convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 64x64 -alpha on "%buildroot%_iconsdir/hicolor/64x64/apps/gwget.png"
convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 128x128 -alpha on "%buildroot%_iconsdir/hicolor/128x128/apps/gwget.png"
# remove none-packaged files
rm -f %buildroot%_libdir/epiphany/*/extensions/*.{a,la}
%find_lang --with-gnome %name
%files -f %name.lang
%doc AUTHORS ChangeLog NEWS README TODO
%_bindir/*
%_datadir/%name
%_datadir/pixmaps/*
%_iconsdir/hicolor/*/apps/gwget.png
%_datadir/applications/*
%_datadir/dbus-1/services/*.service
%_datadir/glib-2.0/schemas/*.xml
%if_enabled epiphany
%files -n epiphany-extension-gwget
%_libdir/epiphany/*/extensions/*
%endif
%changelog
…
Full changelog you can see here
%def_disable epiphany
Name: gwget
Version: %ver_major.4
Release: alt5
Summary: Gwget - Gnome wget Front-end
License: GPL-2.0+
Group: Networking/File transfer
URL: http://gnome.org/projects/gwget
Source: %name-%version.tar
Patch1: %name-%version-git.patch
Patch2: %name-%version-alt-fixes.patch
Provides: gwget2
%{?_enable_epiphany:BuildRequires: epiphany-devel}
BuildRequires: gcc-c++ libnotify-devel intltool
BuildRequires: libgtk+3-devel libdbus-glib-devel
BuildRequires: zlib-devel
BuildRequires: libgio-devel >= 2.16.0
BuildRequires: ImageMagick-tools
Requires: wget
%description
Gwget: Gnome wget Front-end.
Gwget it's a download manager for the Gnome Desktop. The main features are:
* Resume: By default, gwget tries to continue any download.
* Notification: Gwget tries to use the Gnome notification area support,
if available. You can close the main window and gwget runs in the background.
* Recursivity: Gwget detects when you put a html, php, asp or a web page dir
in the url to download, and ask you
to only download certain files (multimedia, only the index, and so on).
* Drag & Drop: You can d&d a url to the main gwget window or
the notification area icon to add a new download.
%package -n epiphany-extension-gwget
Summary: Gwget extention for Epiphany browser
Group: Networking/File transfer
Requires: %name = %version-%release
Requires: epiphany epiphany-extensions
%description -n epiphany-extension-gwget
Extention Gwget for Epiphany browser
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
%add_optflags -fcommon
%autoreconf
%configure \
%if_enabled epiphany
--enable-epiphany-extension \
%endif
--disable-static \
--disable-schemas-install
%make_build
%install
%make_install install DESTDIR=%buildroot
mkdir -p %buildroot%_iconsdir/hicolor/{48x48,64x64,128x128}/apps/
convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 48x48 -alpha on "%buildroot%_iconsdir/hicolor/48x48/apps/gwget.png"
convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 64x64 -alpha on "%buildroot%_iconsdir/hicolor/64x64/apps/gwget.png"
convert pixmaps/gwget-large.png +set date:create +set date:modify -resize 128x128 -alpha on "%buildroot%_iconsdir/hicolor/128x128/apps/gwget.png"
# remove none-packaged files
rm -f %buildroot%_libdir/epiphany/*/extensions/*.{a,la}
%find_lang --with-gnome %name
%files -f %name.lang
%doc AUTHORS ChangeLog NEWS README TODO
%_bindir/*
%_datadir/%name
%_datadir/pixmaps/*
%_iconsdir/hicolor/*/apps/gwget.png
%_datadir/applications/*
%_datadir/dbus-1/services/*.service
%_datadir/glib-2.0/schemas/*.xml
%if_enabled epiphany
%files -n epiphany-extension-gwget
%_libdir/epiphany/*/extensions/*
%endif
%changelog
…
Full changelog you can see here