diff --git a/afs-relocation-cern.spec b/afs-relocation-cern.spec deleted file mode 100644 index 54cd6c121b8..00000000000 --- a/afs-relocation-cern.spec +++ /dev/null @@ -1,38 +0,0 @@ -### RPM cms afs-relocation-cern 1.0 -## REVISION 101 -## NOCOMPILER -%define CmsRelocationDir /afs/cern.ch/cms -%prep -%build -%install - -mkdir -p %instroot/common -if [ ! -f %instroot/common/apt-site-env.sh ]; then -echo 'CMS_INSTALL_PREFIX="%{CmsRelocationDir}"; export CMS_INSTALL_PREFIX' > %instroot/common/apt-site-env.sh -echo "setenv CMS_INSTALL_PREFIX %{CmsRelocationDir}" > %instroot/common/apt-site-env.csh -fi - -%post -echo "AFS_RELOCATION_CERN_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.sh -echo "set AFS_RELOCATION_CERN_ROOT='$CMS_INSTALL_PREFIX/%{pkgrel}'" > $RPM_INSTALL_PREFIX/%{pkgrel}/etc/profile.d/init.csh -find $RPM_INSTALL_PREFIX/common -name "*" -type f | xargs perl -p -i -e "s|$RPM_INSTALL_PREFIX|%{CmsRelocationDir}|g" -find $RPM_INSTALL_PREFIX/bin -name "*" -type f | xargs perl -p -i -e "s|$RPM_INSTALL_PREFIX|%{CmsRelocationDir}|g" -find $RPM_INSTALL_PREFIX -maxdepth 1 -name "cmsset_default.*" -type f | xargs perl -p -i -e "s|$RPM_INSTALL_PREFIX|%{CmsRelocationDir}|g" -for dir in `find $RPM_INSTALL_PREFIX/%{cmsplatf}/external/apt -maxdepth 1 -type d | grep $RPM_INSTALL_PREFIX/%{cmsplatf}/external/apt/` ; do - if [ -d $dir/etc/profile.d ] ; then - for ext in csh sh ; do - ok=`grep " $RPM_INSTALL_PREFIX/common/apt-site-env.$ext " $dir/etc/profile.d/init.$ext` - if [ "X$ok" == "X" ] ; then - case $ext in - csh ) echo "if ( -f $RPM_INSTALL_PREFIX/common/apt-site-env.$ext ) source $RPM_INSTALL_PREFIX/common/apt-site-env.$ext; endif" >> $dir/etc/profile.d/init.$ext ;; - sh ) echo "if [ -f $RPM_INSTALL_PREFIX/common/apt-site-env.$ext ]; then . $RPM_INSTALL_PREFIX/common/apt-site-env.$ext; fi" >> $dir/etc/profile.d/init.$ext ;; - esac - fi - done - fi -done - -%files -%i -%instroot/common/apt-site-env.sh -%instroot/common/apt-site-env.csh diff --git a/cmsos.file b/cmsos.file deleted file mode 100755 index c0e7202dce2..00000000000 --- a/cmsos.file +++ /dev/null @@ -1,80 +0,0 @@ -#!/bin/sh - -cmsos() -{ - # Determine the cpu architecture string. - case `uname -p` in - i*86) cpuarch=ia32 ;; - x86_64) cpuarch=amd64 ;; - *EMT*) cpuarch=amd64 ;; - armv7l) cpuarch=armv7hl ;; # The kernel is armv7l, but we assume system as armv7hl (hard floats) - aarch64) cpuarch=aarch64 ;; - ppc64le) cpuarch=ppc64le ;; - ppc64) cpuarch=ppc64 ;; - *) cpuarch=`uname -p`;; - esac - - if [ "X$BUILD_ARCH" != X ]; then - echo "$BUILD_ARCH" - elif [ "X`uname`" = XLinux ]; then - if [ -f /etc/SuSE-release ]; then - echo suse`grep -i '^version' < /etc/SuSE-release | tr -dc '[0-9]'` - elif [ -f /etc/fedora-release ]; then - echo fc`sed 's/[^0-9]//g' /etc/fedora-release`_${cpuarch} - elif egrep -q "Red Hat Enterprise|Scientific|CentOS" /etc/redhat-release 2>/dev/null; then - slc_version=`egrep "Red Hat Enterprise|Scientific|CentOS" /etc/redhat-release | \ - sed 's/.*[rR]elease \([0-9]*\).*/\1/'` - if [ "X`uname -i`" = Xi386 ]; then - echo slc${slc_version}_ia32 - else - os="slc" - if egrep -q "CentOS" /etc/redhat-release 2>/dev/null; then - if [ ${slc_version} -gt 7 ] ; then - if egrep -q " Stream " /etc/redhat-release 2>/dev/null; then - os="cs" - else - os="cc" - fi - fi - fi - echo ${os}${slc_version}_${cpuarch} - fi - elif grep -q Scientific /etc/rocks-release 2>/dev/null; then - slc_version=`grep DISTRIB_RELEASE rocks-release | sed 's/DISTRIB_RELEASE="\([0-9]*\).*/\1/'` - # For the moment we assume that they are all ia32 - # if grep -q Intel /proc/cpuinfo 2>/dev/null; then - echo slc${slc_version}_ia32 - # else - # echo slc${slc_version}_amd64 - # fi - elif grep -q PU_IAS /etc/redhat-release 2>/dev/null; then - echo slc4_$cpuarch - else - archos= archosv= - for f in debian_version slackware-version fedora-release \ - redhat-release altlinux-release gentoo-release \ - cobalt-release mandrake-release conectiva-release; do - if [ -f /etc/$f ]; then - archos=`echo $f | sed 's/[-_].*//'` - archosv=`tr -dc '[0-9]' < /etc/$f` - break - fi - done - [ X$archos = Xredhat ] && archos=rh - if [ -z "$archos" -o -z "$archosv" ]; then - echo linux`uname -r | cut -d. -f1,2 | tr -d .`_$cpuarch - else - echo $archos$archosv_$cpuarch - fi - fi - elif [ "X`uname`" = XDarwin ]; then - case `sysctl hw.cpu64bit_capable | cut -f2 -d\ ` in 1) cpuarch=amd64;; 0) cpuarch=ia32;; esac - echo osx`sw_vers -productVersion | cut -d. -f1,2 | tr -dc [0-9]`_$cpuarch - elif [ "X`uname | cut -d_ -f1`" = XCYGWIN ]; then - echo win32_$cpuarch - else - echo unsupported - fi -} - -cmsos diff --git a/fwlite_application_set.file b/fwlite_application_set.file deleted file mode 100644 index 4e47ce4149f..00000000000 --- a/fwlite_application_set.file +++ /dev/null @@ -1,71 +0,0 @@ -CalibTracker/StandaloneTrackerTopology -CommonTools/Statistics -CommonTools/Utils -DataFormats/BTauReco -DataFormats/BeamSpot -DataFormats/CSCDigi -DataFormats/CSCRecHit -DataFormats/CastorReco -DataFormats/DTRecHit -DataFormats/DetId -DataFormats/EcalDigi -DataFormats/EcalRecHit -DataFormats/EgammaCandidates -DataFormats/EgammaReco -DataFormats/EgammaTrackReco -DataFormats/FEDRawData -DataFormats/FWLite -DataFormats/GEMDigi -DataFormats/GEMRecHit -DataFormats/GeometryVector -DataFormats/HLTReco -DataFormats/HcalDigi -DataFormats/HcalRecHit -DataFormats/Histograms -DataFormats/JetReco -DataFormats/L1GlobalCaloTrigger -DataFormats/L1GlobalMuonTrigger -DataFormats/L1GlobalTrigger -DataFormats/Luminosity -DataFormats/METReco -DataFormats/Math -DataFormats/MuonDetId -DataFormats/MuonReco -DataFormats/PatCandidates -DataFormats/RPCRecHit -DataFormats/RecoCandidate -DataFormats/Scalers -DataFormats/SiPixelCluster -DataFormats/SiStripCluster -DataFormats/StdDictionaries -DataFormats/TauReco -DataFormats/TrackingRecHit -DataFormats/TrajectorySeed -DataFormats/TrajectoryState -DataFormats/WrappedStdDictionaries -FWCore/PythonParameterSet -FWCore/PythonUtilities -Fireworks/Calo -Fireworks/Candidates -Fireworks/Core -Fireworks/Electrons -Fireworks/GenParticle -Fireworks/Macros -Fireworks/Muons -Fireworks/ParticleFlow -Fireworks/SimData -Fireworks/TableWidget -Fireworks/Tracks -Fireworks/Vertices -PhysicsTools/FWLite -PhysicsTools/Utilities -SimDataFormats/CrossingFrame -SimDataFormats/DigiSimLinks -SimDataFormats/GeneratorProducts -SimDataFormats/PileupSummaryInfo -SimDataFormats/RPCDigiSimLink -SimDataFormats/RandomEngine -SimDataFormats/Track -SimDataFormats/TrackerDigiSimLink -SimDataFormats/Vertex -Utilities/ReleaseScripts diff --git a/rpm-preamble.file b/rpm-preamble.file index 2ecaabf1f07..518a49eeeb9 100644 --- a/rpm-preamble.file +++ b/rpm-preamble.file @@ -20,8 +20,7 @@ %define _build_id_links none # Preliminarily define where things go. These are the places we -# know even without knowing the architecture yet. In particular -# we need _specdir to find "cmsos" to determine the architecture. +# know even without knowing the architecture yet. # Note that we define the values all here, but some of them are # not actually usable until we've managed to defined %cmsplatf. # @@ -133,18 +132,6 @@ %define debugsuffix %{?debug_build:_dbg} %define cmscomp %{cmscompiler}%{cmscompilerv} -#set cmsos only if cmsBuild does not set it -%if "%{?cmsos:set}" != "set" -# Old versions of cmsBuild/install.sh used to keep cmsos script in -# _specdir rather than in _sourcedir. This makes sure that -# rpm-preamble works for boths. -%if "%{cmsbuildApiVersion}" == "0" -%{expand:%%define cmsos %(sh %_specdir/cmsos)} -%else -%{expand:%%define cmsos %(sh %_sourcedir/cmsos)} -%endif -%endif - %define cmsplatf %{cmsos}_%{cmscomp}%{debugsuffix} # Define the variable name for dynamic linker search path.