mirror of
https://github.com/xcat2/xcat-dep.git
synced 2024-11-24 10:29:53 +00:00
08417ff4b8
Former-commit-id: 77a346a5aa8bb52d94cc93b4b7d6f53f3f1d1c43
37 lines
584 B
RPMSpec
37 lines
584 B
RPMSpec
%define name zhcp
|
|
|
|
Summary: zhcp
|
|
Name: %{name}
|
|
Version: 1.2
|
|
Release: 1
|
|
Source: zhcp-build.tar.gz
|
|
Vendor: IBM
|
|
License: IBM (C) Copyright 2011 Eclipse Public License
|
|
Group: System/tools
|
|
Prefix: %{_prefix}
|
|
|
|
%description
|
|
The System z hardware control point (zHCP) is C program API to interface with
|
|
z/VM SMAPI.
|
|
|
|
%prep
|
|
cd /opt/zhcp-build/SOURCES/
|
|
tar -zxvf zhcp-build.tar.gz -C /opt/zhcp-build/BUILD/ --strip 1
|
|
|
|
%build
|
|
make
|
|
|
|
%install
|
|
make install
|
|
make post
|
|
make clean
|
|
|
|
%post
|
|
echo "/opt/zhcp/lib" > /etc/ld.so.conf.d/zhcp.conf
|
|
/sbin/ldconfig
|
|
|
|
%files
|
|
%defattr(-,root,root,755)
|
|
/opt/zhcp/*
|
|
|