Blame gimp-wavelet-decompose.spec

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