pcs/prepare-env.sh
Michal Pospisil e0f71ca976 pcs-0.11.7-1
- Rebased to the latest sources (see CHANGELOG.md)
  Resolves: RHEL-7740
- Removed workaround for skipping copying of rubygems
- Removed workaround for unsupported distro in configure.ac
2024-01-11 15:19:58 +01:00

17 lines
601 B
Bash
Executable File

set -eo xtrace
# Rpmbuild expects patches in the _sourcedir
mv *.patch $TMT_SOURCE_DIR
mkdir builddir
rpmbuild -bp pcs.spec --nodeps --define "_sourcedir $TMT_SOURCE_DIR" \
--define "_builddir $(pwd)/builddir"
# 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