Accepting request 640017 from home:jengelh:branches:systemsmanagement

Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/640017
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/openhpi?expand=0&rev=40
This commit is contained in:
Klaus Kämpf 2018-10-10 10:49:37 +00:00 committed by Git OBS Bridge
parent e8715a9fd7
commit ce089029a0
2 changed files with 39 additions and 41 deletions

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Oct 4 18:56:16 UTC 2018 - Jan Engelhardt <jengelh@inai.de>
- Implement shared library packaging guideline.
- Remove excess ldconfig calls. Avoid double-shipping README.daemon.
- Trim filler wording from description.
-------------------------------------------------------------------
Wed Sep 26 14:25:38 UTC 2018 - trenn@suse.de

View File

@ -46,21 +46,26 @@ BuildRequires: tcpd-devel
BuildRequires: pkgconfig(systemd)
%description
OpenHPI is an open source project created with the intent of providing
an implementation of the SA Forum's Hardware Platform Interface (HPI).
HPI provides an abstracted interface to managing computer hardware,
typically for chassis and rack based servers. HPI includes a resource
modeling; access to and control over sensor, control, watchdog, and
inventory data associated with resources; abstracted System Event Log
interfaces; hardware events and alerts; and a managed hotswap
interface.
OpenHPI implements the SA Forum's Hardware Platform Interface (HPI). HPI is an
abstracted interface for managing computer hardware, typically for chassis and
rack based servers. HPI includes a resource model; access to and control over
sensor, control, watchdog, and inventory data associated with resources;
abstracted System Event Log interfaces; hardware events and alerts; and a
managed hotswap interface.
OpenHPI provides a modular mechanism for adding new hardware and device
support easily. Many plug-ins exist in the OpenHPI source tree to
provide access to various types of hardware. This includes, but is not
limited to, IPMI based servers, Blade Center, and machines that export
data via sysfs. For up-to-date status on these components, check out
the status page.
support. Plug-ins exist for providing access to various types of hardware,
including IPMI-based servers, Blade Center, and machines that export data via
sysfs.
%package -n libopenhpi4
Summary: OpenHPI base libraries
Group: System/Libraries
%description -n libopenhpi4
OpenHPI implements the SA Forum's Hardware Platform Interface (HPI).
This subpackage contains the OpenHPI base libraries.
%package devel
Summary: Development Files for HPI
@ -75,8 +80,7 @@ Requires: libstdc++-devel
Requires: libtool
Requires: ncurses-devel
Requires: net-snmp-devel
Requires: openhpi = %{version}
Requires: openhpi-daemon
Requires: libopenhpi4 = %{version}
Requires: openssl-devel
Requires: popt-devel
Requires: zlib-devel
@ -84,7 +88,7 @@ Requires: zlib-devel
%description devel
Contains additional files needed for a developer to create applications
and/or middleware that use the Service Availability Forum's HPI
specification
specification.
%package clients
Summary: HPI Command-line Applications
@ -94,10 +98,9 @@ Requires: openhpi = %{version}
%description clients
This package contains HPI command-line utilities
Open HPI is an open source implementation of the SA Forum's Hardware
Platform Interface (HPI). HPI provides an abstracted interface to
managing computer hardware, typically for chassis and rack based
servers.
OpenHPI implements the SA Forum's Hardware Platform Interface (HPI). HPI is an
abstracted interface for managing computer hardware, typically for chassis and
rack based servers.
%package daemon
Summary: Implementation of SA Forum's Hardware Platform Interface (HPI)
@ -106,21 +109,9 @@ Requires: openhpi = %{version}
%{?systemd_requires}
%description daemon
OpenHPI is an open source project created with the intent of providing
an implementation of the SA Forum's Hardware Platform Interface (HPI).
HPI provides an abstracted interface to managing computer hardware,
typically for chassis and rack based servers. HPI includes a resource
modeling; access to and control over sensor, control, watchdog, and
inventory data associated with resources; abstracted System Event Log
interfaces; hardware events and alerts; and a managed hotswap
interface.
OpenHPI provides a modular mechanism for adding new hardware and device
support easily. Many plugins exist in the OpenHPI source tree to
provide access to various types of hardware. This includes, but is not
limited to, IPMI based servers, Blade Center, and machines which export
data via sysfs. For up-to-date status on these components, please check
out the status page.
OpenHPI implements the SA Forum's Hardware Platform Interface (HPI). HPI is an
abstracted interface for managing computer hardware, typically for chassis and
rack based servers.
%prep
%setup -q
@ -157,8 +148,8 @@ ln -sf service %{buildroot}%{_sbindir}/rcopenhpid
rm -rv %{buildroot}%{_datadir}/doc/%{name}
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%post -n libopenhpi4 -p /sbin/ldconfig
%postun -n libopenhpi4 -p /sbin/ldconfig
%pre daemon
%service_add_pre openhpid.service
@ -167,12 +158,10 @@ find %{buildroot} -type f -name "*.la" -delete -print
%service_del_preun openhpid.service
%post daemon
/sbin/ldconfig
%service_add_post openhpid.service
echo "Check OPENHPI_UNCONFIGURED in %{_sysconfdir}/openhpi/openhpi.conf"
%postun daemon
/sbin/ldconfig
%service_del_postun openhpid.service
%files
@ -180,13 +169,15 @@ echo "Check OPENHPI_UNCONFIGURED in %{_sysconfdir}/openhpi/openhpi.conf"
%dir %attr(0750,root,root) %{_sysconfdir}/openhpi
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/openhpi/*
%license COPYING
%doc ChangeLog README README.daemon *.example
%doc ChangeLog README *.example
%dir %{_localstatedir}/lib/openhpi
%dir %{_libdir}/openhpi
%{_libdir}/libopen*.so.*
%{_libdir}/openhpi/lib*.so*
%{_mandir}/man7/openhpi.7%{?ext_man}
%files -n libopenhpi4
%{_libdir}/libopen*.so.*
%files devel
%{_includedir}/openhpi
%{_libdir}/pkgconfig/openhpi.pc