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
This commit is contained in:
Olaf Hering 2021-03-29 12:02:18 +00:00 committed by Git OBS Bridge
parent d666dc9843
commit 9725cbddb9
4 changed files with 16 additions and 3 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
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> Sat Feb 20 23:27:43 UTC 2021 - Philipp Wagner <mail@philipp-wagner.com>

View File

@ -18,6 +18,7 @@
Name: Modules Name: Modules
BuildRequires: automake BuildRequires: automake
BuildRequires: fdupes
BuildRequires: less BuildRequires: less
BuildRequires: procps BuildRequires: procps
BuildRequires: tcl-devel BuildRequires: tcl-devel
@ -27,6 +28,7 @@ Release: 0
Summary: Change environment at runtime Summary: Change environment at runtime
License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later License: BSD-3-Clause AND GPL-2.0-or-later AND LGPL-2.1-or-later
Group: System/Management Group: System/Management
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
@ -62,7 +64,6 @@ Modules are useful in managing different versions of applications. Modules can
also be bundled into metamodules that will load an entire suite of different also be bundled into metamodules that will load an entire suite of different
applications. applications.
%package doc %package doc
Summary: Documentation for Environment Modules Summary: Documentation for Environment Modules
Group: Documentation/Other Group: Documentation/Other
@ -114,7 +115,8 @@ sed -i 's@/usr/bin/env bash@/bin/bash@' script/envml
%{?vimdatadir: --vimdatadir=%{vimdatadir}} \ %{?vimdatadir: --vimdatadir=%{vimdatadir}} \
--etcdir=%{_sysconfdir}/%{name} \ --etcdir=%{_sysconfdir}/%{name} \
--libdir=%{_libdir}/%{name} \ --libdir=%{_libdir}/%{name} \
--enable-compat-version --enable-compat-version \
--with-python=/usr/bin/python3
make %{?_smp_mflags} make %{?_smp_mflags}
%install %install
@ -123,6 +125,7 @@ install -d %{buildroot}/etc/profile.d
make DESTDIR=%{buildroot} install 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}
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

View File

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