From 7d23c85c01bcb49f1965ba02496a90b8dd1a3187 Mon Sep 17 00:00:00 2001 From: Shahzad Malik Muzaffar Date: Mon, 1 Feb 2016 17:22:27 +0100 Subject: [PATCH 1/2] new external starlight added --- cmssw-tool-conf.spec | 1 + starlight-toolfile.spec | 25 +++++++++++++++++++++++++ starlight.spec | 33 +++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 starlight-toolfile.spec create mode 100644 starlight.spec diff --git a/cmssw-tool-conf.spec b/cmssw-tool-conf.spec index d2be1baae95..0fd1e525042 100644 --- a/cmssw-tool-conf.spec +++ b/cmssw-tool-conf.spec @@ -8,6 +8,7 @@ %define isamd64 %(case %{cmsplatf} in (*amd64*) echo 1 ;; (*) echo 0 ;; esac) %define isslc %(case %{cmsplatf} in (slc*) echo 1 ;; (*) echo 0 ;; esac) +Requires: starlight-toolfile Requires: alpgen-toolfile Requires: boost-toolfile Requires: bz2lib-toolfile diff --git a/starlight-toolfile.spec b/starlight-toolfile.spec new file mode 100644 index 00000000000..654318e9a6c --- /dev/null +++ b/starlight-toolfile.spec @@ -0,0 +1,25 @@ +### RPM external starlight-toolfile 1.0 +Requires: starlight + +%prep + +%build + +%install +mkdir -p %{i}/etc/scram.d +cat << \EOF_TOOLFILE >%{i}/etc/scram.d/starlight.xml + + + + + + + + + + + + +EOF_TOOLFILE + +## IMPORT scram-tools-post diff --git a/starlight.spec b/starlight.spec new file mode 100644 index 00000000000..a867302174d --- /dev/null +++ b/starlight.spec @@ -0,0 +1,33 @@ +### RPM external starlight r193 +Requires: clhep + +%define branch cms/%{realversion} +%define github_user cms-externals +%define tag 3c3e91b8fe2c6a265f3ace4bc08fac4184d2490b +Source: git+https://github.com/%{github_user}/%{n}.git?obj=%{branch}/%{tag}&export=%{n}-%{realversion}&output=/%{n}-%{realversion}.tgz + +BuildRequires: cmake + +%prep +%setup -n %{n}-%{realversion} + +%build +rm -rf ../build +mkdir ../build +cd ../build + +export CLHEP_PARAM_PATH=${CLHEP_ROOT} + +cmake ../%{n}-%{realversion} \ + -DCMAKE_INSTALL_PREFIX:PATH="%{i}" \ + -DCMAKE_BUILD_TYPE=Realease \ + -DENABLE_CLHEP=ON + +make %{makeprocesses} VERBOSE=1 + +%install +cd ../build +make %{makeprocesses} install VERBOSE=1 + +rm -rf %{i}/lib/archive +rm -rf %{i}/lib/libStarlib.a From f1298bb13483c5ebd89047d47a6eeb6c090981a0 Mon Sep 17 00:00:00 2001 From: Malik Shahzad Muzaffar Date: Mon, 1 Feb 2016 17:40:51 +0100 Subject: [PATCH 2/2] Update starlight.spec --- starlight.spec | 1 - 1 file changed, 1 deletion(-) diff --git a/starlight.spec b/starlight.spec index a867302174d..efa0fc07123 100644 --- a/starlight.spec +++ b/starlight.spec @@ -30,4 +30,3 @@ cd ../build make %{makeprocesses} install VERBOSE=1 rm -rf %{i}/lib/archive -rm -rf %{i}/lib/libStarlib.a