- 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
19 lines
708 B
Bash
Executable File
19 lines
708 B
Bash
Executable File
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
|
|
export PYTHONPATH=/usr/lib64/pcs/pcs_bundled/packages/
|
|
export GEM_HOME=/usr/lib64/pcsd/vendor/bundle/
|
|
./autogen.sh
|
|
./configure
|
|
# Remove pcs sources to make sure tests are not using any of those files
|
|
rm -rf pcs
|