forked from pool/Modules
Compare commits
17 Commits
Author | SHA256 | Date | |
---|---|---|---|
5dd0bbe6c3 | |||
|
eb13db9d75 | ||
8af2722a8f | |||
|
1132948d58 | ||
d2c8194ea7 | |||
|
d067b68638 | ||
97e2e95fb1 | |||
|
beaed7194d | ||
3c816455e3 | |||
caa7359017 | |||
7a809c1d95 | |||
|
b0fbf4ee8e | ||
|
b9b6f0648f | ||
|
d256b3291c | ||
|
fc77f18261 | ||
|
6e1d7d4fb6 | ||
|
4b6202e7e2 |
@@ -1,3 +1,14 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Feb 3 16:19:09 UTC 2025 - Guillaume GARDET <guillaume.gardet@opensuse.org>
|
||||||
|
|
||||||
|
- Make use of %configure macro to build with distro flags
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Aug 27 10:03:05 UTC 2024 - pgajdos@suse.com
|
||||||
|
|
||||||
|
- remove dependency on /usr/bin/python3 using
|
||||||
|
%python3_fix_shebang macro, [bsc#1212476]
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue May 21 10:40:16 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
Tue May 21 10:40:16 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||||
|
|
||||||
|
@@ -32,6 +32,7 @@ Requires: python3
|
|||||||
Requires: tcl
|
Requires: tcl
|
||||||
Source: https://download.sourceforge.net/project/modules/Modules/modules-%{version}/modules-%{version}.tar.gz
|
Source: https://download.sourceforge.net/project/modules/Modules/modules-%{version}/modules-%{version}.tar.gz
|
||||||
Patch1: Remove-empty-unused-static-function.patch
|
Patch1: Remove-empty-unused-static-function.patch
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
Provides: environment-modules
|
Provides: environment-modules
|
||||||
%if 0%{?suse_version}
|
%if 0%{?suse_version}
|
||||||
@@ -101,7 +102,7 @@ applications.
|
|||||||
sed -i 's@/usr/bin/env bash@/bin/bash@' script/envml
|
sed -i 's@/usr/bin/env bash@/bin/bash@' script/envml
|
||||||
|
|
||||||
%build
|
%build
|
||||||
./configure \
|
%configure \
|
||||||
--initdir="%{_datadir}/%name/init" \
|
--initdir="%{_datadir}/%name/init" \
|
||||||
--libexecdir="%{_prefix}/%_lib/%{name}/" \
|
--libexecdir="%{_prefix}/%_lib/%{name}/" \
|
||||||
--prefix="%_prefix" \
|
--prefix="%_prefix" \
|
||||||
@@ -117,7 +118,7 @@ sed -i 's@/usr/bin/env bash@/bin/bash@' script/envml
|
|||||||
--libdir=%{_libdir}/%{name} \
|
--libdir=%{_libdir}/%{name} \
|
||||||
--enable-compat-version \
|
--enable-compat-version \
|
||||||
--with-python=/usr/bin/python3
|
--with-python=/usr/bin/python3
|
||||||
make %{?_smp_mflags}
|
%make_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d %{buildroot}/usr/share/modules
|
install -d %{buildroot}/usr/share/modules
|
||||||
@@ -126,6 +127,7 @@ make DESTDIR=%{buildroot} install
|
|||||||
install -d %{buildroot}/usr/bin
|
install -d %{buildroot}/usr/bin
|
||||||
mv %{buildroot}/usr/share/doc doc_dir
|
mv %{buildroot}/usr/share/doc doc_dir
|
||||||
%fdupes -s %{buildroot}%{_datadir}
|
%fdupes -s %{buildroot}%{_datadir}
|
||||||
|
%python3_fix_shebang
|
||||||
|
|
||||||
ln -sf %{_datadir}/Modules/init/profile.sh %{buildroot}%{_sysconfdir}/profile.d/modules.sh
|
ln -sf %{_datadir}/Modules/init/profile.sh %{buildroot}%{_sysconfdir}/profile.d/modules.sh
|
||||||
ln -sf %{_datadir}/Modules/init/profile.csh %{buildroot}%{_sysconfdir}/profile.d/modules.csh
|
ln -sf %{_datadir}/Modules/init/profile.csh %{buildroot}%{_sysconfdir}/profile.d/modules.csh
|
||||||
|
Reference in New Issue
Block a user