1 |
< |
### RPM external fastjet 2.1.0 |
2 |
< |
Source: http://www.lpthe.jussieu.fr/~salam/repository/software/fastjet/%n-%v.tgz |
1 |
> |
### RPM external fastjet 2.4.2 |
2 |
> |
Source: http://www.lpthe.jussieu.fr/~salam/fastjet/repo/%n-%realversion.tar.gz |
3 |
> |
Patch1: fastjet-2.1.0-nobanner |
4 |
> |
Patch2: fastjet-2.3.4-siscone-banner |
5 |
> |
|
6 |
|
%prep |
7 |
< |
%setup -n %n-%v |
7 |
> |
%setup -n %n-%realversion |
8 |
> |
%patch1 -p1 |
9 |
> |
%patch2 -p1 |
10 |
> |
|
11 |
> |
./configure --enable-shared --enable-cmsiterativecone --enable-atlascone --prefix=%i --enable-allcxxplugins |
12 |
|
|
13 |
|
%build |
7 |
– |
cd src |
8 |
– |
# The following is a hack, whether it works should be checked whenever |
9 |
– |
# the version is updated from 2.1.0b1 |
10 |
– |
perl -p -i -e "s|CXXFLAGS \+\=|CXXFLAGS += -fPIC|" Makefile |
14 |
|
make |
12 |
– |
make install |
13 |
– |
cd ../plugins |
14 |
– |
make |
15 |
– |
make clean |
16 |
– |
|
17 |
– |
cd ../include/fastjet |
18 |
– |
find ../../plugins/CDFCones -name "*.hh" -exec ln -sf {} \; |
19 |
– |
find ../../plugins/SISCone -name "*.hh" -exec ln -sf {} \; |
20 |
– |
|
21 |
– |
cd ../../lib/ |
22 |
– |
find ../plugins/CDFCones -name "*.a" -exec mv {} . \; |
23 |
– |
find ../plugins/SISCone -name "*.a" -exec mv {} . \; |
24 |
– |
|
15 |
|
|
16 |
|
%install |
17 |
< |
|
28 |
< |
# Take everything including sources, makefiles, documentation and examples (only 16MB). |
29 |
< |
gtar -cv ./| gtar -x -C %i |
17 |
> |
make install |