User Tools

Site Tools


rpm_tools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
rpm_tools [2015/05/07 18:25]
stephdl
rpm_tools [2015/05/07 18:26]
stephdl [git_mockbuild]
Line 91: Line 91:
 The result of build can be find in the 'exchange' folder of the user's home of that script The result of build can be find in the 'exchange' folder of the user's home of that script
  
-  * usage<br />+  * usage
  
 in the git directory of your rpm (you need to install git & mock installed) in the git directory of your rpm (you need to install git & mock installed)
Line 105: Line 105:
   # parameters are optional   # parameters are optional
   ME=$(whoami)   ME=$(whoami)
-  +   
   # What is the package name   # What is the package name
   # The package name is given by the name of the main folder   # The package name is given by the name of the main folder
Line 117: Line 117:
   # Which git branch we are talking   # Which git branch we are talking
   BRANCH=$(git branch | grep '*' | cut -d' ' -f2)   BRANCH=$(git branch | grep '*' | cut -d' ' -f2)
- +  
   # Find the centos version   # Find the centos version
   DIST=$2   DIST=$2
Line 191: Line 191:
     fi;     fi;
   fi   fi
-  +   
- +  
   if ! [ -z "$1" ]; then   if ! [ -z "$1" ]; then
     if [ $1 = "sme8-386" ]; then     if [ $1 = "sme8-386" ]; then
Line 217: Line 217:
   echo ""   echo ""
   mock -r $MOCKCONF --rebuild ~/rpmbuild/SRPMS/$PACKAGE-$VERSION-*.src.rpm --resultdir=/home/$ME/exchange/$PACKAGE-$VERSION   mock -r $MOCKCONF --rebuild ~/rpmbuild/SRPMS/$PACKAGE-$VERSION-*.src.rpm --resultdir=/home/$ME/exchange/$PACKAGE-$VERSION
- +  
   # a bit of clean   # a bit of clean
- +  
   rm -f  ~/rpmbuild/SPECS/$PACKAGE.spec ~/rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz ~/rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm   rm -f  ~/rpmbuild/SPECS/$PACKAGE.spec ~/rpmbuild/SOURCES/$PACKAGE-$VERSION.tar.gz ~/rpmbuild/SRPMS/$PACKAGE-$VERSION*.src.rpm
   rm -rf $TMPDIR  ~/$PACKAGE-$VERSION    rm -rf $TMPDIR  ~/$PACKAGE-$VERSION 
- +  
   # we give the path where are files   # we give the path where are files
   echo ""   echo ""
Line 229: Line 229:
   echo ""   echo ""
   ls -1 ~/exchange/$PACKAGE-$VERSION/*.rpm   ls -1 ~/exchange/$PACKAGE-$VERSION/*.rpm
- echo "=================================================================================================================="+  echo "=================================================================================================================="
      
   # and we sign rpm if needed, if not simply do 'enter' with keyboard   # and we sign rpm if needed, if not simply do 'enter' with keyboard
rpm_tools.txt · Last modified: 2019/06/05 19:48 (external edit)