117 lines
2.7 KiB
RPMSpec
117 lines
2.7 KiB
RPMSpec
|
Name: prrte
|
||
|
Version: 2.0.0
|
||
|
Release: 3%{?dist}
|
||
|
Summary: PMIx Reference RunTime Environment (PRRTE)
|
||
|
License: BSD
|
||
|
URL: https://github.com/openpmix/%{name}
|
||
|
Source0: https://github.com/openpmix/%{name}/releases/download/v%{version}/prte-%{version}.tar.bz2
|
||
|
|
||
|
BuildRequires: flex
|
||
|
BuildRequires: gcc
|
||
|
BuildRequires: make
|
||
|
BuildRequires: pmix-devel >= 4.1.0
|
||
|
BuildRequires: pandoc
|
||
|
BuildRequires: perl-interpreter
|
||
|
BuildRequires: torque-devel
|
||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||
|
|
||
|
%description
|
||
|
PRRTE is the PMIx Reference Run Time Environment.
|
||
|
|
||
|
The project is formally referred to in documentation by "PRRTE", and
|
||
|
the GitHub repository is "openpmix/%{name}".
|
||
|
|
||
|
However, we have found that most users do not like typing the two
|
||
|
consecutive "r"s in the name. Hence, all of the internal API symbols,
|
||
|
environment variables, MCA frameworks, and CLI executables all use the
|
||
|
abbreviated "prte" (one "r", not two) for convenience.
|
||
|
|
||
|
|
||
|
%package libs
|
||
|
Summary: Libraries for %{name}
|
||
|
|
||
|
%description libs
|
||
|
Runtime libraries for %{name}.
|
||
|
|
||
|
|
||
|
%package devel
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
||
|
|
||
|
%description devel
|
||
|
The %{name}-devel package contains libraries and header files for
|
||
|
developing applications that use %{name}.
|
||
|
|
||
|
|
||
|
%prep
|
||
|
%setup -q -n prte-%{version}
|
||
|
|
||
|
# touch lexer sources to recompile them
|
||
|
find src -name \*.l -print -exec touch --no-create {} \;
|
||
|
|
||
|
# Remove “BSD with advertising” licensed qsort implementation, which was only
|
||
|
# needed to work around ancient Solaris bugs. The typedef keeps the translation
|
||
|
# unit from being empty.
|
||
|
echo '' > src/util/qsort.h
|
||
|
echo 'typedef int x;' > src/util/qsort.c
|
||
|
|
||
|
|
||
|
%build
|
||
|
%configure \
|
||
|
--sysconfdir=%{_sysconfdir}/prte \
|
||
|
--disable-static \
|
||
|
--disable-silent-rules \
|
||
|
--enable-shared \
|
||
|
--with-sge
|
||
|
|
||
|
%make_build
|
||
|
|
||
|
|
||
|
%check
|
||
|
%make_build check
|
||
|
|
||
|
|
||
|
%install
|
||
|
%make_install
|
||
|
|
||
|
# remove libtool archives
|
||
|
find %{buildroot} -name '*.la' -delete
|
||
|
|
||
|
|
||
|
%files
|
||
|
%doc README
|
||
|
%{_bindir}/prte
|
||
|
%{_bindir}/prte_info
|
||
|
%{_bindir}/prted
|
||
|
%{_bindir}/prterun
|
||
|
%{_bindir}/prun
|
||
|
%{_bindir}/pterm
|
||
|
%{_mandir}/man1/*.1*
|
||
|
%{_mandir}/man7/*.7*
|
||
|
|
||
|
%files libs
|
||
|
%license LICENSE
|
||
|
%dir %{_sysconfdir}/prte
|
||
|
%config(noreplace) %{_sysconfdir}/prte/prte-*
|
||
|
%{_datadir}/prte/
|
||
|
%{_libdir}/lib%{name}.so.2*
|
||
|
%{_libdir}/prte/
|
||
|
|
||
|
%files devel
|
||
|
%{_bindir}/pcc
|
||
|
%{_includedir}/prte*.h
|
||
|
%{_libdir}/lib%{name}.so
|
||
|
|
||
|
|
||
|
%changelog
|
||
|
* Sun Oct 31 2021 Orion Poplawski <orion@nwra.com> - 2.0.0-3
|
||
|
- Explicitly list binaries
|
||
|
|
||
|
* Thu Oct 28 2021 Orion Poplawski <orion@nwra.com> - 2.0.0-2
|
||
|
- Split libraries into -libs sub-package
|
||
|
- Add BR make
|
||
|
- Remove old qsort
|
||
|
|
||
|
* Mon Oct 11 2021 Orion Poplawski <orion@nwra.com> - 2.0.0-1
|
||
|
- Initial Fedora package
|