1 |
< |
### RPM external pythia6 409-CMS1 |
2 |
< |
%define realversion %(echo %v | cut -d- -f1 ) |
3 |
< |
Source: http://service-spi.web.cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz |
1 |
> |
### RPM external pythia6 409-CMS18 |
2 |
> |
Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz |
3 |
|
%prep |
4 |
|
%setup -q -n %{n}/%{realversion} |
5 |
|
./configure --enable-shared |
7 |
|
%build |
8 |
|
make |
9 |
|
|
11 |
– |
|
12 |
– |
|
10 |
|
%install |
14 |
– |
|
11 |
|
tar -c lib include | tar -x -C %i |
12 |
+ |
# SCRAM ToolBox toolfile |
13 |
+ |
mkdir -p %i/etc/scram.d |
14 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/%n |
15 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
16 |
+ |
<Tool name=pythia6 version=%v> |
17 |
+ |
<Client> |
18 |
+ |
<Environment name=PYTHIA6_BASE default="%i"></Environment> |
19 |
+ |
<Environment name=LIBDIR default="$PYTHIA6_BASE/lib"></Environment> |
20 |
+ |
<Environment name=INCLUDE default="$PYTHIA6_BASE/include"></Environment> |
21 |
+ |
</Client> |
22 |
+ |
<lib name=pythia6> |
23 |
+ |
<lib name=pythia6_dummy> |
24 |
+ |
<lib name=pythia6_pdfdummy> |
25 |
+ |
<use name=f77compiler> |
26 |
+ |
</Tool> |
27 |
+ |
EOF_TOOLFILE |
28 |
|
|
29 |
+ |
%post |
30 |
+ |
%{relocateConfig}etc/scram.d/%n |