fftw3/fftw3.spec
OBS User autobuild 62823b7691 Accepting request 38545 from multimedia:libs
Copy from multimedia:libs/fftw3 based on submit request 38545 from user plater

OBS-URL: https://build.opensuse.org/request/show/38545
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/fftw3?expand=0&rev=9
2010-04-22 23:27:15 +00:00

173 lines
4.6 KiB
RPMSpec

#
# spec file for package fftw3 (Version 3.2.2)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: fftw3
BuildRequires: fdupes gcc-fortran pkgconfig
Summary: Discrete Fourier Transform (DFT) C Subroutine Library
Version: 3.2.2
Release: 2
License: GPLv2+
Group: Productivity/Scientific/Math
Source: fftw-%{version}.tar.bz2
# Patch: fftw-%{version}.diff
Url: http://www.fftw.org
AutoReqProv: on
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Requires(pre): %install_info_prereq
%description
FFTW is a C subroutine library for computing the Discrete Fourier
Transform (DFT) in one or more dimensions, of both real and complex
data, and of arbitrary input size.
Authors:
--------
Matteo Frigo <athena@fftw.org>
Stevenj G. Johnson <stevenj@alum.mit.edu>
%package devel
License: GPLv2+
Summary: Include Files and Libraries mandatory for Development
Group: Productivity/Scientific/Math
Requires: fftw3 = %{version} glibc-devel
Provides: fftw-devel
%description devel
This package contains all necessary include files and libraries needed
to develop applications that require these.
Authors:
--------
Matteo Frigo <athena@fftw.org>
Stevenj G. Johnson <stevenj@alum.mit.edu>
%package threads
License: GPLv2+
Summary: Discrete Fourier Transform (DFT) C subroutine library
Group: Productivity/Scientific/Math
Requires: fftw3 = %{version}
%description threads
FFTW is a C subroutine library for computing the Discrete Fourier
Transform (DFT) in one or more dimensions, of both real and complex
data, and of arbitrary input size.
Authors:
--------
Matteo Frigo <athena@fftw.org>
Stevenj G. Johnson <stevenj@alum.mit.edu>
%package threads-devel
License: GPLv2+
Summary: Discrete Fourier Transform (DFT) C subroutine library
Group: Productivity/Scientific/Math
Requires: fftw3-threads = %{version}
Requires: fftw3-devel = %{version} glibc-devel
%description threads-devel
FFTW is a C subroutine library for computing the Discrete Fourier
Transform (DFT) in one or more dimensions, of both real and complex
data, and of arbitrary input size.
Authors:
--------
Matteo Frigo <athena@fftw.org>
Stevenj G. Johnson <stevenj@alum.mit.edu>
%prep
%setup -q -n fftw-%{version}
# %patch
# autoreconf --force --install
%build
%configure --enable-shared --enable-threads --disable-static
make %{?jobs:-j %jobs}
%install
make DESTDIR=$RPM_BUILD_ROOT install
# remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.*a
# hack to also compile/install single-precision version:
make distclean
%configure --enable-shared --enable-threads --enable-float --disable-static
make %{?jobs:-j %jobs}
make DESTDIR=$RPM_BUILD_ROOT install
# remove unneeded files
rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.*a
# gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*.info*
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
# remove Makefiles in doc directory at last
find doc -name 'Makefile*' | xargs rm
%fdupes -s doc
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/fftw3.info.gz
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/fftw3.info.gz
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post threads -p /sbin/ldconfig
%postun threads -p /sbin/ldconfig
%clean
test "$RPM_BUILD_ROOT" != "/" -a -d "$RPM_BUILD_ROOT" && rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%{_libdir}/libfftw3.so.*
%{_libdir}/libfftw3f.so.*
%files devel
%defattr(-,root,root)
%doc AUTHORS CONVENTIONS COPYING COPYRIGHT ChangeLog INSTALL NEWS README TODO
%doc doc/*
%doc %{_mandir}/man?/*
%{_infodir}/*.info*
%{_includedir}/*
%{_libdir}/libfftw3.so
%{_libdir}/libfftw3f.so
%{_libdir}/pkgconfig/*.pc
%{_bindir}/*
%files threads
%defattr(-,root,root)
%{_libdir}/libfftw3_threads.so.*
%{_libdir}/libfftw3f_threads.so.*
%files threads-devel
%defattr(-,root,root)
%{_libdir}/libfftw3_threads.so
%{_libdir}/libfftw3f_threads.so
%changelog