diff --git a/superlu-rpmlintrc b/superlu-rpmlintrc deleted file mode 100644 index f7feab9..0000000 --- a/superlu-rpmlintrc +++ /dev/null @@ -1,7 +0,0 @@ -# This line is mandatory to access the configuration functions -from Config import * - -# HPC libs are installed in a non-standard location: don't run ldconfig -addFilter("superlu.*-hpc.* library-without-ldconfig-postin") -addFilter("superlu.*-hpc.* library-without-ldconfig-postun") - diff --git a/superlu.changes b/superlu.changes index 6eec850..ce14fdf 100644 --- a/superlu.changes +++ b/superlu.changes @@ -1,9 +1,9 @@ ------------------------------------------------------------------- -Wed Jan 16 09:35:05 UTC 2019 - eich@suse.com +Fri Jan 18 14:46:44 UTC 2019 - eich@suse.com -- Limit rpmlintrc filters to HPC packages and document the - motivation behind it: HPC libraries are installed into - non-standard install paths. +- Reenable ldconfig in %post and %postun for HPC but don't let it + update the cache: this would be pointless for libraries in + non-standard locations. ------------------------------------------------------------------- Thu Jan 10 09:31:45 UTC 2019 - eich@suse.com diff --git a/superlu.spec b/superlu.spec index 18fff82..37500e9 100644 --- a/superlu.spec +++ b/superlu.spec @@ -59,7 +59,6 @@ Release: 0 Source: http://crd-legacy.lbl.gov/%7Exiaoye/SuperLU/%{pname}_%{version}.tar.gz Source1: superlu_ug.pdf Source2: README.SUSE -Source3: superlu-rpmlintrc # PATCH-FEATURE-OPENSUSE superlu-5.2-make.patch : add compiler and build flags in make.inc Patch0: superlu-5.2-make.patch # PATCH-FIX-UPSTREAM superlu-4.3-include.patch : avoid implicit declaration warnings @@ -215,6 +214,11 @@ EOF %if %{without hpc} %post -n lib%{name}%{?_sover} -p /sbin/ldconfig %postun -n lib%{name}%{?_sover} -p /sbin/ldconfig +%else +%post -n lib%{name}%{?_sover} +/sbin/ldconfig -N %hpc_libdir +%postun -n lib%{name}%{?_sover} +/sbin/ldconfig -N %hpc_libdir %endif %files -n lib%{name}%{?_sover}