Skip to content

Commit

Permalink
Merge pull request #126 from NERSC/scanon/fix_rpm_locations
Browse files Browse the repository at this point in the history
Fix up RPM locations
  • Loading branch information
scanon authored Dec 10, 2024
2 parents 61ee610 + ffd43c1 commit 073061f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 5 additions & 0 deletions .github/actions/build-podman-hpc/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@

# build python packages
DIST=dist
pip3 install .
python3 -m build --outdir $DIST

# build SRPM and RPM
OLD_VER=$(grep Version: podman-hpc.spec|sed 's/.* //')
VER=$(grep __version__.= podman_hpc/podman_hpc.py|sed 's/.*=..//'|sed 's/.$//')
sed -i "s/${OLD_VER}/${VER}/" podman-hpc.spec

RPMBUILD_TOPDIR=$(rpmbuild --eval="%{_topdir}")
cp $DIST/*.tar.gz $RPMBUILD_TOPDIR/SOURCES/
rpmbuild -ba podman-hpc.spec
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ build:
echo "Nothing to do"

rpmbuild-install:
python3 -m setup install --root=$(DESTDIR) --prefix=/usr
python3 -m setup install --root=$(DESTDIR) --prefix=/usr --install-data=/
python3 -m podman_hpc.configure_hooks \
--hooksd $(DESTDIR)/usr/share/containers/oci/hooks.d
mkdir -p $(DESTDIR)/etc/
ln -s ../usr/etc/podman_hpc $(DESTDIR)/etc/podman_hpc

install: rpmbuild-install
3 changes: 1 addition & 2 deletions podman-hpc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@


Name: podman-hpc
Version: 1.1.0
Version: 1.1.1
Release: 1
Summary: Scripts to enable Podman to run in an HPC environment
# FIXME: Select a correct license from https://github.com/openSUSE/spec-cleaner#spdx-licenses
Expand Down Expand Up @@ -48,7 +48,6 @@ run fully unprivileged.
%license LICENSE
%doc CHANGELOG.md README.md
%config /etc/podman_hpc
%config /usr/etc/podman_hpc
/usr/bin/podman-hpc
/usr/bin/hook_tool
/usr/bin/fuse-overlayfs-wrap
Expand Down

0 comments on commit 073061f

Please sign in to comment.