From 1309b7b1dc90ab6ccf94bfdd67ca9822983e60a1 Mon Sep 17 00:00:00 2001 From: Philip Kovacs Date: Sat, 10 Feb 2018 18:42:38 -0500 Subject: [PATCH] Update to 2.1.0. Added enviromnent module for pmi/pmix. Added pkgconfig files for pmix/pmi/pmi2. Ensure lexer sources are rebuilt. Removed obsolete sasl support. Use new ldconfig_scriplets macro. --- .gitignore | 7 ++- pmix.spec | 146 ++++++++++++++++++++++++++++++++++++++++++++--------- sources | 2 +- 3 files changed, 127 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index bf039de..1b6bf92 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/pmix-1.1.3.tar.bz2 -/pmix-1.1.4.tar.bz2 -/pmix-1.1.5.tar.bz2 -/pmix-1.2.2.tar.bz2 +/pmix-*.tar.bz2 +/pmix-*.src.rpm + diff --git a/pmix.spec b/pmix.spec index 5b13668..7a5df3e 100644 --- a/pmix.spec +++ b/pmix.spec @@ -1,16 +1,25 @@ Name: pmix -Version: 1.2.2 -Release: 4%{?dist} -Summary: Exascale version of PMI - +Version: 2.1.0 +Release: 1%{?dist} +Summary: Process Management Interface Exascale (PMIx) License: BSD -URL: https://www.open-mpi.org/projects/pmix/ -Source0: https://raw.githubusercontent.com/pmix/tarballs/master/pmix-%{version}.tar.bz2 +URL: https://pmix.github.io/pmix/ +Source0: https://github.com/pmix/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.bz2 -BuildRequires: cyrus-sasl-devel -BuildRequires: hwloc-devel +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: environment(modules) +BuildRequires: flex +BuildRequires: gcc BuildRequires: libevent-devel -BuildRequires: munge-devel +BuildRequires: libtool +BuildRequires: perl-interpreter +BuildRequires: pkgconf +BuildRequires: pkgconfig(hwloc) +BuildRequires: pkgconfig(munge) + +Provides: pmi +Requires: environment(modules) %description The Process Management Interface (PMI) has been used for quite some time as @@ -31,48 +40,139 @@ restrictions that impact scalability, and (b) provide a reference implementation of the PMI-server that demonstrates the desired level of scalability. - %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} - %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. - %prep -%setup -q +%setup -q -n %{name}-%{version} +echo touching lexer sources to recompile them ... +find src -name \*.l -print -exec touch --no-create {} \; %build -%configure --disable-static --disable-silent-rules --with-sasl -make %{?_smp_mflags} +%{_builddir}/%{name}-%{version}/autogen.pl +%configure \ + --prefix=%{_prefix} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --disable-static \ + --disable-silent-rules \ + --enable-shared \ + --enable-pmi-backward-compatibility \ + --with-munge +%make_build V=1 + +%check +%{__make} check %install %make_install -find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';' +# remove libtool archives +find %{buildroot} -name '*.la' | xargs rm -f -%post -p /sbin/ldconfig +# move libpmi/libpmi2 for environment module usage +install -d -m 0755 %{buildroot}%{_libdir}/%{name}/lib +mv %{buildroot}%{_libdir}/libpmi.so* %{buildroot}%{_libdir}/%{name}/lib +mv %{buildroot}%{_libdir}/libpmi2.so* %{buildroot}%{_libdir}/%{name}/lib -%postun -p /sbin/ldconfig +# move man pages to build root +install -d -m 0755 %{buildroot}%{_mandir}/man3 +install -d -m 0755 %{buildroot}%{_mandir}/man7 +mv man/man3/*.3 %{buildroot}%{_mandir}/man3/ +mv man/man7/*.7 %{buildroot}%{_mandir}/man7/ +# install pmi/pmix environment module file +install -d -m 0755 %{buildroot}%{_modulesdir}/pmi +cat >%{buildroot}%{_modulesdir}/pmi/%{name}-%{_arch} <%{buildroot}%{_libdir}/pkgconfig/%{name}.pc <%{buildroot}%{_libdir}/%{name}/lib/pkgconfig/pmi.pc <%{buildroot}%{_libdir}/%{name}/lib/pkgconfig/pmi2.pc < - 2.1.0-1 +- Update to 2.1.0. +- Added enviromnent module for pmi/pmix. +- Added pkgconfig files for pmix/pmi/pmi2. +- Ensure lexer sources are rebuilt. +- Removed obsolete sasl support. +- Use new ldconfig_scriplets macro. + * Fri Feb 09 2018 Fedora Release Engineering - 1.2.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild diff --git a/sources b/sources index be0364d..1c88de4 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -SHA512 (pmix-1.2.2.tar.bz2) = 3b09bc290a3a9ef83b01d5500c236159388e1cf1c354a27d188d4fc3dc1790321ef32b4e3191393d19757f34b9937846dff9774e2c58fee047fe116157bf3731 +SHA512 (pmix-2.1.0.tar.bz2) = 5bb085d29f57b9db84e6969e5ca81b0dace926801e5ef908f257b9dc6f57da05d31f6c80000eb76cc7fa51951f9e868fd4f8d8d690eb5e6bc68e509c6b6ccace