diff --git a/freeipmi.changes b/freeipmi.changes index 1761634..38c5272 100644 --- a/freeipmi.changes +++ b/freeipmi.changes @@ -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 diff --git a/freeipmi.spec b/freeipmi.spec index 5862011..046df42 100644 --- a/freeipmi.spec +++ b/freeipmi.spec @@ -23,8 +23,6 @@ %define has_systemd 0 %endif -%define name freeipmi -%define version 1.5.7 %define srcversion %{version} %if %{?_with_debug:1}%{!?_with_debug:0} %define release 1.debug%{?dist} @@ -32,10 +30,15 @@ %define release 1%{?dist} %endif +%define libipmiconsole_soname 2 +%define libipmidetect_soname 0 +%define libipmimonitoring_soname 6 +%define libfreeipmi_soname 17 + %{!?_initddir: %global _initddir %{_sysconfdir}/init.d} -Name: %{name} -Version: %{version} +Name: freeipmi +Version: 1.5.7 Release: %{release} Url: http://www.gnu.org/software/freeipmi/ Source0: http://ftp.gnu.org/gnu/freeipmi/%{name}-%{srcversion}.tar.gz @@ -76,6 +79,10 @@ Platform Management Interface specification. Summary: Development package for FreeIPMI Group: Development/Tools/Other 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 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 %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 %setup -q -n %{name}-%{srcversion} @@ -212,6 +263,18 @@ fi %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 %if 0%{?suse_version} %{fillup_only} @@ -346,10 +409,6 @@ fi %else %{_initddir}/ipmiseld %endif -%{_libdir}/libipmiconsole*so.* -%{_libdir}/libipmidetect*so.* -%{_libdir}/libfreeipmi*so.* -%{_libdir}/libipmimonitoring.so.* %{_localstatedir}/lib/* %{_sbindir}/ipmi-config %{_sbindir}/bmc-config @@ -517,4 +576,20 @@ fi %{_mandir}/man5/ipmidetectd.conf.5* %{_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