d6afd96
%global		addon wavelet-decompose
d6afd96
d6afd96
Name:		gimp-%{addon}
d6afd96
Version:	0
d6afd96
Release:	1%{?dist}
d6afd96
Summary:	Decomposing image plug-in for Gimp
d6afd96
License:	GPLv3+
d6afd96
URL:		http://registry.gimp.org/node/13549
d6afd96
Source0:	http://registry.gimp.org/files/%{addon}.scm
d6afd96
Source1:	%{name}.metainfo.xml
d6afd96
Source2:	license.txt
d6afd96
BuildRequires:	libappstream-glib
d6afd96
Requires:	gimp
d6afd96
BuildArch:	noarch
d6afd96
d6afd96
%description
d6afd96
Script-Fu script for lossless decomposing an image into different 
d6afd96
detail scales useful for photo post processing (for instance 
d6afd96
repairing skin in portraits).
d6afd96
d6afd96
%prep
d6afd96
# Copy license
d6afd96
cp -p %{SOURCE2} .
d6afd96
d6afd96
%build
d6afd96
## Nothing to build.
d6afd96
d6afd96
%install
d6afd96
install -Dpm 0644 %{SOURCE0} -t %{buildroot}%{_datadir}/gimp/2.0/scripts/
d6afd96
# Add AppStream metadata
d6afd96
install -Dpm 0644 %{SOURCE1} -t %{buildroot}%{_datadir}/metainfo/
d6afd96
d6afd96
%check
d6afd96
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/%{name}.metainfo.xml
d6afd96
d6afd96
%files
d6afd96
%license license.txt
d6afd96
%{_datadir}/gimp/2.0/scripts/*.scm
d6afd96
%{_datadir}/metainfo/%{name}.metainfo.xml
d6afd96
d6afd96
d6afd96
%changelog
d6afd96
* Sun Apr 30 2017 Luya Tshimbalanga <luy@fedoraproject.org> - 0-1
d6afd96
- Initial package