From c14e079c5308a338685c9d4bc7814d98e94b87e6 Mon Sep 17 00:00:00 2001 From: Luya Tshimbalanga Date: May 12 2016 03:31:46 +0000 Subject: Initial build based on Russian Fedora spec --- diff --git a/.gitignore b/.gitignore index e69de29..2361411 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/gimp-save-for-web-0.29.3.tar.bz2 diff --git a/gimp-save-for-web.metainfo.xml b/gimp-save-for-web.metainfo.xml new file mode 100644 index 0000000..790ff1a --- /dev/null +++ b/gimp-save-for-web.metainfo.xml @@ -0,0 +1,11 @@ + + +​ gimp-save-for-web + gimp.desktop + Save for web + Save files in web formats + http://registry.gimp.org/node/33 + https://github.com/auris/gimp-save-for-web/issues + CC0-1.0 + GPL-2.0+ + diff --git a/gimp-save-for-web.spec b/gimp-save-for-web.spec new file mode 100644 index 0000000..43b7915 --- /dev/null +++ b/gimp-save-for-web.spec @@ -0,0 +1,59 @@ +Name: gimp-save-for-web +Version: 0.29.3 +Release: 1%{?dist} +Summary: Save for web plug-in for GIMP +License: GPLv2+ and MIT +URL: http://registry.gimp.org/node/33 +Source0: http://registry.gimp.org/files/%{name}-%{version}.tar.bz2 +Source1: %{name}.metainfo.xml +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +BuildRequires: gimp-devel +BuildRequires: intltool +BuildRequires: libtool +%if 0%{?fedora} >= 21 +BuildRequires: libappstream-glib +%endif +Requires: gimp >= 2.6.0 + +%description +Save for Web allows to find compromise between minimal file size +and acceptable quality of image quickly. While adjusting various +settings, you may explore how image quality and file size change. +Options to reduce file size of an image include setting compression +quality, number or colors, resizing, cropping, Exif information +removal, etc. + +%prep +%autosetup -n %{name}-%{version} + +%build +%configure +make %{?_smp_mflags} + +%install +%make_install +%find_lang gimp20-save-for-web + +%if 0%{?fedora} >= 21 +# Add AppStream metadata +install -Dm 0644 -p %{SOURCE1} \ + %{buildroot}%{_datadir}/appdata/%{name}.metainfo.xml + +%check +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/%{name}.metainfo.xml +%endif + +%files -f gimp20-save-for-web.lang +%doc AUTHORS ChangeLog NEWS README +%license COPYING +%{_libdir}/gimp/2.0/plug-ins/webexport +%{_datadir}/gimp-save-for-web +%if 0%{?fedora} >= 21 +#AppStream metadata +%{_datadir}/appdata/%{name}.metainfo.xml +%endif + +%changelog +* Sun Apr 17 2016 Luya Tshimbalanga - 0.29.3-1 +- Initial build based on Russian Fedora spec + diff --git a/sources b/sources index e69de29..070c630 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9dae11ffa9f7b8e44a65df5b0e49a04c gimp-save-for-web-0.29.3.tar.bz2