d35adb
Name:		gimp-fourier-plugin
d35adb
Version:	0.3.2
d35adb
Release:	2%{?dist}
d35adb
Summary:	A simple plug-in to do fourier transform on your image
d35adb
d35adb
Group:		Applications/Multimedia
d35adb
License:	GPLv3+
d35adb
URL:		http://people.via.ecp.fr/~remi/soft/gimp/gimp_plugin_en.php3
d35adb
Source0:	http://people.via.ecp.fr/~remi/soft/gimp/fourier-%{version}.tar.gz
d35adb
# patch0 sent upstream via email. mentioned gnomebug #568351
d35adb
Patch0:		gimp-fourier-plugin.build.patch
d35adb
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d35adb
d35adb
BuildRequires:	gimp-devel
d35adb
BuildRequires:	fftw3-devel
d35adb
Requires:	gimp
d35adb
d35adb
d35adb
%description
d35adb
A simple plug-in to do fourier transform on your image. The major advantage of 
d35adb
this plugin is to be able to work with the transformed image inside GIMP.
d35adb
d35adb
d35adb
%prep
d35adb
%setup -q -n fourier-%{version}
d35adb
%patch0 -p1 -b .build
d35adb
d35adb
# Fix for wrong-file-end-of-line-encoding problem
d35adb
%{__sed} -i 's/\r//' README
d35adb
%{__sed} -i 's/\r//' gpl.txt
d35adb
d35adb
# Fix utf-8 encoding
d35adb
iconv -f ISO-8859-1 -t UTF-8 README > README.utf8
d35adb
d35adb
d35adb
%build
d35adb
export CC="gcc %{optflags}"
d35adb
make %{?_smp_mflags}
d35adb
d35adb
d35adb
%install
d35adb
rm -rf %{buildroot}
d35adb
mkdir -p %{buildroot}/%{_libdir}/gimp/2.0/plug-ins/
d35adb
install fourier %{buildroot}/%{_libdir}/gimp/2.0/plug-ins/
d35adb
d35adb
d35adb
%clean
d35adb
rm -rf %{buildroot}
d35adb
d35adb
d35adb
%files
d35adb
%defattr(-,root,root,-)
d35adb
%doc README.utf8 gpl.txt
d35adb
%{_libdir}/gimp/2.0/plug-ins/fourier
d35adb
d35adb
d35adb
%changelog
d35adb
* Sun Jan 25 2009 Fabian Deutsch <fabian.deutsch at="" gmx.de=""> 0.3.2-2
d35adb
- Fix UTF-8
d35adb
- Using optflags
d35adb
d35adb
* Mon Jan 19 2009 Fabian Deutsch <fabian.deutsch at="" gmx.de=""> 0.3.2-1
d35adb
- Updated to 0.3.2
d35adb
- Includes license note
d35adb
- Small hack around gimptool-2.0 bug.
d35adb
d35adb
* Sun Dec 07 2008 Fabian Deutsch <fabian.deutsch at="" gmx.de=""> 0.3.1-1
d35adb
- Version 0.3.1
d35adb
- Initial.