From 8da90b68287902dfce043cbfcf331584e3721c9d Mon Sep 17 00:00:00 2001 From: guibuilder_pel7x64builder0 Date: Thu, 18 Jul 2019 18:14:54 +0200 Subject: [PATCH] gimp-layer-via-copy-cut package creation Signed-off-by: guibuilder_pel7x64builder0 --- SOURCES/gimp-layer-via-copy-cut.metainfo.xml | 11 +++ SPECS/gimp-layer-via-copy-cut.spec | 99 ++++++++++++++++++++ 2 files changed, 110 insertions(+) create mode 100644 SOURCES/gimp-layer-via-copy-cut.metainfo.xml create mode 100644 SPECS/gimp-layer-via-copy-cut.spec diff --git a/SOURCES/gimp-layer-via-copy-cut.metainfo.xml b/SOURCES/gimp-layer-via-copy-cut.metainfo.xml new file mode 100644 index 0000000..c98320d --- /dev/null +++ b/SOURCES/gimp-layer-via-copy-cut.metainfo.xml @@ -0,0 +1,11 @@ + + +​ gimp-layer-via-copy-cut + gimp.desktop + Layer via Copy/Cut + Copy and move the selected area to a new layer in the same position. + http://some-gimp-plugins.com/contents/en/ + http://registry.gimp.org/node/26396 + CC0-1.0 + GPL-3.0+ + diff --git a/SPECS/gimp-layer-via-copy-cut.spec b/SPECS/gimp-layer-via-copy-cut.spec new file mode 100644 index 0000000..0f15374 --- /dev/null +++ b/SPECS/gimp-layer-via-copy-cut.spec @@ -0,0 +1,99 @@ +%global addon layer-via-copy-cut + +Name: gimp-%{addon} +Version: 1.6 +Release: 14%{?dist} + +Summary: Layer via copy/cut plug-in for GIMP +License: GPLv3+ +URL: http://some-gimp-plugins.com/contents/en/ +Source0: http://some-gimp-plugins.com/contents/en/extensions/002/%{addon}.zip +Source1: %{name}.metainfo.xml +Source2: LICENSE.txt + +BuildRequires: python2-devel +# Needed to resolve shebang issue +BuildRequires: /usr/bin/pathfix.py +%if 0%{?fedora} >= 21 +BuildRequires: libappstream-glib +%endif +Requires: gimp + +%description +Copy and move the selected area to a new layer in the same position. + +# Upstream changed plugins path and this package is no longer noarch +%global debug_package %{nil} +%prep +%autosetup -c %{name} +cp -p %{SOURCE2} . + +# Fix Python shebangs for lessen Fedora release +pathfix.py -pni "%{__python2} %{py2_shbang_opts}" %{addon}.py + +%build + +%install +install -Dpm 0755 %{addon}.py -t %{buildroot}%{_libdir}/gimp/2.0/plug-ins/ + + +%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 +%license LICENSE.txt +#%%doc info.txt changelog.txt +%{_libdir}/gimp/2.0/plug-ins/%{addon}.py* +%if 0%{?fedora} >= 21 +#AppStream metadata +%{_datadir}/appdata/%{name}.metainfo.xml +%endif + +%changelog +* Mon Apr 15 2019 Luya Tshimbalanga - 1.6-14 +- Apply sheband fix for Fedora 30 and up + +* Tue Mar 19 2019 Luya Tshimbalanga - 1.6-13 +- Revert to Python 2 dependency + +* Thu Feb 14 2019 Fedora Release Engineering - 1.6-12 +- Switch to Python 3 as dependency + +* Thu Jan 31 2019 Fedora Release Engineering - 1.6-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 1.6-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Thu Mar 01 2018 Iryna Shcherbina - 1.6-9 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Wed Feb 07 2018 Fedora Release Engineering - 1.6-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 1.6-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 1.6-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 1.6-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Sep 13 2016 Luya Tshimbalanga - 1.6-4 +- Fix plug-ins path due to upstream change +- Silence complain about empty debugging file + +* Sun May 29 2016 Luya Tshimbalanga - 1.6-2 +- Include license file + +* Thu Apr 21 2016 Luya Tshimbalanga - 1.6-1 +- Initial build