Blame gimp-luminosity-masks.spec

a8be8d
%global		addon luminosity-masks
a8be8d
a8be8d
Name:		gimp-%{addon}
a8be8d
Version:	0
9b8612
Release:	7%{?dist}
a8be8d
Summary:	Luminosity mask channels plug-in for Gimp
a8be8d
License:	GPLv2+
a8be8d
URL:		http://registry.gimp.org/node/28644
a8be8d
Source0:	http://registry.gimp.org/files/sg-%{addon}.scm
a8be8d
Source1:	%{name}.metainfo.xml
a8be8d
Source2:	gpl-2.0.txt
a8be8d
%if 0%{?fedora}
a8be8d
BuildRequires:	libappstream-glib
a8be8d
%endif
a8be8d
Requires:	gimp
a8be8d
BuildArch:	noarch
a8be8d
a8be8d
%description
a8be8d
Script-Fu script generating a full set of Light, Dark, and 
a8be8d
Midtone masks as channels for your image.
a8be8d
a8be8d
%prep
a8be8d
# Copy license
a8be8d
cp -p %{SOURCE2} .
a8be8d
a8be8d
%build
a8be8d
## Nothing to build.
a8be8d
a8be8d
%install
a8be8d
%if 0%{?epel}
a8be8d
mkdir -p %{buildroot}%{_datadir}/gimp/2.0/scripts/
a8be8d
%endif
a8be8d
a8be8d
install -Dpm 0644 %{SOURCE0} -t %{buildroot}%{_datadir}/gimp/2.0/scripts/
a8be8d
a8be8d
%if 0%{?fedora}
a8be8d
# Add AppStream metadata
a8be8d
install -Dpm 0644 %{SOURCE1} -t %{buildroot}%{_datadir}/metainfo/
a8be8d
a8be8d
%check
a8be8d
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/%{name}.metainfo.xml
a8be8d
%endif
a8be8d
a8be8d
%files
a8be8d
%license gpl-2.0.txt
a8be8d
%{_datadir}/gimp/2.0/scripts/*.scm
a8be8d
%if 0%{?fedora}
a8be8d
%{_datadir}/metainfo/%{name}.metainfo.xml
a8be8d
%endif
a8be8d
a8be8d
%changelog
9b8612
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-7
9b8612
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9b8612
5b5cd2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-6
5b5cd2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5b5cd2
385836
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-5
385836
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
385836
ae82ff
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-4
ae82ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ae82ff
a8be8d
* Sat Jul 29 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 0-3
a8be8d
- Renames licensing file
a8be8d
- Adds conditional for EPEL7 build
a8be8d
a8be8d
* Sat Jul 29 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 0-2
a8be8d
- Fixes licensing
a8be8d
- Uses newer upstream appstream guideline
a8be8d
a8be8d
* Fri Jul 28 2017 Luya Tshimbalanga <luya@fedoraproject.org> - 0-1
a8be8d
- Initial package