49 lines
1.1 KiB
RPMSpec
49 lines
1.1 KiB
RPMSpec
#% define beta_tag rc1
|
|
|
|
Version: 3.2.10.2
|
|
Name: Pmodules_modules
|
|
Summary: Environment Modules
|
|
Release: 1%{?dist}
|
|
Group: System Environment
|
|
License: GPLv2
|
|
Url: https://modules.readthedocs.io/h
|
|
#Source0: https://amas.web.psi.ch/Downloads/modules/modules-%{version}.tar.bz2
|
|
Source0: https://github.com/Pmodules/download/raw/refs/heads/main/modules-%{version}.tar.bz2
|
|
|
|
BuildRequires: autoconf, gcc, tcl-devel
|
|
|
|
%define _prefix /usr/share/Pmodules/libexec
|
|
%define _bindir %{_prefix}
|
|
%global debug_package %{nil}
|
|
|
|
%description
|
|
Environment Modules
|
|
|
|
%prep
|
|
%setup -q -n Modules-%{version}
|
|
|
|
%build
|
|
%configure \
|
|
--exec-prefix="%{_prefix}" \
|
|
--with-module-path="/opt/psi/Tools/modulefiles" \
|
|
--without-x \
|
|
--disable-versioning
|
|
make CFLAGS='-DUSE_INTERP_ERRORLINE=1 -fPIC'
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
mkdir -p %{buildroot}/%{_prefix}
|
|
install -m 0755 %{_builddir}/Modules-%{version}/modulecmd %{buildroot}/%{_prefix}/modulecmd.bin
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_prefix}/*
|
|
|
|
%changelog
|
|
* Wed Aug 6 2025 Achim Gsell <achim.gsell@psi.ch - 5.2.37
|
|
initial version
|