mirror of
https://github.com/ben-grande/qusal.git
synced 2025-08-02 03:06:12 -04:00
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:
parent
f5528fec2e
commit
e2791139ee
59 changed files with 1182 additions and 542 deletions
|
@ -34,15 +34,9 @@ build_rpm(){
|
|||
"${build_dir}/BUILD/${group}-${project}/LICENSES/" \
|
||||
"${build_dir}/SOURCES/${group}-${project}/LICENSES"
|
||||
|
||||
cp -r "salt/${project}/"* "${build_dir}/BUILD/${group}-${project}/"
|
||||
cp -r "salt/${project}/"* "${build_dir}/SOURCES/${group}-${project}/"
|
||||
for license in $(echo "${license_csv}" | tr "," " "); do
|
||||
license_dir="LICENSES"
|
||||
if test -d "salt/${project}/LICENSES"; then
|
||||
license_dir="salt/${project}/LICENSES"
|
||||
fi
|
||||
cp "${license_dir}/${license}.txt" "${build_dir}/BUILD/${group}-${project}/LICENSES/"
|
||||
done
|
||||
## TODO: generate tarball to sources.
|
||||
cp -r . "${build_dir}/BUILD/${group}-${project}/"
|
||||
cp -r . "${build_dir}/SOURCES/${group}-${project}/"
|
||||
|
||||
## TODO: use qubes-builderv2 with mock or qubes executor
|
||||
rpmbuild -ba --quiet --clean -- "${spec}"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue