1 |
< |
### RPM external thepeg 1.2.0 |
2 |
< |
Source: http://www.thep.lu.se/~leif/ThePEG/ThePEG-%{realversion}.tgz |
1 |
> |
### RPM external thepeg 1.6.1 |
2 |
> |
## INITENV +PATH LD_LIBRARY_PATH %i/lib/ThePEG |
3 |
> |
## INITENV +PATH DYLD_LIBRARY_PATH %i/lib/ThePEG |
4 |
> |
#Source: http://www.thep.lu.se/~leif/ThePEG/ThePEG-%{realversion}.tgz |
5 |
> |
#Source: http://projects.hepforge.org/herwig/files/ThePEG-%{realversion}.tar.gz |
6 |
> |
Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/thepeg-%{realversion}-src.tgz |
7 |
> |
Patch0: thepeg-1.6.1-break-termcap-dependence |
8 |
> |
Patch1: thepeg-1.6.1-units |
9 |
|
Requires: lhapdf |
10 |
|
Requires: gsl |
11 |
+ |
%if "%(echo %cmsos | grep osx >/dev/null && echo true)" == "true" |
12 |
+ |
Requires: gfortran-macosx |
13 |
+ |
%endif |
14 |
|
|
15 |
|
%prep |
16 |
< |
%setup -q -n ThePEG-%{realversion} |
17 |
< |
perl -p -i -e 's|-lLHAPDF|-llhapdf -llhapdf_dummy|' configure |
18 |
< |
perl -p -i -e 's|libLHAPDF|liblhapdf|' configure |
10 |
< |
./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT |
16 |
> |
%setup -q -n %{n}/%{realversion} |
17 |
> |
%patch0 -p2 |
18 |
> |
%patch1 -p2 |
19 |
|
|
20 |
|
%build |
21 |
+ |
./configure --with-LHAPDF=$LHAPDF_ROOT/lib --without-javagui --prefix=%i --with-gsl=$GSL_ROOT --disable-readline |
22 |
|
make |
23 |
|
|
24 |
|
%install |
26 |
|
make install |
27 |
|
rm %i/share/ThePEG/Doc/fixinterfaces.pl |
28 |
|
|
20 |
– |
# SCRAM ToolBox toolfile |
21 |
– |
mkdir -p %i/etc/scram.d |
22 |
– |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
23 |
– |
<doc type=BuildSystem::ToolDoc version=1.0> |
24 |
– |
<Tool name=tauola version=%v> |
25 |
– |
<Client> |
26 |
– |
<Environment name=THEPEG_BASE default="%i"></Environment> |
27 |
– |
<Environment name=LIBDIR default="$THEPEG_BASE/lib"></Environment> |
28 |
– |
<Environment name=INCLUDE default="$THEPEG_BASE/include"></Environment> |
29 |
– |
</Client> |
30 |
– |
<lib name=thepeg> |
31 |
– |
<use name=lhapdf> |
32 |
– |
<use name=gsl> |
33 |
– |
</Tool> |
34 |
– |
EOF_TOOLFILE |
35 |
– |
|
29 |
|
%post |
30 |
< |
%{relocateConfig}etc/scram.d/%n |
30 |
> |
%{relocateConfig}lib/ThePEG/*.la |