Accepting request 534974 from home:alarrosa:branches:systemsmanagement

- Follow the shared library packaging policy. Created new packages
  libipmiconsole2, libipmidetect0, libipmimonitoring6, libfreeipmi17

OBS-URL: https://build.opensuse.org/request/show/534974
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/freeipmi?expand=0&rev=89
This commit is contained in:
Klaus Kämpf 2017-10-19 09:33:04 +00:00 committed by Git OBS Bridge
parent 2c4e54978a
commit 1c961bebd5
2 changed files with 89 additions and 8 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Oct 18 14:54:53 UTC 2017 - alarrosa@suse.com
- Follow the shared library packaging policy. Created new packages
libipmiconsole2, libipmidetect0, libipmimonitoring6, libfreeipmi17
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 30 10:02:28 UTC 2017 - kkaempf@suse.com Wed Aug 30 10:02:28 UTC 2017 - kkaempf@suse.com

View File

@ -23,8 +23,6 @@
%define has_systemd 0 %define has_systemd 0
%endif %endif
%define name freeipmi
%define version 1.5.7
%define srcversion %{version} %define srcversion %{version}
%if %{?_with_debug:1}%{!?_with_debug:0} %if %{?_with_debug:1}%{!?_with_debug:0}
%define release 1.debug%{?dist} %define release 1.debug%{?dist}
@ -32,10 +30,15 @@
%define release 1%{?dist} %define release 1%{?dist}
%endif %endif
%define libipmiconsole_soname 2
%define libipmidetect_soname 0
%define libipmimonitoring_soname 6
%define libfreeipmi_soname 17
%{!?_initddir: %global _initddir %{_sysconfdir}/init.d} %{!?_initddir: %global _initddir %{_sysconfdir}/init.d}
Name: %{name} Name: freeipmi
Version: %{version} Version: 1.5.7
Release: %{release} Release: %{release}
Url: http://www.gnu.org/software/freeipmi/ Url: http://www.gnu.org/software/freeipmi/
Source0: http://ftp.gnu.org/gnu/freeipmi/%{name}-%{srcversion}.tar.gz Source0: http://ftp.gnu.org/gnu/freeipmi/%{name}-%{srcversion}.tar.gz
@ -76,6 +79,10 @@ Platform Management Interface specification.
Summary: Development package for FreeIPMI Summary: Development package for FreeIPMI
Group: Development/Tools/Other Group: Development/Tools/Other
Requires: freeipmi = %{version} Requires: freeipmi = %{version}
Requires: libfreeipmi%{libfreeipmi_soname} = %{version}
Requires: libipmiconsole%{libipmiconsole_soname} = %{version}
Requires: libipmidetect%{libipmidetect_soname} = %{version}
Requires: libipmimonitoring%{libipmimonitoring_soname} = %{version}
%description devel %description devel
Development package for FreeIPMI. This package includes the FreeIPMI Development package for FreeIPMI. This package includes the FreeIPMI
@ -119,6 +126,50 @@ This service detects and monitors IPMI nodes.
%define _enable_debug --enable-debug --enable-trace %define _enable_debug --enable-debug --enable-trace
%endif %endif
%package -n libipmiconsole%{libipmiconsole_soname}
Summary: FreeIPMI library
Group: System/Libraries
%description -n libipmiconsole%{libipmiconsole_soname}
This project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface specification.
This package contains the libipmiconsole library.
%package -n libipmidetect%{libipmidetect_soname}
Summary: FreeIPMI library
Group: System/Libraries
%description -n libipmidetect%{libipmidetect_soname}
This project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface specification.
This package contains the libipmidetect library.
%package -n libipmimonitoring%{libipmimonitoring_soname}
Summary: FreeIPMI library
Group: System/Libraries
%description -n libipmimonitoring%{libipmimonitoring_soname}
This project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface specification.
This package contains the libipmimonitoring library.
%package -n libfreeipmi%{libfreeipmi_soname}
Summary: FreeIPMI library
Group: System/Libraries
%description -n libfreeipmi%{libfreeipmi_soname}
This project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface specification.
This package contains the libfreeipmi library.
%prep %prep
%setup -q -n %{name}-%{srcversion} %setup -q -n %{name}-%{srcversion}
@ -212,6 +263,18 @@ fi
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig
%post -n libipmiconsole%{libipmiconsole_soname} -p /sbin/ldconfig
%postun -n libipmiconsole%{libipmiconsole_soname} -p /sbin/ldconfig
%post -n libipmidetect%{libipmidetect_soname} -p /sbin/ldconfig
%postun -n libipmidetect%{libipmidetect_soname} -p /sbin/ldconfig
%post -n libipmimonitoring%{libipmimonitoring_soname} -p /sbin/ldconfig
%postun -n libipmimonitoring%{libipmimonitoring_soname} -p /sbin/ldconfig
%post -n libfreeipmi%{libfreeipmi_soname} -p /sbin/ldconfig
%postun -n libfreeipmi%{libfreeipmi_soname} -p /sbin/ldconfig
%post bmc-watchdog %post bmc-watchdog
%if 0%{?suse_version} %if 0%{?suse_version}
%{fillup_only} %{fillup_only}
@ -346,10 +409,6 @@ fi
%else %else
%{_initddir}/ipmiseld %{_initddir}/ipmiseld
%endif %endif
%{_libdir}/libipmiconsole*so.*
%{_libdir}/libipmidetect*so.*
%{_libdir}/libfreeipmi*so.*
%{_libdir}/libipmimonitoring.so.*
%{_localstatedir}/lib/* %{_localstatedir}/lib/*
%{_sbindir}/ipmi-config %{_sbindir}/ipmi-config
%{_sbindir}/bmc-config %{_sbindir}/bmc-config
@ -517,4 +576,20 @@ fi
%{_mandir}/man5/ipmidetectd.conf.5* %{_mandir}/man5/ipmidetectd.conf.5*
%{_mandir}/man8/ipmidetectd.8* %{_mandir}/man8/ipmidetectd.8*
%files -n libipmiconsole%{libipmiconsole_soname}
%defattr(-,root,root)
%{_libdir}/libipmiconsole*so.%{libipmiconsole_soname}*
%files -n libipmidetect%{libipmidetect_soname}
%defattr(-,root,root)
%{_libdir}/libipmidetect*so.%{libipmidetect_soname}*
%files -n libipmimonitoring%{libipmimonitoring_soname}
%defattr(-,root,root)
%{_libdir}/libipmimonitoring.so.%{libipmimonitoring_soname}*
%files -n libfreeipmi%{libfreeipmi_soname}
%defattr(-,root,root)
%{_libdir}/libfreeipmi*so.%{libfreeipmi_soname}*
%changelog %changelog