ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/cern.spec
Revision: 1.1
Committed: Wed May 31 09:20:35 2006 UTC (18 years, 11 months ago) by eulisse
Branch: MAIN
Log Message:
Configurarion files for cern site. First added to repository on Marco's
request, as an example.

File Contents

# User Rev Content
1 eulisse 1.1 ### RPM configuration cern 1.0
2     # Example file for site specific configurations.
3    
4     Source: none
5    
6     %prep
7     %build
8     %install
9     mkdir -p %instroot/SITECONFIG/%n
10    
11     cat << \EOF_SITE_LOCAL_XML > %{instroot}/SITECONFIG/%n/site-local.xml
12     Site local contents here.
13     EOF_SITE_LOCAL_XML
14    
15     cat << \EOF_STORAGE_XML > %{instroot}/SITECONFIG/%n/storage.xml
16     Trivial file catalog here.
17     EOF_STORAGE_XML
18     %post
19     perl -p -i -e "s|%{instroot}|$RPM_INSTALL_PREFIX|" SITECONFIG/%n/storage.xml SITECONFIG/%n/site-local.xml
20     ln -sf $RPM_INSTALL_PREFIX/%n $RPM_INSTALL_PREFIX/local
21     %files
22     %instroot/SITECONFIG/%n