e43b52e
%global pkgname resynthesizer
8fe1947
%global	commit adfa25ab0d11ed27ff301cb7db4b144c4c2fa112
8fe1947
%global	shortcommit %(c=%{commit}; echo ${c:0:7})
8fe1947
%global with_snapshot 1
e43b52e
e43b52e
%global gimpplugindir %(gimptool --gimpplugindir)/plug-ins
e43b52e
%global gimpscriptdir %(gimptool --gimpdatadir)/scripts
e43b52e
e43b52e
Summary: Gimp plug-in for texture synthesis
e43b52e
Name: gimp-resynthesizer
8fe1947
Version: 2.0.3
8fe1947
%if %{with_snapshot}
8fe1947
Release:	2.20190428git%{shortcommit}%{?dist}
8fe1947
%else
8fe1947
Release:	1%{?dist}
8fe1947
%endif
e43b52e
License: GPLv2+
e43b52e
Requires: gimp
e43b52e
BuildRequires:  gcc
e43b52e
BuildRequires: gimp, gimp-devel
e43b52e
BuildRequires: intltool
e43b52e
BuildRequires: automake
e43b52e
BuildRequires: libappstream-glib
46e954f
BuildRequires: python2-devel
46e954f
BuildRequires: %{_bindir}/pathfix.py
e43b52e
URL: https://github.com/bootchk/%{pkgname}
e43b52e
e43b52e
# Source tarball generated as follows
e43b52e
# git clone git@github.com:bootchk/resynthesizer.git
e43b52e
# cd resynthesizer
e43b52e
# git archive --format tar.xz --prefix resynthesizer_$(git rev-parse --short HEAD)/ \
e43b52e
# ... HEAD -o resynthesizer_$(git rev-parse --short HEAD).tar.xz
e43b52e
8fe1947
%if %{with_snapshot}
8fe1947
Source:		%{url}/archive/%{shortcommit}.tar.gz#/%{pkgname}-%{shortcommit}.tar.gz
8fe1947
%else
8fe1947
Source:		%{url}/archive/v%{version}.tar.gz#/%{pkgname}-%{version}.tar.gz
8fe1947
%endif
e43b52e
e43b52e
%description
e43b52e
Resynthesizer is a Gimp plug-in for texture synthesis. Given a sample of a 
e43b52e
texture, it can create more of that texture. This has uses including: 
e43b52e
- Creating more of a texture (including creation of tileable textures)
e43b52e
- Removing objects from images (great for touching up photos)
e43b52e
- Creating themed images (by transfering a texture from one image to another)
e43b52e
e43b52e
%prep
8fe1947
%if %{with_snapshot}
8fe1947
%autosetup -n resynthesizer-%{commit}
8fe1947
%else
8fe1947
%autosetup -n resynthesizer-%{version}
8fe1947
%endif
8fe1947
8fe1947
# Fix all Python shebangs recursively in .
8fe1947
pathfix.py -pni "%{__python2} %{py2_shbang_opts}" . ./PluginScripts/*
8fe1947
  
e43b52e
./autogen.sh
e43b52e
e43b52e
%build
e43b52e
%configure
8fe1947
%make_build
e43b52e
e43b52e
%install
e43b52e
%make_install
8fe1947
mkdir %{buildroot}%{_metainfodir}
8fe1947
cp -v gimp-%{pkgname}.metainfo.xml %{buildroot}%{_metainfodir}
e43b52e
46e954f
# Use the system Python in the shebangs
46e954f
pathfix.py -pn -i %{__python2} %{buildroot}%{gimpplugindir}/plugin-*
46e954f
e43b52e
%check
8fe1947
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
e43b52e
e43b52e
e43b52e
%find_lang %{pkgname}
e43b52e
e43b52e
%files -f %{pkgname}.lang
e43b52e
%license COPYING
e43b52e
%doc README
e43b52e
%{_datadir}/%{pkgname}/*
8fe1947
%{_metainfodir}/*.metainfo.xml
e43b52e
%{gimpplugindir}/plugin-heal*
e43b52e
%{gimpplugindir}/plugin-map*
e43b52e
%{gimpplugindir}/plugin-render*
e43b52e
%{gimpplugindir}/plugin-resynth*
e43b52e
%{gimpplugindir}/plugin-uncrop*
e43b52e
%{gimpplugindir}/resynthesizer*
e43b52e
e43b52e
e43b52e
%changelog
8fe1947
* Thu Sep 26 2019  Petr Viktorin <pviktori@redhat.com> 2.0.3-2.20190428gitadfa25a
8fe1947
* Fix Python shebangs
8fe1947
8fe1947
* Sat Aug 10 2019 Luya Tshimbalanga <luya@fedoraproject.org> - 2.0.3-1.20190428gitadfa25a
8fe1947
- Update to 2.0.3 git snapshot
8fe1947
- Use gimp rpm macros
8fe1947
- Clean up spec file
8fe1947
e43b52e
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-12.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
e43b52e
e43b52e
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-11.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e43b52e
e43b52e
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-10.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e43b52e
e43b52e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-9.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e43b52e
e43b52e
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-8.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
e43b52e
e43b52e
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-7.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
e43b52e
e43b52e
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-6.20160601git787ee5a
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
e43b52e
e43b52e
* Thu Jun 02 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.0-5.20160601git%{shortcommit}
e43b52e
- fix appdata filename everywhere
e43b52e
e43b52e
* Thu Jun 02 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.0-4.20160601git%{shortcommit}
e43b52e
- Fix appdata filename
e43b52e
e43b52e
* Wed Jun 01 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.0-3.20160601git%{shortcommit}
e43b52e
- Add appdata file
e43b52e
e43b52e
* Tue May 24 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.0-2.20160524git%{shortcommit}
e43b52e
- Update the package using git snapshot
e43b52e
e43b52e
* Thu May 19 2016 Mukundan Ragavan <nonamedotc@fedoraproject.org> - 2.0-1
e43b52e
- Update to latest upstream version
e43b52e
- change define flags to global
e43b52e
- minor spec file cleanup
e43b52e
e43b52e
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.16-14
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
e43b52e
e43b52e
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-13
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
e43b52e
e43b52e
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.16-12
e43b52e
- Rebuilt for GCC 5 C++11 ABI change
e43b52e
e43b52e
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-11
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
e43b52e
e43b52e
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-10
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
e43b52e
e43b52e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-9
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e43b52e
e43b52e
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-8
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e43b52e
e43b52e
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-7
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e43b52e
e43b52e
* Tue Apr 03 2012 Nils Philippsen <nils@redhat.com> - 0.16-6
e43b52e
- rebuild against gimp 2.8.0 release candidate
e43b52e
e43b52e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-5
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
e43b52e
e43b52e
* Fri Dec 16 2011 Nils Philippsen <nils@redhat.com> - 0.16-4
e43b52e
- rebuild for GIMP 2.7
e43b52e
e43b52e
* Tue Dec 06 2011 Adam Jackson <ajax@redhat.com> - 0.16-3
e43b52e
- Rebuild for new libpng
e43b52e
e43b52e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
e43b52e
e43b52e
* Sun Aug 02 2009 Ewan Mac Mahon <ewan@macmahon.me.uk> - 0.16-1
e43b52e
- Bump to version 0.16
e43b52e
- Patch makefile to allow Fedora CFLAGS to override defaults.
e43b52e
e43b52e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-5
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
e43b52e
e43b52e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.15-4
e43b52e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e43b52e
e43b52e
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.15-3
e43b52e
- Autorebuild for GCC 4.3
e43b52e
e43b52e
*Sun Aug 19 2007 Ewan Mac Mahon <ewan@macmahon.me.uk> - 0.15-2
e43b52e
Fixed review problems: Spurious comment, License tag, variable style 
e43b52e
build root, ignoring opt flags.
e43b52e
* Mon Jul 30 2007 Ewan Mac Mahon <ewan@macmahon.me.uk> - 0.15-1
e43b52e
Initial Fedora package