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