Browse Source

gimp-focusblur-plugin package creation

Signed-off-by: guibuilder_pel7x64builder0 <guibuilder@powerel.org>
master
guibuilder_pel7x64builder0 6 years ago
parent
commit
1844e87539
  1. 15
      SOURCES/gimp-focusblur-plugin-fix-gettext.patch
  2. 210
      SOURCES/gimp-focusblur-plugin-include-main-glib.patch
  3. 81
      SPECS/gimp-focusblur-plugin.spec

15
SOURCES/gimp-focusblur-plugin-fix-gettext.patch

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
diff -uNr focusblur-3.2.6.orig/libgimp/gettext.h focusblur-3.2.6/libgimp/gettext.h
--- focusblur-3.2.6.orig/libgimp/gettext.h 2007-04-19 14:06:49.000000000 +0200
+++ focusblur-3.2.6/libgimp/gettext.h 2016-08-13 17:55:28.468760114 +0200
@@ -5,6 +5,10 @@
#include <glib.h>
+#include <libintl.h>
+#define _(String) gettext (String)
+#define gettext_noop(String) String
+#define N_(String) gettext_noop (String)
#define INIT_I18N() G_STMT_START{ \
bindtextdomain (GETTEXT_PACKAGE, gimp_locale_directory ()); \
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8"); \
Binary files focusblur-3.2.6.orig/libgimp/.gettext.h.swp and focusblur-3.2.6/libgimp/.gettext.h.swp differ

210
SOURCES/gimp-focusblur-plugin-include-main-glib.patch

@ -0,0 +1,210 @@ @@ -0,0 +1,210 @@
diff -uNr focusblur-3.2.6.orig/libgimp/gettext.h focusblur-3.2.6/libgimp/gettext.h
--- focusblur-3.2.6.orig/libgimp/gettext.h 2007-04-19 14:06:49.000000000 +0200
+++ focusblur-3.2.6/libgimp/gettext.h 2016-08-13 17:45:13.116158292 +0200
@@ -3,7 +3,7 @@
#ifdef ENABLE_NLS
-#include <glib/gi18n.h>
+#include <glib.h>
#define INIT_I18N() G_STMT_START{ \
bindtextdomain (GETTEXT_PACKAGE, gimp_locale_directory ()); \
diff -uNr focusblur-3.2.6.orig/src/aaa.h focusblur-3.2.6/src/aaa.h
--- focusblur-3.2.6.orig/src/aaa.h 2008-10-13 17:13:10.000000000 +0200
+++ focusblur-3.2.6/src/aaa.h 2016-08-13 17:43:13.182532655 +0200
@@ -19,8 +19,7 @@
#ifndef __AAA_H__
#define __AAA_H__
-#include <glib/gmacros.h>
-#include <glib/gtypes.h>
+#include <glib.h>
G_BEGIN_DECLS
diff -uNr focusblur-3.2.6.orig/src/brush.h focusblur-3.2.6/src/brush.h
--- focusblur-3.2.6.orig/src/brush.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/brush.h 2016-08-13 17:44:26.891760912 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_BRUSH_H__
#define __FOCUSBLUR_BRUSH_H__
-#include <glib/gtypes.h>
+#include <glib.h>
#include "focusblurtypes.h"
G_BEGIN_DECLS
diff -uNr focusblur-3.2.6.orig/src/depthmap.h focusblur-3.2.6/src/depthmap.h
--- focusblur-3.2.6.orig/src/depthmap.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/depthmap.h 2016-08-13 17:44:53.749572833 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_DEPTHMAP_H__
#define __FOCUSBLUR_DEPTHMAP_H__
-#include <glib/gtypes.h>
+#include <glib.h>
#include "focusblurtypes.h"
#include "focusblurenums.h"
diff -uNr focusblur-3.2.6.orig/src/diffusion.h focusblur-3.2.6/src/diffusion.h
--- focusblur-3.2.6.orig/src/diffusion.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/diffusion.h 2016-08-13 17:44:15.291410229 +0200
@@ -23,7 +23,7 @@
#define __FOCUSBLUR_DIFFUSION_H__
-#include <glib/gtypes.h>
+#include <glib.h>
#include "focusblur.h"
#include "focusblurtypes.h"
diff -uNr focusblur-3.2.6.orig/src/fftblurbuffer.h focusblur-3.2.6/src/fftblurbuffer.h
--- focusblur-3.2.6.orig/src/fftblurbuffer.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/fftblurbuffer.h 2016-08-13 17:44:42.194223511 +0200
@@ -28,8 +28,7 @@
#endif
#include <fftw3.h>
-#include <glib/gmacros.h>
-#include <glib/gtypes.h>
+#include <glib.h>
#include <gtk/gtkstyle.h>
#include <libgimp/gimptypes.h>
#include <libgimpwidgets/gimpwidgetstypes.h>
diff -uNr focusblur-3.2.6.orig/src/fftblur.h focusblur-3.2.6/src/fftblur.h
--- focusblur-3.2.6.orig/src/fftblur.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/fftblur.h 2016-08-13 17:44:58.889728222 +0200
@@ -23,8 +23,7 @@
#define __FOCUSBLUR_FFTBLUR_H__
-#include <glib/gmacros.h>
-#include <glib/gtypes.h>
+#include <glib.h>
#include <libgimpwidgets/gimpwidgetstypes.h>
#include "focusblurparam.h"
diff -uNr focusblur-3.2.6.orig/src/fftblurproc.h focusblur-3.2.6/src/fftblurproc.h
--- focusblur-3.2.6.orig/src/fftblurproc.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/fftblurproc.h 2016-08-13 17:44:49.022429930 +0200
@@ -23,8 +23,7 @@
#define __FOCUSBLUR_FFTBLUR_PROC_H__
-#include <glib/gmacros.h>
-#include <glib/gtypes.h>
+#include <glib.h>
#include "focusblurtypes.h"
diff -uNr focusblur-3.2.6.orig/src/focusblur.h focusblur-3.2.6/src/focusblur.h
--- focusblur-3.2.6.orig/src/focusblur.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/focusblur.h 2016-08-13 17:44:38.196102646 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_H__
#define __FOCUSBLUR_H__
-#include <glib/gmacros.h>
+#include <glib.h>
G_BEGIN_DECLS
diff -uNr focusblur-3.2.6.orig/src/focusblurparam.h focusblur-3.2.6/src/focusblurparam.h
--- focusblur-3.2.6.orig/src/focusblurparam.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/focusblurparam.h 2016-08-13 17:43:41.657393461 +0200
@@ -22,8 +22,7 @@
#ifndef __FOCUSBLUR_PARAM_H__
#define __FOCUSBLUR_PARAM_H__
-#include <glib/gmacros.h>
-#include <glib/gtypes.h>
+#include <glib.h>
#include <gtk/gtkstyle.h>
#include <libgimp/gimptypes.h>
diff -uNr focusblur-3.2.6.orig/src/focusblurrc.c focusblur-3.2.6/src/focusblurrc.c
--- focusblur-3.2.6.orig/src/focusblurrc.c 2009-07-31 03:54:51.000000000 +0200
+++ focusblur-3.2.6/src/focusblurrc.c 2016-08-13 17:44:31.571902394 +0200
@@ -24,8 +24,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <unistd.h>
-#include <glib/gstdio.h>
-#include <glib/gprintf.h>
+#include <glib.h>
#include <libgimp/gimp.h>
#include "libgimp/stdplugins-intl.h"
diff -uNr focusblur-3.2.6.orig/src/focusblurstock.h focusblur-3.2.6/src/focusblurstock.h
--- focusblur-3.2.6.orig/src/focusblurstock.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/focusblurstock.h 2016-08-13 17:43:19.791732454 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_STOCK_H__
#define __FOCUSBLUR_STOCK_H__
-#include <glib/gtypes.h>
+#include <glib.h>
G_BEGIN_DECLS
diff -uNr focusblur-3.2.6.orig/src/focusblurtypes.h focusblur-3.2.6/src/focusblurtypes.h
--- focusblur-3.2.6.orig/src/focusblurtypes.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/focusblurtypes.h 2016-08-13 17:44:12.275319051 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_TYPES_H__
#define __FOCUSBLUR_TYPES_H__
-#include <glib/gmacros.h>
+#include <glib.h>
G_BEGIN_DECLS
diff -uNr focusblur-3.2.6.orig/src/interface.h focusblur-3.2.6/src/interface.h
--- focusblur-3.2.6.orig/src/interface.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/interface.h 2016-08-13 17:44:34.526991727 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_INTERFACE_H__
#define __FOCUSBLUR_INTERFACE_H__
-#include <glib/gtypes.h>
+#include <glib.h>
#include "focusblurtypes.h"
diff -uNr focusblur-3.2.6.orig/src/render.h focusblur-3.2.6/src/render.h
--- focusblur-3.2.6.orig/src/render.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/render.h 2016-08-13 17:43:36.221229123 +0200
@@ -24,7 +24,7 @@
#include "config.h"
-#include <glib/gtypes.h>
+#include <glib.h>
//#include <libgimp/gimp.h>
#include <libgimp/gimpui.h>
diff -uNr focusblur-3.2.6.orig/src/shine.h focusblur-3.2.6/src/shine.h
--- focusblur-3.2.6.orig/src/shine.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/shine.h 2016-08-13 17:44:20.250560146 +0200
@@ -22,7 +22,7 @@
#ifndef __FOCUSBLUR_SHINE_H__
#define __FOCUSBLUR_SHINE_H__
-#include <glib/gtypes.h>
+#include <glib.h>
#include <libgimp/gimptypes.h>
#include "focusblurtypes.h"
diff -uNr focusblur-3.2.6.orig/src/source.h focusblur-3.2.6/src/source.h
--- focusblur-3.2.6.orig/src/source.h 2009-01-23 14:06:54.000000000 +0100
+++ focusblur-3.2.6/src/source.h 2016-08-13 17:44:24.011673846 +0200
@@ -24,7 +24,7 @@
#include "config.h"
-#include <glib/gtypes.h>
+#include <glib.h>
#include <libgimp/gimptypes.h>
#include "focusblurtypes.h"

