mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-27 19:59:19 +00:00
Updated zhcp package with man page and updated smcli executable.
Former-commit-id: 43487281816cff98ad5bedd029a51a3c0686e62e
This commit is contained in:
parent
c00858d0f7
commit
f2c8a5acdd
Binary file not shown.
@ -6,9 +6,10 @@ Version: 1.3
|
||||
Release: 1
|
||||
Source: zhcp-build.tar.gz
|
||||
Vendor: IBM
|
||||
License: IBM (C) Copyright 2012 Eclipse Public License
|
||||
License: IBM Copyright 2012 Eclipse Public License
|
||||
Group: System/tools
|
||||
Prefix: %{_prefix}
|
||||
BuildRoot: %{_tmppath}/zhcp
|
||||
Prefix: /opt/zhcp
|
||||
|
||||
%description
|
||||
The System z hardware control point (zHCP) is C program API to interface with
|
||||
@ -25,11 +26,27 @@ make install
|
||||
make post
|
||||
make clean
|
||||
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/bin
|
||||
ln -sf %{prefix}/bin/smcli $RPM_BUILD_ROOT/usr/bin
|
||||
chmod 644 $RPM_BUILD_ROOT/usr/bin/smcli
|
||||
mkdir -p $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
cp smcli.1.gz $RPM_BUILD_ROOT/usr/share/man/man1/
|
||||
|
||||
%post
|
||||
echo "/opt/zhcp/lib" > /etc/ld.so.conf.d/zhcp.conf
|
||||
/sbin/ldconfig
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,755)
|
||||
/opt/zhcp/*
|
||||
%preun
|
||||
# Delete man page and smcli command
|
||||
rm -rf /etc/ld.so.conf.d/zhcp.conf
|
||||
rm -rf /usr/bin/smcli
|
||||
rm -rf /usr/share/man/man1/smcli.1.gz
|
||||
|
||||
%files
|
||||
# Files provided by this package
|
||||
%defattr(-,root,root)
|
||||
/opt/zhcp/*
|
||||
/etc/ld.so.conf.d/zhcp.conf
|
||||
/usr/bin/smcli
|
||||
/usr/share/man/man1/smcli.1.gz
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user