File gimp-fourier.spec of Package gimp-fourier

#
# spec file for package gimp-fourier
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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-fourier
Version:        0.4.3
Release:        0
License:        GPL-3.0+
Summary:        GIMP Plug-in to do Fourier Transform
Url:            http://people.via.ecp.fr/~remi/soft/gimp/gimp_plugin_en.php3#fourier
Group:          Productivity/Graphics/Bitmap Editors
Source0:        http://people.via.ecp.fr/~remi/soft/gimp/fourier-%{version}.tar.gz
# PATCH-FIX-OPENSUSE gimp-fourier-makefile.patch lazy.kent@opensuse.org -- fix Makefile options
Patch0:         gimp-fourier-makefile.patch
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(gimp-2.0)
Requires:       gimp
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
A simple plug-in to do fourier transform on your image. The major
advantage of this plugin is to be able to work with the transformed
image inside GIMP. You can so draw or apply filters in fourier space,
and get the modified image with an inverse FFT.

%prep
%setup -qn fourier-%{version}
%patch0
sed -i 's/\r$//g' README
chmod -x README

%build
rm -f fourier
make %{?_smp_mflags} OPTFLAGS="%{optflags}"

%install
install -Dm 755 fourier \
    %{buildroot}%{_libdir}/gimp/2.0/plug-ins/fourier

%files
%defattr(-,root,root,-)
%doc README README.Moire
%{_libdir}/gimp/2.0/plug-ins/fourier

%changelog
openSUSE Build Service is sponsored by