diff --git a/zhcp/zhcp-build.tar.gz b/zhcp/zhcp-build.tar.gz index c6fd720..bae7c0f 100644 Binary files a/zhcp/zhcp-build.tar.gz and b/zhcp/zhcp-build.tar.gz differ diff --git a/zhcp/zhcp.spec b/zhcp/zhcp.spec index 743c1a3..cb68c77 100644 --- a/zhcp/zhcp.spec +++ b/zhcp/zhcp.spec @@ -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