ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/fftjet.spec
(Generate patch)

Comparing COMP/CMSDIST/fftjet.spec (file contents):
Revision 1.4 by eulisse, Fri Nov 26 09:15:10 2010 UTC vs.
Revision 1.6 by eulisse, Tue Jan 11 16:48:41 2011 UTC

# Line 9 | Line 9 | Requires: gfortran-macosx
9   %setup -n %n-%realversion
10  
11   %build
12 + # Fake the existance of pkg-config on systems which dont have it.
13 + # This is required because it will still check for its existance even
14 + # if you provide DEPS_CFLAGS and DEPS_LIBS.
15 + touch pkg-config ; chmod +x pkg-config
16   ./configure --enable-shared --disable-dependency-tracking --enable-threads \
17              --prefix=%i F77=`which gfortran` DEPS_CFLAGS=-I$FFTW3_ROOT/include \
18 <            DEPS_LIBS="-L$FFTW3_ROOT/lib -lfftw3"
18 >            DEPS_LIBS="-L$FFTW3_ROOT/lib -lfftw3" PKG_CONFIG=$PWD/pkg-config
19   make %makeprocesses
20  
21   %install
22   make install
23 + # We remove pkg-config files for two reasons:
24 + # * it's actually not required (macosx does not even have it).
25 + # * rpm 4.8 adds a dependency on the system /usr/bin/pkg-config
26 + #   on linux.
27 + # In the case at some point we build a package that can be build
28 + # only via pkg-config we have to think on how to ship our own
29 + # version.
30 + rm -rf %i/lib/pkgconfig
31  
32   %post
33   %{relocateConfig}lib/pkgconfig/fftjet.pc

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines