fix: build RPM contained in spec definitions

The spec-build.sh was necessary for a proper build, but it is not
correct to depend on external scripts to generate the correct
RPM_BUILD_ROOT files. Now everything is contained in the spec file. The
spec-build.sh can be used in the future to automate the process of
copying sources to the specified directory and signing, but not
modifying the sources contents on a per file basis.

For: https://github.com/ben-grande/qusal/issues/59
This commit is contained in:
Ben Grande 2024-06-24 08:24:48 +02:00
parent f5528fec2e
commit e2791139ee
No known key found for this signature in database
GPG key ID: 00C64E14F51F9E56
59 changed files with 1182 additions and 542 deletions

View file

@ -72,6 +72,7 @@ gen_spec(){
project_name="$(get_spec project)"
version="$(get_spec version)"
license="$(get_spec license)"
license_csv="$(get_spec license_csv)"
vendor="$(get_spec vendor)"
packager="$(get_spec packager)"
url="$(get_spec url)"
@ -101,6 +102,7 @@ gen_spec(){
-e "s/@POSTUN_UNINSTALL@/${postun_uninstall}/" \
-e "s/@POSTUN_UPGRADE@/${postun_upgrade}/" \
-e "s|@FILE_ROOTS@|${file_roots}|" \
-e "s/@NAME@/${project}/" \
-e "s/@PROJECT@/${project_name}/" \
-e "s/@VERSION@/${version}/" \
-e "s/@SUMMARY@/${summary}/" \
@ -108,6 +110,7 @@ gen_spec(){
-e "s/@PACKAGER@/${packager}/" \
-e "s/@VENDOR@/${vendor}/" \
-e "s/@LICENSE@/${license}/" \
-e "s/@LICENSE_CSV@/${license_csv}/" \
-e "s|@BUG_URL@|${bug_url}|" \
-e "s|@URL@|${url}|" \
-e "s|@DESCRIPTION@|${description}|" \