ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/lhapdf.spec
(Generate patch)

Comparing COMP/CMSDIST/lhapdf.spec (file contents):
Revision 1.7 by elmer, Tue May 1 17:58:02 2007 UTC vs.
Revision 1.20 by elmer, Fri Feb 6 19:00:23 2009 UTC

# Line 1 | Line 1
1 < ### RPM external lhapdf 5.2.3-cms
1 > ### RPM external lhapdf 5.6.0
2   %define realversion %(echo %v | cut -d- -f1)
3   Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
4 + Patch0: lhapdf-5.6.0-g77
5 + Patch1: lhapdf-5.6.0-32bit-on-64bit-recheck-workaround
6 +
7   %prep
8   %setup -q -n %{n}/%{realversion}
9 < ./configure
9 > # This applies both old and new fixes, probably the gcc4 ones can go (to check)
10 > case %gccver in
11 >  4.*)
12 >    # Switch to gfortran
13 >    perl -p -i -e 's|^export F77\=g77|export F77=gfortran|' .scripts/platform_functions
14 >    perl -p -i -e 's| -Wno-globals||' configure
15 >  ;;
16 >  3.*)
17 > %patch0 -p2
18 >  ;;
19 > esac
20 > %patch1 -p2
21 > ./configure --disable-pyext --enable-low-memory --prefix=%i --with-max-num-pdfsets=1
22  
23   %build
24 + which perl
25 + cp Makefile Makefile.orig
26 + perl -p -i -e 's|/usr/lib64/libm.a||g' config.status
27 + perl -p -i -e 's|/usr/lib64/libc.a||g' config.status
28 + perl -p -i -e 's|/usr/lib64/libm.a||g' Makefile */Makefile */*/Makefile */*/*/Makefile
29 + perl -p -i -e 's|/usr/lib64/libc.a||g' Makefile */Makefile */*/Makefile */*/*/Makefile
30   make
31  
32   %install
33 < tar -c lib include PDFsets | tar -x -C %i
33 > make install
34 > # SCRAM ToolBox toolfile
35 > mkdir -p %i/etc/scram.d
36 > cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
37 > <doc type=BuildSystem::ToolDoc version=1.0>
38 > <Tool name=lhapdf version=%v>
39 > <lib name=lhapdf>
40 > <lib name=lhapdf_dummy>
41 > <Client>
42 > <Environment name=LHAPDF_BASE default="%i"></Environment>
43 > <Environment name=LIBDIR default="$LHAPDF_BASE/lib"></Environment>
44 > <Environment name=INCLUDE default="$LHAPDF_BASE/include"></Environment>
45 > <Environment name=LHAPATH default="$LHAPDF_BASE/share/lhapdf/PDFsets"></Environment>
46 > </Client>
47 > <Runtime name=LHAPATH value="$LHAPDF_BASE/share/lhapdf/PDFsets" type=path>
48 > <use name=f77compiler>
49 > </Tool>
50 > EOF_TOOLFILE
51 >
52 > %post
53 > %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines