ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/ktjet.spec
Revision: 1.11
Committed: Mon Sep 3 15:28:45 2007 UTC (17 years, 8 months ago) by muzaffar
Branch: MAIN
CVS Tags: CMSSW_1_7_0_pre3, dl070916, dl070912, dl070812, sm070912b, sm070912a, sm070911a, dl070909p3, dl070909, CMSSW_1_7_0_pre2, dl070906, dl070905, sm030907a
Changes since 1.10: +19 -1 lines
Log Message:
new spec files for auto generation of toolfile i.e. no need of scramtoolbox

File Contents

# User Rev Content
1 muzaffar 1.11 ### RPM external ktjet 1.06-CMS8
2 elmer 1.7 Source: http://hepforge.cedar.ac.uk/hf/archive/ktjet/KtJet-%{realversion}.tar.gz
3 elmer 1.8 Patch1: ktjet-1.0.6-nobanner
4 ratnik 1.1 Requires: clhep
5 elmer 1.8
6 ratnik 1.1 %prep
7 elmer 1.7 %setup -n KtJet-%{realversion}
8 elmer 1.8 %patch1 -p1
9    
10 ratnik 1.1 %build
11 elmer 1.4 CPPFLAGS=" -DKTDOUBLEPRECISION -fPIC" ./configure --with-clhep=$CLHEP_ROOT --prefix=%{i}
12 ratnik 1.1 make
13     %install
14     make install
15 muzaffar 1.11 # SCRAM ToolBox toolfile
16     mkdir -p %i/etc/scram.d
17     cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
18     <doc type=BuildSystem::ToolDoc version=1.0>
19     <Tool name=ktjet version=%v>
20     <info url=http://hepforge.cedar.ac.uk/ktjet></info>
21     <lib name=KtEvent>
22     <Client>
23     <Environment name=KTJET_BASE default="%i"></Environment>
24     <Environment name=LIBDIR default="$KTJET_BASE/lib"></Environment>
25     <Environment name=INCLUDE default="$KTJET_BASE/include"></Environment>
26     </Client>
27     <Flags CPPDEFINES="KTDOUBLEPRECISION">
28     </Tool>
29     EOF_TOOLFILE
30    
31     %post
32     %{relocateConfig}etc/scram.d/%n