1 |
< |
### RPM external fastjet 2.0.0 |
1 |
> |
### RPM external fastjet 2.1.0 |
2 |
|
Source: http://www.lpthe.jussieu.fr/~salam/repository/software/fastjet/%n-%v.tgz |
3 |
– |
|
3 |
|
%prep |
4 |
|
%setup -n %n-%v |
5 |
|
|
6 |
|
%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 |
11 |
|
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 |
+ |
|
25 |
|
|
26 |
|
%install |
27 |
+ |
|
28 |
|
# Take everything including sources, makefiles, documentation and examples (only 16MB). |
29 |
|
gtar -cv ./| gtar -x -C %i |