Setting up RPM Building for SME Server on rocky 8

From SME Server
Revision as of 14:33, 9 October 2021 by Brianr (talk | contribs)
Jump to navigationJump to search

Login as brianr.

sudo dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo dnf install mock
sudo /usr/sbin/usermod -G mock brianr
sudo dnf install glances

(Missing python-ctypes??)

cd /etc/mock/
sudo rm site-defaults.cfg 
sudo dnf install wget
sudo wget http://mirror.contribs.org/contribs/dani/mock/site-defaults.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-8-i386-base.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-8-i386-iso.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-8-x86_64-base.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-8-x86_64-iso.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-9-i386-base.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-9-i386-iso.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-9-x86_64-base.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-9-x86_64-iso.cfg
sudo wget http://mirror.contribs.org/contribs/dani/mock/smeserver-10-x86_64-base.cfg
sudo chown root:mock /etc/mock/*
#!/bin/sh
mkdir ~/rpmbuild
for i in BUILD BUILDROOT RPMS SOURCES SPECS SRPMS
do
 mkdir ~/rpmbuild/$i
done
sudo dnf install cvs
sudo nano /etc/profile.d/smebuild.sh

# Developer environment
# This gets symlinked into /etc/profile.d
export CVS_RSH=ssh # tell CVS to use ssh

# DO NOT set CVSROOT
alias rm='rm -i'
alias cp='cp -i --preserve=timestamps'
alias mv='mv -i'