rpms/fftw3/devel fftw3.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Michael Schwendt bugs.michael at gmx.net
Thu Apr 21 20:58:38 UTC 2005


On Wed, 20 Apr 2005 14:30:24 -0400, Quentin Spencer wrote:

> Author: qspencer
> 
> Update of /cvs/extras/rpms/fftw3/devel

> Name:           fftw3
> Version:        3.0.1
> Release:        2
> Summary:        Fast Fourier Transform library
> %define real_name fftw
> 
> Group:          System Environment/Libraries
> License:        GPL
> URL:            http://www.fftw.org/
> Source0:        ftp://ftp.fftw.org/pub/fftw/fftw-%{version}.tar.gz
> BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
> 
> BuildRequires:  gcc-g77

gcc-g77 does not exist in Fedora Core Development.

> %package        devel
> Summary:        Headers, libraries and docs for the FFTW library.
> Group:          Development/Libraries
> Requires:       %{name} = %{version}-%{release}

Requires: %name = %{version}-%{release}

would be safer and ensure that -devel package and main package are really
always in sync (which is a good thing because the -devel package defines
an API and depends on the main package).

> %install
> rm -rf ${RPM_BUILD_ROOT}
> pushd double
> 	make install DESTDIR=${RPM_BUILD_ROOT}
> 	cp -a AUTHORS COPYING COPYRIGHT ChangeLog NEWS README* TODO ../
> 	cp -a doc/ ../
> popd
> pushd single
> 	make install DESTDIR=${RPM_BUILD_ROOT}
> popd
> rm -f doc/Makefile*

Hint: Be careful here! Removing files from $RPM_BUILD_DIR breaks
short-circuit installs. See Fedora Extras "make install-short" and also
"rpmbuild -bi --short-circuit fftw3.spec". Very useful stuff if you ever
need to debug %install sections and %files lists.

> %post devel
> /sbin/install-info %{_infodir}/%{name}.info.gz %{_infodir}/dir
> 
> %preun devel
> /sbin/install-info --delete %{_infodir}/%{name}.info.gz %{_infodir}/dir

Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info

are missing. Adding 

   2>/dev/null || :

to the end of post install-info lines would be added safety.

> %files devel
> %defattr(-,root,root,-)
> %doc doc/*.pdf doc/html/* doc/FAQ/fftw-faq.html/
> %doc %{_mandir}/man?/*
> %doc %{_infodir}/*.info*

Hint: %_mandir and %_infodir are marked as %doc implicitly.




More information about the fedora-extras-commits mailing list