diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8a88b3f726c..e81b43283d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -303,6 +303,65 @@ jobs: ./publish.sh ls -lhtra dist/ + rpm-fedora: + + runs-on: ubuntu-latest + container: fedora:35 + + steps: + - name: Install external dependencies with dnf + run: | + dnf update -y + dnf install --nogpg -y \ + gcc-c++ \ + rpm-build \ + which \ + tar \ + dnf-plugins-core \ + git + dnf clean all + + - name: Clone repository + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Build + run: | + cd packaging/ + ./makesrpm.sh \ + --define "_with_python3 1" \ + --define "_with_ceph11 1" + dnf builddep --nogpgcheck -y *.src.rpm + mkdir RPMS + rpmbuild --rebuild \ + --define "_rpmdir RPMS/" \ + --define "_with_python3 1" \ + --define "_with_ceph11 1" \ + --define "_with_openssl3 1" \ + --define "_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm" \ + *.src.rpm + + - name: Install + run: | + ls -lh packaging/RPMS/ + dnf install -y \ + ./packaging/RPMS/xrootd-*.rpm \ + ./packaging/RPMS/python3-xrootd-*.rpm + + - name: Verify install + run: | + command -v xrootd + command -v xrdcp + + - name: Verify Python bindings + run: | + python3 -m pip list + python3 -m pip show xrootd + python3 -c 'import XRootD; print(XRootD)' + python3 -c 'import pyxrootd; print(pyxrootd)' + python3 -c 'from XRootD import client; print(client.FileSystem("root://someserver:1094"))' + sdist-centos7: runs-on: ubuntu-latest diff --git a/bindings/python/CMakeLists.txt b/bindings/python/CMakeLists.txt index e278b7f229e..d3781e25094 100644 --- a/bindings/python/CMakeLists.txt +++ b/bindings/python/CMakeLists.txt @@ -81,8 +81,7 @@ if ( NOT ${VALID_PIP_EXIT_CODE} EQUAL 0 ) COMMAND ${PYTHON_EXECUTABLE} ${SETUP_PY} install \ ${PIP_INSTALL_VERBOSE_FLAG} \ --prefix \$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX} \ - ${DEB_INSTALL_ARGS} \ - --record PYTHON_INSTALLED + ${DEB_INSTALL_ARGS} )" )