SHA256
1
0
forked from pool/slurm

Accepting request 540570 from home:eeich:branches:network:cluster

- Package so-versioned libs separate from non-so-versioned.
  This way, the non-so-versioned libs can remain installed
  without conflict.

OBS-URL: https://build.opensuse.org/request/show/540570
OBS-URL: https://build.opensuse.org/package/show/network:cluster/slurm?expand=0&rev=31
This commit is contained in:
Egbert Eich 2017-11-10 14:19:18 +00:00 committed by Git OBS Bridge
parent 2ea5b3f2de
commit 2dc1925cbd
2 changed files with 30 additions and 5 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Nov 10 13:52:30 UTC 2017 - eich@suse.com
- Package so-versioned libs separate from non-so-versioned.
This way, the non-so-versioned libs can remain installed
without conflict.
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Nov 1 16:15:04 UTC 2017 - eich@suse.com Wed Nov 1 16:15:04 UTC 2017 - eich@suse.com

View File

@ -16,8 +16,8 @@
# #
# Check file META in sources: update libslurm version to (API_CURRENT - API_AGE) # Check file META in sources: update so_version to (API_CURRENT - API_AGE)
%define libslurm libslurm31 %define so_version 31
%define ver 17.02.9 %define ver 17.02.9
# For anything newer than Leap 42.1 and SLE-12-SP1 build compatible to OpenHPC. # For anything newer than Leap 42.1 and SLE-12-SP1 build compatible to OpenHPC.
@ -51,6 +51,8 @@
%define slurm_g root %define slurm_g root
%endif %endif
%define libslurm libslurm%{so_version}
Name: slurm Name: slurm
Version: %{ver} Version: %{ver}
Release: 0 Release: 0
@ -143,10 +145,20 @@ This package contains the library needed to run programs dynamically linked
with SLURM. with SLURM.
%package -n lib%{name}
Summary: Libraries for SLURM
Group: System/Libraries
Requires: %{libslurm} = %version
%description -n lib%{name}
This package contains the library needed to run programs dynamically linked
with SLURM.
%package devel %package devel
Summary: Development package for SLURM Summary: Development package for SLURM
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{libslurm} = %{version} Requires: lib%{name} = %{version}
Requires: slurm = %{version} Requires: slurm = %{version}
%description devel %description devel
@ -483,9 +495,11 @@ exit 0
%endif %endif
%post -n %{libslurm} -p /sbin/ldconfig %post -n %{libslurm} -p /sbin/ldconfig
%postun -n %{libslurm} -p /sbin/ldconfig %postun -n %{libslurm} -p /sbin/ldconfig
%post -n lib%{name} -p /sbin/ldconfig
%postun -n lib%{name} -p /sbin/ldconfig
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%doc AUTHORS NEWS RELEASE_NOTES DISCLAIMER COPYING %doc AUTHORS NEWS RELEASE_NOTES DISCLAIMER COPYING
@ -592,7 +606,11 @@ exit 0
%files -n %{libslurm} %files -n %{libslurm}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/*.so.* %{_libdir}/*.so.%{so_version}*
%files -n lib%{name}
%defattr(-,root,root)
%{_libdir}/*.so.0*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)