ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/charybdis.spec
Revision: 1.1
Committed: Mon Sep 3 15:28:45 2007 UTC (17 years, 7 months ago) by muzaffar
Branch: MAIN
CVS Tags: dl070906, dl070905, sm030907a
Log Message:
new spec files for auto generation of toolfile i.e. no need of scramtoolbox

File Contents

# User Rev Content
1 muzaffar 1.1 ### RPM external charybdis 1.003-CMS8
2     Source: http://cern.ch/service-spi/external/MCGenerators/distribution/%{n}-%{realversion}-src.tgz
3     %prep
4     %setup -q -n %{n}/%{realversion}
5     ./configure --lcgplatform=%cmsplatf
6    
7     %build
8     which g77
9     make
10    
11     %install
12     tar -c lib include | 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=charybdis version=%v>
18     <Client>
19     <Environment name=CHARYBDIS_BASE default="%i"></Environment>
20     <Environment name=LIBDIR default="$CHARYBDIS_BASE/lib"></Environment>
21     <Environment name=INCLUDE default="$CHARYBDIS_BASE/include"></Environment>
22     </Client>
23     <lib name=charybdis>
24     <use name=f77compiler>
25     </Tool>
26     EOF_TOOLFILE
27    
28     %post
29     %{relocateConfig}etc/scram.d/%n