1 |
|
### RPM external lapack 3.3.1 |
2 |
< |
Source0: http://www.netlib.org/lapack/lapack.tgz |
3 |
< |
Source1: http://www.netlib.org/lapack/manpages.tgz |
2 |
> |
Source0: http://www.netlib.org/lapack/lapack-%realversion.tgz |
3 |
|
|
4 |
|
Requires: cmake |
5 |
|
|
6 |
< |
%if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true" |
6 |
> |
%if "%(case %cmsplatf in (osx*_*_gcc421) echo true ;; (*) echo false ;; esac)" == "true" |
7 |
|
Requires: gfortran-macosx |
8 |
|
%endif |
9 |
|
|
10 |
|
%prep |
11 |
|
%setup -q -n lapack-%{realversion} |
13 |
– |
%setup -q -D -T -a 1 -n lapack-%{realversion} |
12 |
|
|
13 |
|
%build |
14 |
|
# We remove the testing directory because it seems |
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 |