diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..6cb106d --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +resynthesizer-0.16.tar.gz +/resynthesizer_04ac216.tar.xz +/resynthesizer_787ee5a.tar.xz diff --git a/dead.package b/dead.package deleted file mode 100644 index 3f6943e..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -gimp-resynthesizer fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1674969 diff --git a/gimp-resynthesizer-makefile.patch b/gimp-resynthesizer-makefile.patch new file mode 100644 index 0000000..0d84c9c --- /dev/null +++ b/gimp-resynthesizer-makefile.patch @@ -0,0 +1,21 @@ +--- Makefile 2008-03-10 06:52:45.000000000 +0000 ++++ Makefile-new 2009-01-25 17:48:59.000000000 +0000 +@@ -5,7 +5,8 @@ + GIMP_LDFLAGS=`$(GIMPTOOL) --libs` + GIMP_CFLAGS=`$(GIMPTOOL) --cflags` + +-CFLAGS=$(GIMP_CFLAGS) -O3 -fno-common -ffast-math -frename-registers -fomit-frame-pointer ++CFLAGS=-O3 -fno-common -ffast-math -frename-registers -fomit-frame-pointer ++MYCFLAGS=$(GIMP_CFLAGS) $(CFLAGS) + + LDFLAGS=$(GIMP_LDFLAGS) -lm + +@@ -30,7 +31,7 @@ + @echo + + resynth: resynth.cc +- $(CC) $(CFLAGS) -o $@ resynth.cc $(LDFLAGS) ++ $(CC) $(MYCFLAGS) -o $@ resynth.cc $(LDFLAGS) + + clean: + -rm -f *~ *.o core resynth diff --git a/gimp-resynthesizer.spec b/gimp-resynthesizer.spec new file mode 100644 index 0000000..b72713e --- /dev/null +++ b/gimp-resynthesizer.spec @@ -0,0 +1,164 @@ +%global pkgname resynthesizer +%global shortcommit 787ee5a + +%global gimpplugindir %(gimptool --gimpplugindir)/plug-ins +%global gimpscriptdir %(gimptool --gimpdatadir)/scripts + +Summary: Gimp plug-in for texture synthesis +Name: gimp-resynthesizer +Version: 2.0 +Release: 12.20160601git%{shortcommit}%{?dist} +License: GPLv2+ +Requires: gimp +BuildRequires: gcc +BuildRequires: gimp, gimp-devel +BuildRequires: intltool +BuildRequires: automake +BuildRequires: libappstream-glib +URL: https://github.com/bootchk/%{pkgname} + +# Source tarball generated as follows +# git clone git@github.com:bootchk/resynthesizer.git +# cd resynthesizer +# git archive --format tar.xz --prefix resynthesizer_$(git rev-parse --short HEAD)/ \ +# ... HEAD -o resynthesizer_$(git rev-parse --short HEAD).tar.xz + +Source: %{pkgname}_%{shortcommit}.tar.xz +## Patch: gimp-resynthesizer-makefile.patch + +%description +Resynthesizer is a Gimp plug-in for texture synthesis. Given a sample of a +texture, it can create more of that texture. This has uses including: +- Creating more of a texture (including creation of tileable textures) +- Removing objects from images (great for touching up photos) +- Creating themed images (by transfering a texture from one image to another) + +%prep +%setup -q -n resynthesizer_%{shortcommit} + +./autogen.sh + +%build +%configure +make %{?_smp_mflags} V=1 + +%install +%make_install +mkdir %{buildroot}/%{_datadir}/appdata +cp -v gimp-%{pkgname}.metainfo.xml %{buildroot}/%{_datadir}/appdata/ + +%check +appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.metainfo.xml + + +%find_lang %{pkgname} + +%files -f %{pkgname}.lang +%license COPYING +%doc README +%{_datadir}/%{pkgname}/* +%{_datadir}/appdata/*.metainfo.xml +%{gimpplugindir}/plugin-heal* +%{gimpplugindir}/plugin-map* +%{gimpplugindir}/plugin-render* +%{gimpplugindir}/plugin-resynth* +%{gimpplugindir}/plugin-uncrop* +%{gimpplugindir}/resynthesizer* + + +%changelog +* Thu Jul 25 2019 Fedora Release Engineering - 2.0-12.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Fedora Release Engineering - 2.0-11.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 2.0-10.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 2.0-9.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Wed Aug 02 2017 Fedora Release Engineering - 2.0-8.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Wed Jul 26 2017 Fedora Release Engineering - 2.0-7.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Feb 10 2017 Fedora Release Engineering - 2.0-6.20160601git787ee5a +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Thu Jun 02 2016 Mukundan Ragavan - 2.0-5.20160601git%{shortcommit} +- fix appdata filename everywhere + +* Thu Jun 02 2016 Mukundan Ragavan - 2.0-4.20160601git%{shortcommit} +- Fix appdata filename + +* Wed Jun 01 2016 Mukundan Ragavan - 2.0-3.20160601git%{shortcommit} +- Add appdata file + +* Tue May 24 2016 Mukundan Ragavan - 2.0-2.20160524git%{shortcommit} +- Update the package using git snapshot + +* Thu May 19 2016 Mukundan Ragavan - 2.0-1 +- Update to latest upstream version +- change define flags to global +- minor spec file cleanup + +* Wed Feb 03 2016 Fedora Release Engineering - 0.16-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Jun 17 2015 Fedora Release Engineering - 0.16-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Sat May 02 2015 Kalev Lember - 0.16-12 +- Rebuilt for GCC 5 C++11 ABI change + +* Sat Aug 16 2014 Fedora Release Engineering - 0.16-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild + +* Sat Jun 07 2014 Fedora Release Engineering - 0.16-10 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sat Aug 03 2013 Fedora Release Engineering - 0.16-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild + +* Wed Feb 13 2013 Fedora Release Engineering - 0.16-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild + +* Thu Jul 19 2012 Fedora Release Engineering - 0.16-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild + +* Tue Apr 03 2012 Nils Philippsen - 0.16-6 +- rebuild against gimp 2.8.0 release candidate + +* Fri Jan 13 2012 Fedora Release Engineering - 0.16-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild + +* Fri Dec 16 2011 Nils Philippsen - 0.16-4 +- rebuild for GIMP 2.7 + +* Tue Dec 06 2011 Adam Jackson - 0.16-3 +- Rebuild for new libpng + +* Tue Feb 08 2011 Fedora Release Engineering - 0.16-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild + +* Sun Aug 02 2009 Ewan Mac Mahon - 0.16-1 +- Bump to version 0.16 +- Patch makefile to allow Fedora CFLAGS to override defaults. + +* Fri Jul 24 2009 Fedora Release Engineering - 0.15-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + +* Tue Feb 24 2009 Fedora Release Engineering - 0.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild + +* Mon Feb 18 2008 Fedora Release Engineering - 0.15-3 +- Autorebuild for GCC 4.3 + +*Sun Aug 19 2007 Ewan Mac Mahon - 0.15-2 +Fixed review problems: Spurious comment, License tag, variable style +build root, ignoring opt flags. +* Mon Jul 30 2007 Ewan Mac Mahon - 0.15-1 +Initial Fedora package diff --git a/sources b/sources new file mode 100644 index 0000000..4c4b070 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +d883695f6ae2f23d310a1b53e17ec184 resynthesizer_787ee5a.tar.xz