Skip to content
Snippets Groups Projects
Commit f09193c5 authored by Dinyar Rabady's avatar Dinyar Rabady Committed by Thomas Owen James
Browse files

Fix RPM dependency situation

parent 6db93183
2 merge requests!59CMSSW json file,!2Fix RPM dependency situation
Pipeline #4070252 passed
image: gitlab-registry.cern.ch/scouting-demonstrator/scouting-docker-images/scdaq-builder:1.0.0 image: gitlab-registry.cern.ch/scouting-demonstrator/scouting-docker-images/scdaq-builder:1.0.1
build_rpm_tag: build_rpm_tag:
stage: build stage: build
......
...@@ -24,6 +24,11 @@ BASEDIR=$PWD ...@@ -24,6 +24,11 @@ BASEDIR=$PWD
PARAMCACHE="paramcache" PARAMCACHE="paramcache"
NLINES=1 NLINES=1
ASK="1" ASK="1"
RAWVER=$(git describe --tags || echo 'v0.0.0') # If git describe fails, we set a default version number.
VER=$(echo ${RAWVER} | sed 's/^v//' | awk '{split($0,a,"-"); print a[1]}')
REL=$(git rev-list HEAD | wc -l | tr -d ' ')
echo "Version $VER, release $REL"
if [ -n "$1" ]; then if [ -n "$1" ]; then
if [ "$1" = "--batch" ]; then if [ "$1" = "--batch" ]; then
...@@ -95,21 +100,19 @@ rm -rf /tmp/$PACKAGENAME-build-tmp ...@@ -95,21 +100,19 @@ rm -rf /tmp/$PACKAGENAME-build-tmp
echo "creating new build area" echo "creating new build area"
mkdir /tmp/$PACKAGENAME-build-tmp mkdir /tmp/$PACKAGENAME-build-tmp
cd /tmp/$PACKAGENAME-build-tmp cd /tmp/$PACKAGENAME-build-tmp
#mkdir BUILD
#mkdir RPMS
TOPDIR=$PWD TOPDIR=$PWD
echo "working in $PWD" echo "working in $PWD"
#ls #ls
# we are done here, write the specs and make the fu***** rpm # we are done here, write the specs and make the rpm
cat >scoutdaq.spec <<EOF cat >scoutdaq.spec <<EOF
Name: $PACKAGENAME$pkgsuffix Name: $PACKAGENAME$pkgsuffix
Version: 0.1.0 Version: $VER
Release: 0%{?dist} Release: $REL
Summary: scouting daq Summary: L1 Scouting DAQ
License: gpl License: gpl
Group: DAQ Group: CMS/L1Scouting
Packager: meschi Packager: scouter
Source: none Source: none
%define _tmppath $TOPDIR/scdaq-build %define _tmppath $TOPDIR/scdaq-build
BuildRoot: %{_tmppath} BuildRoot: %{_tmppath}
...@@ -118,16 +121,13 @@ AutoReqProv: no ...@@ -118,16 +121,13 @@ AutoReqProv: no
Provides:/opt/scdaq Provides:/opt/scdaq
Requires: tbb boost-thread libcurl Requires: tbb boost-thread libcurl
Obsoletes: scdaq
%description %description
scouting daq scouting daq
%prep %prep
echo "PIPPPPPPPPO"
echo $RPM_SOURCE_DIR echo $RPM_SOURCE_DIR
echo "PIPPOOOOOOOOO"
echo $BASEDIR echo $BASEDIR
cp -R $BASEDIR/src SOURCES/ cp -R $BASEDIR/src SOURCES/
...@@ -163,7 +163,6 @@ echo "Copying files to their destination" ...@@ -163,7 +163,6 @@ echo "Copying files to their destination"
cp $BASEDIR/init.d/runSCdaq.service usr/lib/systemd/system/runSCdaq.service cp $BASEDIR/init.d/runSCdaq.service usr/lib/systemd/system/runSCdaq.service
cp $BASEDIR/init.d/scoutboardResetServer.service usr/lib/systemd/system/scoutboardResetServer.service cp $BASEDIR/init.d/scoutboardResetServer.service usr/lib/systemd/system/scoutboardResetServer.service
cp -R $BASEDIR/* opt/scdaq cp -R $BASEDIR/* opt/scdaq
echo "PIPPOOOOOOOOOOO"
pwd pwd
cp $TOPDIR/RPMBUILD/BUILD/SOURCES/scdaq opt/scdaq/bin/ cp $TOPDIR/RPMBUILD/BUILD/SOURCES/scdaq opt/scdaq/bin/
cp -R $BASEDIR/etc/scdaq/scdaq.conf etc/scdaq/ cp -R $BASEDIR/etc/scdaq/scdaq.conf etc/scdaq/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment