2024-01-19 12:39:10 +00:00
|
|
|
set -eo xtrace
|
|
|
|
# Rpmbuild expects patches in the _sourcedir
|
|
|
|
find *.patch &> /dev/null && mv *.patch $TMT_SOURCE_DIR
|
|
|
|
mkdir builddir
|
|
|
|
rpmbuild -bp pcs.spec --nodeps --define "_sourcedir $TMT_SOURCE_DIR" \
|
|
|
|
--define "_builddir $(pwd)/builddir"
|
|
|
|
# Remove *SPECPARTS folders generated by rpmbuild
|
|
|
|
rm -rfv builddir/*SPECPARTS
|
|
|
|
# Remove pcs-web-ui in builddir for "cd pcs-*" to have exactly one match
|
|
|
|
rm -rf builddir/pcs-web-ui-*
|
|
|
|
cd builddir/pcs-*
|
|
|
|
# Run autotools, use bundled dependencies from the system
|
pcs-0.11.7-4
- initial c10s build
- removed %{eln} macro
- support packaging change of nodejs from streams to versioned packages
- only `enable-booth-enable-authfile-unset` option is present
- removed BuildRequires: python3-setuptools_scm - was needed for bundling dateutil
- updated gating policy
- added diffstat to gating fmf plan, rpmbuild failed during patching
- fixed paths to bundled modules in prepare-env.sh, removed distro workaround
- Bundled Python dependencies: dacite, pyagentx, pycurl, tornado
Resolves: RHEL-26339
- Bundled rubygems: backports, childprocess, ethon, ffi, mustermann, nio3r, puma, rack, rack-protection, rack-test, ruby2_keywords, sinatra, tilt
- Converted pcs and pcs-snmp to be architecture dependent, cockpit-ha-cluster remains noarch
2024-04-12 10:40:56 +00:00
|
|
|
export PYTHONPATH=/usr/lib64/pcs/pcs_bundled/packages/
|
|
|
|
export GEM_HOME=/usr/lib64/pcsd/vendor/bundle/
|
2024-01-19 12:39:10 +00:00
|
|
|
./autogen.sh
|
pcs-0.11.7-4
- initial c10s build
- removed %{eln} macro
- support packaging change of nodejs from streams to versioned packages
- only `enable-booth-enable-authfile-unset` option is present
- removed BuildRequires: python3-setuptools_scm - was needed for bundling dateutil
- updated gating policy
- added diffstat to gating fmf plan, rpmbuild failed during patching
- fixed paths to bundled modules in prepare-env.sh, removed distro workaround
- Bundled Python dependencies: dacite, pyagentx, pycurl, tornado
Resolves: RHEL-26339
- Bundled rubygems: backports, childprocess, ethon, ffi, mustermann, nio3r, puma, rack, rack-protection, rack-test, ruby2_keywords, sinatra, tilt
- Converted pcs and pcs-snmp to be architecture dependent, cockpit-ha-cluster remains noarch
2024-04-12 10:40:56 +00:00
|
|
|
./configure
|
2024-01-19 12:39:10 +00:00
|
|
|
# Remove pcs sources to make sure tests are not using any of those files
|
|
|
|
rm -rf pcs
|