File gimp-normalmap.spec of Package gimp-normalmap
#
# spec file for package gimp-normalmap
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2013 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: gimp-normalmap
Version: 1.2.3
Release: 0
Summary: Plugin for GIMP providing image conversion into RGB normal maps
License: GPL-2.0+
Group: Productivity/Graphics/Bitmap Editors
Url: http://code.google.com/p/gimp-normalmap/
Source0: http://gimp-normalmap.googlecode.com/files/gimp-normalmap-1.2.3.tar.bz2
#PATCH-FIX-UPSTREAM gimp-normalmap-fix-linker-flags.patch malcolmlewis@opensuse.org -- Missing LIBS linker flags (See http://code.google.com/p/gimp-normalmap/issues/detail?id=18).
Patch0: gimp-normalmap-fix-linker-flags.patch
#PATCH-FIX-UPSTREAM gimp-normalmap-fix-incorrect-fsf-address.patch malcolmlewis@opensuse.org -- Incorrect FSF address (See http://code.google.com/p/gimp-normalmap/issues/detail?id=19).
Patch1: gimp-normalmap-fix-incorrect-fsf-address.patch
BuildRequires: gimp-devel >= 2.8
BuildRequires: glew-devel
%if 0%{?suse_version} >= 1230
BuildRequires: glu-devel
%endif
BuildRequires: gtk2-devel
BuildRequires: gtkglext-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
This is a plugin for GIMP version 2.8.x. It allows you to convert images into RGB normal
maps for use in per-pixel lighting applications. The goal is to completely clone NVIDIA's
photoshop plugin, with a few new useful features.
%package -n gimp-plugin-normalmap
Summary: Plugin for GIMP providing image conversion into RGB normal maps
Group: Productivity/Graphics/Bitmap Editors
Requires: gimp >= 2.8
%description -n gimp-plugin-normalmap
This is a plugin for GIMP version 2.8.x. It allows you to convert images into RGB normal
maps for use in per-pixel lighting applications. The goal is to completely clone NVIDIA's
photoshop plugin, with a few new useful features.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
install -D -m 0755 normalmap %{buildroot}%{_libdir}/gimp/2.0/plug-ins/normalmap
%files -n gimp-plugin-normalmap
%defattr(-,root,root,-)
%doc COPYING README
%{_libdir}/gimp/2.0/plug-ins/normalmap
%changelog