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 21:52:27 UTC 2005


On Thu, 21 Apr 2005 16:27:06 -0500, Quentin Spencer wrote:

>>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).

Cut'n'paste error on my side here.  Wanted to add this comment to
one of your spec files, where you only did

Requires: %{name} = %{version}

;)


> Can someone explain the difference between %{name} and %name ?

Curly braces ensure that you can concatenate macros and other strings of
characters without unwanted side-effects.

> >>%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.
> >  
> >
> Any other suggestions for dealing with files in buildroot that you don't 
> want in the package?

$RPM_BUILD_DIR is not equal to $RPM_BUILD_ROOT. The former is the
directory where the source code is extracted and compiled. The latter is
where the files are installed prior to packaging them into the binary rpm.
Inside $RPM_BUILD_ROOT you can delete (or %exclude) as much as you like.




More information about the fedora-extras-commits mailing list