81
SPECS/gimp-focusblur-plugin.spec

@ -0,0 +1,81 @@ @@ -0,0 +1,81 @@
%global optflags %(echo "%{optflags} -DGIMP_DISABLE_DEPRECATED")
%global plugin_name focusblur
%global gimp_ver 2.4

Name: gimp-%{plugin_name}-plugin
Version: 3.2.6
Release: 8%{?dist}
Summary: Simulate an out-of-focus blur

License: GPLv2+
URL: http://registry.gimp.org/node/1444
Source0: http://registry.gimp.org/files/%{plugin_name}-%{version}.tar.bz2

# Replace all #include <glib/*.h> with #include <glib.h>
Patch0: %{name}-include-main-glib.patch
# Define _() and N() along with #include <libintl.h>
Patch1: %{name}-fix-gettext.patch

BuildRequires: gcc
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: make
BuildRequires: gimp-devel >= %{gimp_ver}
BuildRequires: %{_bindir}/gdk-pixbuf-csource
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: fftw3-devel
BuildRequires: intltool
BuildRequires: gettext-devel
Requires: gimp%{?_isa} >= %{gimp_ver}

%description
Focus Blur plug-in is blurring effect, a kind of called DoF. This software
makes a out of focus with luminosity and depth, like a sight or lenses. It
can be used with depth map, depth fakes and shine effect. Also it can work
as simple and applicable blur.

%prep
%autosetup -n %{plugin_name}-%{version} -p1
# Change name of gettext files to our own name
sed -i -e "/GETTEXT_PACKAGE/s/gimp20-%{plugin_name}/%{name}/" configure.ac configure

%build
autoreconf -vfi
# Link with math explicitly
# /usr/bin/ld: diffusion.o: undefined reference to symbol 'expf@@GLIBC_2.2.5'
%configure LIBS=-lm
%make_build

%install
%make_install
%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%doc ChangeLog
%{_libdir}/gimp/2.0/plug-ins/%{plugin_name}

%changelog
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Tue Jul 31 2018 Florian Weimer <fweimer@redhat.com> - 3.2.6-7
- Rebuild with fixed binutils

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.2.6-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Aug 13 2016 Igor Gnatenko <ignatenko@redhat.com> - 3.2.6-1
- Initial package
Loading…
Cancel
Save