Update 'README.MD'

This commit is contained in:
tux 2022-11-18 14:56:28 +01:00
parent bec12d453a
commit fabd63c67a

View File

@ -8,38 +8,56 @@ sudo yum -y install rpmdevtools rpmlint
- Create the rpmbuild directory tree
# rpmdev-setuptree #
```console
rpmdev-setuptree
```
- Download the source files
# https://git.fiedler.live/tux/fahclient.git #
```console
https://git.fiedler.live/tux/fahclient.git
```
- Switch to the target branch
# cd fahclient && #
# git checkout aarch64 #
```console
cd fahclient &&
git checkout aarch64
```
- Place the specs file
# mv -v fahclient.spec ~/rpmbuild/SPECS/ #
```console
mv -v fahclient.spec ~/rpmbuild/SPECS/
```
- Create the source archive
# tar --create --file ~/rpmbuild/SOURCES/fahclient-7.6.21-2.aarch64.tar.gz fahclient #
```console
tar --create --file ~/rpmbuild/SOURCES/fahclient-7.6.21-2.aarch64.tar.gz fahclient
```
- Optionally check the specs file for errors
# rpmlint ~/rpmbuild/SPECS/fahclient.spec #
```console
rpmlint ~/rpmbuild/SPECS/fahclient.spec
```
- Build the source RPM
# rpmbuild -bs ~/rpmbuild/SPECS/fahclient.spec #
```console
rpmbuild -bs ~/rpmbuild/SPECS/fahclient.spec
```
- Place the files required for the build process
# cp -r fahclient/ rpmbuild/BUILDROOT/fahclient-7.6.21-2.aarch64 && #
# rm -rf rpmbuild/BUILDROOT/fahclient-7.6.21-2.aarch64/.git #
```console
cp -r fahclient/ rpmbuild/BUILDROOT/fahclient-7.6.21-2.aarch64 &&
rm -rf rpmbuild/BUILDROOT/fahclient-7.6.21-2.aarch64/.git
```
- Build the RPM package
# rpmbuild -bb ~/rpmbuild/SPECS/fahclient.spec #
```console
rpmbuild -bb ~/rpmbuild/SPECS/fahclient.spec
```