Accepting request 1083915 from home:eeich:branches:science

- Fix broken magic in HPC module file. This has been broken since:
   Wed Apr 19 23:20:41 UTC 2023 - Christoph G <foss@grueninger.de>
   - Fix two rpmlint warning.
- Add rpmlintrc.

OBS-URL: https://build.opensuse.org/request/show/1083915
OBS-URL: https://build.opensuse.org/package/show/science/superlu?expand=0&rev=41
This commit is contained in:
Christian Goll 2023-05-04 14:43:59 +00:00 committed by Git OBS Bridge
parent be4d3bc354
commit ef35587763
3 changed files with 22 additions and 3 deletions

View File

@ -1,3 +1,12 @@
-------------------------------------------------------------------
Mon May 1 10:05:57 UTC 2023 - Egbert Eich <eich@suse.com>
- Fix broken magic in HPC module file. This has been broken since:
Wed Apr 19 23:20:41 UTC 2023 - Christoph G <foss@grueninger.de>
- Fix two rpmlint warning.
- Add rpmlintrc.
-------------------------------------------------------------------
Wed Apr 19 23:20:41 UTC 2023 - Christoph G <foss@grueninger.de>

8
superlu.rpmlintrc Normal file
View File

@ -0,0 +1,8 @@
# In multibuild spec file names are expected to be different from source package names
addFilter(".*-hpc.*: E: invalid-spec-name")
# 'hidden' file names are standard for environment modules
addFilter(".*: W: hidden-file-or-dir /usr/share/lmod/.*/.version.*")
# Not a macro but the file magic for environment module files
addFilter(".*: W: macro-in-comment %Module1")
# Not a doc but an example package
addFilter(".*-examples.noarch: W: package-with-huge-docs .*")

View File

@ -1,5 +1,5 @@
#
# spec file for package superlu
# spec file
#
# Copyright (c) 2023 SUSE LLC
#
@ -94,6 +94,7 @@ Source0: %{pname}-%{version}.tar.gz
# Tarball above is generated with the script below
Source1: get-tarball.sh
Source2: README.SUSE
Source3: superlu.rpmlintrc
# PATCH-FIX-OPENSUSE superlu-remove-mc64ad.patch [bnc#796236]
# The Harwell Subroutine Library (HSL) routine mc64ad.c have been removed
# from the original sources for legal reasons. This patch disables the inclusion of
@ -145,7 +146,7 @@ Requires: %libname = %version
Recommends: %name-doc
%description devel
SuperLU headers and libraries files needed for development
SuperLU headers and libraries files needed for development %{with_hpc:(HPC variant)}
%package doc
Summary: Documentation for %name
@ -221,7 +222,7 @@ cp FORTRAN/README README.fortran
# TODO: is there any path to add for Matlab files?
%hpc_write_modules_files
#%Module1.0#####################################################################
proc ModulesHelp { } {
puts stderr " "
@ -263,6 +264,7 @@ EOF
%post -n %libname -p /sbin/ldconfig
%postun -n %libname -p /sbin/ldconfig
%else
%post -n %libname
/sbin/ldconfig -N %hpc_libdir