Skip to content

Commit

Permalink
CORCI-635 test: Create romio tarball
Browse files Browse the repository at this point in the history
So that an RPM can be created to install the ROMIO tests.

Signed-off-by: Brian J. Murrell <brian.murrell@intel.com>
  • Loading branch information
brianjmurrell committed Dec 4, 2019
1 parent dcec05b commit 7d067c2
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,4 @@
// no debian/ support yet
// no pmix for leap15 yet
packageBuildingPipeline(['distros' : ['centos7'],
'make args' : '-f Makefile-rpm.mk'])
'make args' : 'CHROOT=true -f Makefile-rpm.mk'])
30 changes: 30 additions & 0 deletions Makefile-rpm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,33 @@ $(NAME)-$(DL_VERSION).tar.$(SRC_EXT): $(NAME)-$(DL_VERSION)-$(GIT_COMMIT).tar
fi
rm -f $@
gzip < $< > $@

CHROOT ?= false

romio-$(VERSION).tar.gz:
set -e; \
if $(CHROOT); then \
romio_prefix=/var/lib/mock/epel-7-x86_64/root/builddir/build; \
chroot_romio_prefix=/builddir/build; \
else \
romio_prefix=_topdir; \
fi; \
romio_dir=BUILD/mpich-$(VERSION)/src/mpi/romio; \
if grep "MPI_LIB = /" $$romio_prefix/$$romio_dir/test/Makefile; then \
trap 'mv $$romio_prefix/$$romio_dir/test/Makefile{.old,}' EXIT; \
mv $$romio_prefix/$$romio_dir/test/Makefile{,.old}; \
sed -e 's/\(MPI_LIB = \)\/\(.*\)/\1-L\/\2/' \
< $$romio_prefix/$$romio_dir/test/Makefile.old \
> $$romio_prefix/$$romio_dir/test/Makefile; \
fi; \
if $(CHROOT); then \
mock --chroot "make -C $$chroot_romio_prefix/$$romio_dir clean"; \
else \
make -C $$romio_prefix/$$romio_dir clean; \
fi; \
tar -C $$romio_prefix/$$romio_dir/.. --exclude Makefile.old \
-czf romio-$(VERSION).tar.gz romio

romio-tarball: romio-$(VERSION).tar.gz

.PHONY: romio-tarball
6 changes: 5 additions & 1 deletion mpich.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Summary: A high-performance implementation of MPI
Name: mpich
Version: 3.3
Release: 3%{?dist}
Release: 4%{?dist}
License: MIT
URL: http://www.mpich.org/

Expand Down Expand Up @@ -90,6 +90,7 @@ Provides: %{name}-devel-static = %{version}-%{release}
Requires: %{name} = %{version}-%{release}
Requires: pkgconfig
Requires: gcc-gfortran
Requires: daos-devel
%if (0%{?fedora} >= 30)
Requires: rpm-mpi-hooks
%endif
Expand Down Expand Up @@ -333,6 +334,9 @@ make check VERBOSE=1
%{python3_sitearch}/%{name}.pth

%changelog
* Thu Nov 28 2019 Brian J. Murrell <brian.murrell@intel.com> - 3.3-4
- mpich-devel should Requires: daos-devel

* Fri Nov 22 2019 Brian J. Murrell <brian.murrell@intel.com> - 3.3-3
- Rebuild with newer CaRT SO version

Expand Down

0 comments on commit 7d067c2

Please sign in to comment.