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.3 by ratnik, Wed Apr 4 17:47:49 2007 UTC vs.
Revision 1.9 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external lhapdf 5.2.3-cms
2 < Requires: gcc-wrapper
3 < %define gccwrapperarch slc4_ia32_gcc345
1 > ### RPM external lhapdf 5.2.3-CMS8
2   %define realversion %(echo %v | cut -d- -f1)
3   Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
4   %prep
# Line 8 | Line 6 | Source: http://cern.ch/service-spi/exter
6   ./configure
7  
8   %build
11 %if "%{cmsplatf}" == "%{gccwrapperarch}"
12 echo "Using gcc wrapper for %cmsplatf"
13 source $GCC_WRAPPER_ROOT/etc/profile.d/init.sh
14 %endif
9   make
10  
11   %install
12   tar -c lib include PDFsets | tar -x -C %i
13 + # SCRAM ToolBox toolfile
14 + mkdir -p %i/etc/scram.d
15 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
16 + <doc type=BuildSystem::ToolDoc version=1.0>
17 + <Tool name=lhapdf version=%v>
18 + <lib name=lhapdf>
19 + <lib name=lhapdf_dummy>
20 + <Client>
21 + <Environment name=LHAPDF_BASE default="%i"></Environment>
22 + <Environment name=LIBDIR default="$LHAPDF_BASE/lib"></Environment>
23 + <Environment name=INCLUDE default="$LHAPDF_BASE/include"></Environment>
24 + <Environment name=LHAPATH default="$LHAPDF_BASE/PDFsets"></Environment>
25 + </Client>
26 + <Runtime name=LHAPATH value="$LHAPDF_BASE/PDFsets" type=path>
27 + <use name=f77compiler>
28 + </Tool>
29 + EOF_TOOLFILE
30 +
31 + %post
32 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines