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 |