Accepting request 773456 from home:namtrac:branches:systemsmanagement

- Don't hardcode /usr but use rpm variables

OBS-URL: https://build.opensuse.org/request/show/773456
OBS-URL: https://build.opensuse.org/package/show/systemsmanagement/ipmitool?expand=0&rev=52
This commit is contained in:
Thomas Renninger 2020-02-11 13:59:06 +00:00 committed by Git OBS Bridge
parent 0728bd93f6
commit 331d0a61d2
2 changed files with 13 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Feb 11 13:39:26 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Don't hardcode /usr but use rpm variables
-------------------------------------------------------------------
Mon Feb 10 08:27:23 UTC 2020 - trenn@suse.de

View File

@ -1,7 +1,7 @@
#
# spec file for package ipmitool
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -22,7 +22,7 @@ Release: 0
Summary: Utility for IPMI Control
License: BSD-3-Clause
Group: System/Management
Url: https://github.com/ipmitool/ipmitool
URL: https://github.com/ipmitool/ipmitool
Source: %{name}-%{version}.tar.xz
Source1: ipmievd.service
Source2: ipmievd.sysconf
@ -62,9 +62,9 @@ and setting LAN configuration, and chassis power control.
%package bmc-snmp-proxy
Summary: SNMP configuration to include the BMC's SNMP agent
Group: System/Management
Requires: net-snmp, ipmitool >= %{version}
BuildArch: noarch
Group: System/Management
Requires: net-snmp, ipmitool >= %{version}
BuildArch: noarch
%description bmc-snmp-proxy
Given a host with BMC, this package would extend system configuration
@ -87,7 +87,7 @@ make %{?_smp_mflags}
%make_install
rm -rf %{buildroot}%{_datadir}/doc/ipmitool
install -D -m 644 %{SOURCE3} %{buildroot}/usr/share/misc/enterprise-numbers
install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/misc/enterprise-numbers
# exchange-bmc-os-info service
install -D -m 0755 contrib/exchange-bmc-os-info.init.redhat %{buildroot}/%{_sbindir}/exchange-bmc-os-info
@ -145,7 +145,7 @@ ln -sf service %{buildroot}%{_sbindir}/rcbmc-snmp-proxy
%{_unitdir}/ipmievd.service
%{_mandir}/man1/*
%{_mandir}/man8/*
/usr/share/misc/enterprise-numbers
%{_datadir}/misc/enterprise-numbers
%files bmc-snmp-proxy
%attr(755,root,root) %{_sbindir}/bmc-snmp-proxy