gsell befe8e45b0
Build and Publish RPM / build-and-publish (push) Successful in 2m41s
post-install fixed
2026-05-22 10:20:33 +02:00
2025-10-06 08:48:50 +02:00
2025-10-06 08:48:50 +02:00
2026-05-22 10:20:33 +02:00
2025-10-02 17:06:36 +02:00
2026-02-05 14:57:56 +01:00
2026-02-05 14:26:48 +01:00
2025-10-02 09:40:48 +02:00

Building RPMs for Pmodules

The spec files

The spec files in this repository can be used to build RPMs for Pmodules.

Pmodules.spec
The spec file to build the Pmodules RPM.

Pmodules_modules.spec
Pmodules is a wrapper around the C implementation of Environment Modules 3.2.10 with some patches (e.g.: except %#Pmodules as shebang). This RPM is set as 'required' in the Pmodules RPM.

Pmodules_bash.spec
The Pmodules wrapper is written in Bash and uses feature only available in Bash version 5 and newer. On most current Linux distributions only Bash 4 is available. This RPM is set as 'required' in the Pmodules RPM.

Building the RPMs

Requirements (on RHEL8/9)
The RPMs rpm-build and rpmdevtools must be installed.

Setup the directories for rpmbuild (if not already done)

mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros

Download the required sources

cd ~/rpmbuild/SPECS
for f in Pmodules.spec Pmodules_bash.spec Pmodules_modules.spec; do
    spectool "$f"
fone

Build the RPMs

for f in Pmodules.spec Pmodules_bash.spec Pmodules_modules.spec; do
    rpmbuild -bb "$f"
fone
S
Description
spec files to build Pmodules RPMs
Readme
14 MiB
Languages
RPM Spec 100%