9
0
forked from pool/Modules

13 Commits

Author SHA256 Message Date
53fe1fd734 Accepting request 1246564 from systemsmanagement
OBS-URL: https://build.opensuse.org/request/show/1246564
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=29
2025-02-18 18:08:56 +00:00
Philipp Wagner
d1eb2d6590 Accepting request 1242885 from home:Guillaume_G:branches:openSUSE:Factory:ARM
- Make use of %configure macro to build with distro flags

OBS-URL: https://build.opensuse.org/request/show/1242885
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=39
2025-02-18 06:24:40 +00:00
07495d5bb6 Accepting request 1196314 from systemsmanagement
OBS-URL: https://build.opensuse.org/request/show/1196314
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=28
2024-08-29 13:42:47 +00:00
Christian Wittmer
d673f232b6 Accepting request 1196246 from home:pgajdos
- remove dependency on /usr/bin/python3 using
  %python3_fix_shebang macro, [bsc#1212476]

OBS-URL: https://build.opensuse.org/request/show/1196246
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=37
2024-08-27 15:39:13 +00:00
5f0343e8db Accepting request 1179629 from systemsmanagement
- Use %autosetup macro: allows us to eliminate usage of deprecated
  %patchN syntax. (forwarded request 1175519 from dimstar)

OBS-URL: https://build.opensuse.org/request/show/1179629
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=27
2024-06-10 15:37:07 +00:00
23e8056ba2 Accepting request 1175519 from home:dimstar:Factory
- Use %autosetup macro: allows us to eliminate usage of deprecated
  %patchN syntax.

OBS-URL: https://build.opensuse.org/request/show/1175519
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=35
2024-06-10 07:43:06 +00:00
Richard Brown
da500cdaaa Accepting request 910816 from systemsmanagement
OBS-URL: https://build.opensuse.org/request/show/910816
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=26
2021-08-12 07:01:06 +00:00
Philipp Wagner
bd13ce5580 Accepting request 909536 from home:phiwag:branches:systemsmanagement
Update to upstream version 4.8.0

OBS-URL: https://build.opensuse.org/request/show/909536
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=34
2021-08-09 09:35:17 +00:00
7f83b688dc Accepting request 891845 from systemsmanagement
OBS-URL: https://build.opensuse.org/request/show/891845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=25
2021-05-12 17:31:28 +00:00
Lars Vogdt
92b39344bc Accepting request 891083 from home:phiwag:branches:systemsmanagement
Update to upstream version 4.7.1

OBS-URL: https://build.opensuse.org/request/show/891083
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=32
2021-05-09 12:53:43 +00:00
Richard Brown
a974d9e62e Accepting request 882079 from systemsmanagement
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/882079
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/Modules?expand=0&rev=24
2021-04-06 15:28:49 +00:00
ce33d16702 Accepting request 880611 from home:phiwag:branches:systemsmanagement
- Mark the download service as disabled to meet factory submission
  guidelines.
- Add a runtime dependency on Python for createmodule.py script.
- Set /usr/bin/python3 as interpreter for all Python scripts (instead
  of relying on /usr/bin/env, which is used by default).
- Add fdupes back to solve rpmlint warning.

OBS-URL: https://build.opensuse.org/request/show/880611
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=30
2021-03-29 12:02:18 +00:00
Klaus Kämpf
40a2227392 Accepting request 874078 from home:phiwag:branches:systemsmanagement
Update to 4.7.0, add fish support, and clean up spec file

OBS-URL: https://build.opensuse.org/request/show/874078
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/Modules?expand=0&rev=29
2021-02-25 20:40:49 +00:00
5 changed files with 166 additions and 62 deletions

View File

@@ -1,3 +1,82 @@
-------------------------------------------------------------------
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>
- Use %autosetup macro: allows us to eliminate usage of deprecated
%patchN syntax.
-------------------------------------------------------------------
Sat Jul 31 16:52:07 UTC 2021 - Philipp Wagner <mail@philipp-wagner.com>
- Update to upstream version 4.8.0
See https://modules.readthedocs.io/en/latest/NEWS.html#modules-4-8-0-2021-07-14
for a list of changes.
-------------------------------------------------------------------
Thu May 6 15:40:13 UTC 2021 - Philipp Wagner <mail@philipp-wagner.com>
- Update to upstream version 4.7.1
* Doc: clarify the license terms used by the project. (fix issue #389)
* Align all files from the Modules project under the GPLv2+ license.
Scripts and libraries that were previously licensed with GPLv3+ have
been moved to GPLv2+ with the consent of their respective copyright
holders. (fix issue #389)
* Revert "Install: have configure script assume the . dot directory
when invoked without the prepended ./" as consent was not obtained
from author to relicense the contribution to GPLv2+.
* Doc: fixes few typos in module(1) and modulefile(4).
* Update the sh-to-mod mechanism to support version 3.2 of the fish
shell. Fish 3.2 introduces the . builtin command that should be
regexp-escaped when determining the shell functions or aliases
defined by the script analyzed by sh-to-mod.
* Vim: update addon files to highlight modulefile variables ModuleTool,
ModuleToolVersion and ModulesCurrentModulefile.
* Doc: update the description and default value of the
--with-dark-background-colors and --with-light-background-colors
installation options.
* Doc: add description of changes that occurred on versions 4.6 and 4.7
for the --with-dark-background-colors and --with-light-background-colors
installation options and for the MODULES_COLORS environment variable.
* Doc: correct the default value of the --with-tag-abbrev installation
option.
* Doc: add Sticky modules cookbook recipe.
- Correct package license to GPLv2+, matching upstream.
-------------------------------------------------------------------
Mon Mar 22 18:48:48 UTC 2021 - Philipp Wagner <mail@philipp-wagner.com>
- Mark the download service as disabled to meet factory submission
guidelines.
- Add a runtime dependency on Python for createmodule.py script.
- Set /usr/bin/python3 as interpreter for all Python scripts (instead
of relying on /usr/bin/env, which is used by default).
- Add fdupes back to solve rpmlint warning.
-------------------------------------------------------------------
Sat Feb 20 23:27:43 UTC 2021 - Philipp Wagner <mail@philipp-wagner.com>
- Update to version 4.7.0
Check https://github.com/cea-hpc/modules/releases/tag/v4.7.0
for details.
- Mark sh and csh module initialization scripts installed into
/etc/profile.d as managed by this package by moving the symlinking
to the %install section.
- Support fish (shell completion and functionality).
- Use a source service instead of manually adding the source tarball.
- Clean up spec file to remove unused code (e.g. CFLAGS which aren't
used in the source code any more, since it's all TCL now).
- Update description to match the current description on the homepage.
-------------------------------------------------------------------
Fri May 15 05:39:32 UTC 2020 - Egbert Eich <eich@suse.com>
@@ -14,9 +93,9 @@ Fri May 15 05:39:32 UTC 2020 - Egbert Eich <eich@suse.com>
-------------------------------------------------------------------
Tue Apr 17 11:13:53 UTC 2018 - boris@steki.net
- rolled back change from /usr/share/Modules (package name) to old
- rolled back change from /usr/share/Modules (package name) to old
expected behavior /usr/share/modules
- fixed redhat/fedora builds
- fixed redhat/fedora builds
-------------------------------------------------------------------
Mon Apr 16 19:24:51 UTC 2018 - boris@steki.net
@@ -87,7 +166,7 @@ Mon Sep 10 08:30:51 UTC 2012 - kkaempf@suse.com
-------------------------------------------------------------------
Wed Aug 29 20:11:14 UTC 2012 - alinm.elena@gmail.com
- update to 3.2.9c
- update to 3.2.9c
* Fix the coexistence of load/remove flags (Martin Siegert)
* Fixed an overlapping string copy (Wilson Snyder & Orion Poplawski)
* Isolated calls to the new interpreter and get & set env.vars.
@@ -96,7 +175,7 @@ Wed Aug 29 20:11:14 UTC 2012 - alinm.elena@gmail.com
* Fixed the "module purge" memory corruption (Poor Yorick)
* Added support for Ruby (Tammo Tjarks)
- replace defaut in the profile files with the proper version
- make module files from /etc %config
- make module files from /etc %config
-------------------------------------------------------------------
Thu Dec 1 11:19:55 UTC 2011 - coolo@suse.com
@@ -182,4 +261,3 @@ Wed Jun 6 19:07:27 CEST 2001 - nashif@suse.de
Mon Feb 19 07:25:27 MET 2001 - nashif@suse.de
- Initial Release (Version 3.1.1)

View File

@@ -1,7 +1,7 @@
#
# spec file for package Modules
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -22,16 +22,17 @@ BuildRequires: fdupes
BuildRequires: less
BuildRequires: procps
BuildRequires: tcl-devel
# xorg-x11-devel
URL: http://modules.sourceforge.net/
Version: 4.5.0
Version: 4.8.0
Release: 0
Summary: Change environment at runtime
License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
License: GPL-2.0-or-later
Group: System/Management
Requires: python3
Requires: tcl
Source: https://download.sourceforge.net/project/modules/Modules/modules-%{version}/modules-%{version}.tar.gz
Patch1: Remove-empty-unused-static-function.patch
BuildRequires: python-rpm-macros
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Provides: environment-modules
%if 0%{?suse_version}
@@ -44,62 +45,80 @@ BuildRequires: perl(Exporter)
%endif
%description
The Modules package provides for dynamic modification of a user's
environment with module files. Each module file contains the
information needed to configure the shell for an application. Once the
package is initialized, the environment can be modified dynamically on
a per-module basis using the module command that interprets module
files. Typically, module files instruct the module command to alter or
set shell environment variables, such as PATH or MANPATH. Module files
may be shared by many users on a system and users may have their own
collection to supplement or replace the shared module files. The
modules environment is common on SGI/Crays and many workstation farms.
The Modules package is a tool that simplify shell initialization and lets
users easily modify their environment during the session with modulefiles.
Each modulefile contains the information needed to configure the shell for an
application. Once the Modules package is initialized, the environment can be
modified on a per-module basis using the module command which interprets
modulefiles. Typically modulefiles instruct the module command to alter or set
shell environment variables such as PATH, MANPATH, etc. modulefiles may be
shared by many users on a system and users may have their own collection to
supplement or replace the shared modulefiles.
Modules can be loaded and unloaded dynamically and atomically, in an clean
fashion. All popular shells are supported, including bash, ksh, zsh, sh, csh,
tcsh, fish, as well as some scripting languages such as tcl, perl, python,
ruby, cmake and r.
Modules are useful in managing different versions of applications. Modules can
also be bundled into metamodules that will load an entire suite of different
applications.
%package doc
Summary: Documentation for Change environment at runtime
Summary: Documentation for Environment Modules
Group: Documentation/Other
BuildArch: noarch
%description doc
The Modules package provides for dynamic modification of a user's
environment with module files. Each module file contains the
information needed to configure the shell for an application. Once the
package is initialized, the environment can be modified dynamically on
a per-module basis using the module command that interprets module
files. Typically, module files instruct the module command to alter or
set shell environment variables, such as PATH or MANPATH. Module files
may be shared by many users on a system and users may have their own
collection to supplement or replace the shared module files. The
modules environment is common on SGI/Crays and many workstation farms.
The Modules package is a tool that simplify shell initialization and lets
users easily modify their environment during the session with modulefiles.
Each modulefile contains the information needed to configure the shell for an
application. Once the Modules package is initialized, the environment can be
modified on a per-module basis using the module command which interprets
modulefiles. Typically modulefiles instruct the module command to alter or set
shell environment variables such as PATH, MANPATH, etc. modulefiles may be
shared by many users on a system and users may have their own collection to
supplement or replace the shared modulefiles.
Modules can be loaded and unloaded dynamically and atomically, in an clean
fashion. All popular shells are supported, including bash, ksh, zsh, sh, csh,
tcsh, fish, as well as some scripting languages such as tcl, perl, python,
ruby, cmake and r.
Modules are useful in managing different versions of applications. Modules can
also be bundled into metamodules that will load an entire suite of different
applications.
%define vimdatadir %{_datadir}/vim/site
%prep
%setup -q -n modules-%{version}
%patch1 -p1
%autosetup -p1 -n modules-%{version}
# This is debatable:
# if the replace 'bash' consecutive calls to 'modules' would still
# run with the original bash. Maybe not intended.
sed -i 's@/usr/bin/env bash@/bin/bash@' script/envml
%build
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE" \
./configure \
--initdir="%{_datadir}/%name/init" \
--libexecdir="%{_prefix}/%_lib/%{name}/" \
--prefix="%_prefix" \
--with-version-path="%_datadir/%{name}" \
--modulefilesdir="%{_datadir}/modules" \
--mandir=%{_mandir} \
--with-etc-path="%_sysconfdir" \
--with-skel-path="%_sysconfdir/skel" \
--with-tcl=%{_libdir} \
--without-x \
%{?!vimdatadir: --disable-vim-addons} \
%{?vimdatadir: --vimdatadir=%{vimdatadir}} \
--etcdir=%{_sysconfdir}/%{name} \
--libdir=%{_libdir}/%{name}
make %{?_smp_mflags}
%configure \
--initdir="%{_datadir}/%name/init" \
--libexecdir="%{_prefix}/%_lib/%{name}/" \
--prefix="%_prefix" \
--with-version-path="%_datadir/%{name}" \
--modulefilesdir="%{_datadir}/modules" \
--mandir=%{_mandir} \
--with-etc-path="%_sysconfdir" \
--with-skel-path="%_sysconfdir/skel" \
--with-tcl=%{_libdir} \
%{?!vimdatadir: --disable-vim-addons} \
%{?vimdatadir: --vimdatadir=%{vimdatadir}} \
--etcdir=%{_sysconfdir}/%{name} \
--libdir=%{_libdir}/%{name} \
--enable-compat-version \
--with-python=/usr/bin/python3
%make_build
%install
install -d %{buildroot}/usr/share/modules
@@ -108,18 +127,14 @@ make DESTDIR=%{buildroot} install
install -d %{buildroot}/usr/bin
mv %{buildroot}/usr/share/doc doc_dir
%fdupes -s %{buildroot}%{_datadir}
%python3_fix_shebang
%post
[ -e %{_sysconfdir}/profiles.d/modules.sh ] || \
ln -sf %{_datadir}/Modules/init/profile.sh %{_sysconfdir}/profile.d/modules.sh
[ -e %{_sysconfdir}/profiles.d/modules.sh ] || \
ln -sf %{_datadir}/Modules/init/profile.csh %{_sysconfdir}/profile.d/modules.csh
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
%postun
[ -e %{_sysconfdir}/profiles.d/modules.sh ] || \
rm -f %{_sysconfdir}/profile.d/modules.sh
[ -e %{_sysconfdir}/profiles.d/modules.csh ] || \
rm -f %{_sysconfdir}/profile.d/modules.csh
mkdir -p %{buildroot}%{_datadir}/fish/{vendor_completions.d,vendor_functions.d}
ln -sf %{_datadir}/Modules/init/fish_completion %{buildroot}%{_datadir}/fish/vendor_completions.d/module.fish
ln -sf %{_datadir}/Modules/init/fish %{buildroot}%{_datadir}/fish/vendor_functions.d/module.fish
%files
%defattr(-,root,root)
@@ -145,6 +160,13 @@ mv %{buildroot}/usr/share/doc doc_dir
%{_mandir}/man1/module.1*
%{_mandir}/man4/modulefile-compat.4*
%{_mandir}/man4/modulefile.4*
%{_sysconfdir}/profile.d/modules.sh
%{_sysconfdir}/profile.d/modules.csh
%dir %{_datadir}/fish/
%dir %{_datadir}/fish/vendor_completions.d/
%{_datadir}/fish/vendor_completions.d/module.fish
%dir %{_datadir}/fish/vendor_functions.d/
%{_datadir}/fish/vendor_functions.d/module.fish
%files doc
%defattr(-,root,root)

4
_service Normal file
View File

@@ -0,0 +1,4 @@
<services>
<service name="download_files" mode="disabled"/>
</services>

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5f46336f612553af5553d99347f387f733de0aaa0d80d4572e67615289382ec8
size 1849421

BIN
modules-4.8.0.tar.gz LFS Normal file

Binary file not shown.