source: doc/rpm.notes

Last change on this file was 1d5066d, checked in by Ted Faber <faber@…>, 4 years ago

Tom Mitchell's RPM generation notes

  • Property mode set to 100644
File size: 657 bytes
Line 
1# As root or via sudo
2
3# get up to date
4yum update -y
5
6# Some convenience packages
7yum install -y emacs-nox wget
8
9# RPM related packages
10yum install -y rpm-build rpmdevtools rpmlint
11yum groupinstall -y "Development Tools"
12
13# Reboot so the new changes take hold
14reboot
15
16# ———
17# As a regular user from here on
18
19rpmdev-setuptree
20
21wget http://abac.deterlab.net/src/abac-0.1.9.tar.gz
22cp abac-0.1.9.tar.gz rpmbuild/SOURCES
23# scp abac.spec to VM
24cp abac.spec rpmbuild/SPECS
25
26cd rpmbuild/SPECS
27
28# Install the build dependencies
29sudo yum-builddep -y abac.spec
30
31# build the RPM, ignoring certain rpath errors
32QA_RPATHS=$[ 0x0001|0x0010 ] rpmbuild -ba abac.spec
Note: See TracBrowser for help on using the repository browser.