SPECS: hpasm.spec - try some other way
glen
glen at pld-linux.org
Thu Feb 22 19:05:14 CET 2007
Author: glen Date: Thu Feb 22 18:05:14 2007 GMT
Module: SPECS Tag: HEAD
---- Log message:
- try some other way
---- Files affected:
SPECS:
hpasm.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/hpasm.spec
diff -u SPECS/hpasm.spec:1.1 SPECS/hpasm.spec:1.2
--- SPECS/hpasm.spec:1.1 Thu Feb 22 18:51:33 2007
+++ SPECS/hpasm.spec Thu Feb 22 19:05:08 2007
@@ -34,25 +34,67 @@
Console, any Internet browser, or other management applications using
SNMP.
+%package static
+Summary: Static ... library
+Group: Development/Libraries
+#Requires: %{name}-devel = %{version}-%{release}
+
+%description static
+Static ... library.
+
%prep
%setup -qcT
rpm2cpio %{SOURCE0} | cpio -i -d
gzip -d usr/share/man/man*/*.gz
+# move to real locations instead of symlinks
+install -d .{/%{_lib},/lib,%{_libdir},%{_prefix}/lib}
+D=$(pwd)
+cd opt/compaq/utils
+mv bootcfg $D/sbin
+mv cpqimlview $D/sbin
+mv cpqimlview.tcl $D/sbin
+mv hpasmcli $D/sbin
+mv hpimlview $D/sbin
+mv hplog $D/sbin
+mv hpuid $D/sbin
+mv imlbe $D/sbin
+cd -
+
+cd opt/compaq/utils
+mv hplogo.xbm $D%{_pixmapsdir}
+mv m_blue.gif $D%{_pixmapsdir}
+mv m_fail.gif $D%{_pixmapsdir}
+mv m_green.gif $D%{_pixmapsdir}
+mv m_red.gif $D%{_pixmapsdir}
+mv m_yellow.gif $D%{_pixmapsdir}
+cd -
+
+%if "%{_lib}" == "lib64"
+mv opt/compaq/hpasm/addon/lib*64.so* $D/%{_lib}
+mv opt/compaq/hpasm/addon/lib*64.a $D%{_libdir}
+%endif
+mv opt/compaq/hpasm/addon/lib*so* $D/lib
+mv opt/compaq/hpasm/addon/lib*a $D%{_prefix}/lib
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/sbin
-cd opt/compaq/utils
-install bootcfg $RPM_BUILD_ROOT/sbin
-install cpqimlview $RPM_BUILD_ROOT/sbin
-install cpqimlview.tcl $RPM_BUILD_ROOT/sbin
-install hpasmcli $RPM_BUILD_ROOT/sbin
-install hpimlview $RPM_BUILD_ROOT/sbin
-install hplog $RPM_BUILD_ROOT/sbin
-install hpuid $RPM_BUILD_ROOT/sbin
-install imlbe $RPM_BUILD_ROOT/sbin
-cd -
+install sbin/* $RPM_BUILD_ROOT/sbin
+
+install -d $RPM_BUILD_ROOT{/%{_lib},/lib,%{_libdir},%{_prefix}/lib}
+cp -a ./%{_lib}/* $RPM_BUILD_ROOT/%{_lib}
+%if "%{_lib}" != "lib"
+cp -a ./lib/* $RPM_BUILD_ROOT/lib
+%endif
+cp -a ./%{_libdir}/* $RPM_BUILD_ROOT%{_libdir}
+%if "%{_lib}" != "lib"
+cp -a ./%{_prefix}/lib/* $RPM_BUILD_ROOT%{_prefix}/%{_lib}
+%endif
+
+install -d $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -a ./%{_pixmapsdir}/* $RPM_BUILD_ROOT%{_pixmapsdir}
install -d $RPM_BUILD_ROOT/etc/rc.d/init.d
install etc/init.d/hpasm $RPM_BUILD_ROOT/etc/rc.d/init.d
@@ -61,22 +103,16 @@
cp -a usr/share/man/man4/* $RPM_BUILD_ROOT%{_mandir}/man4
cp -a usr/share/man/man8/* $RPM_BUILD_ROOT%{_mandir}/man8
-install -d $RPM_BUILD_ROOT%{_pixmapsdir}
-cd opt/compaq/utils
-cp -a hplogo.xbm $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a m_blue.gif $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a m_fail.gif $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a m_green.gif $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a m_red.gif $RPM_BUILD_ROOT%{_pixmapsdir}
-cp -a m_yellow.gif $RPM_BUILD_ROOT%{_pixmapsdir}
-cd -
-
# opt/hp/hpsmh/
# opt/compaq/
%clean
rm -rf $RPM_BUILD_ROOT
+
+%post -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
+
%files
%defattr(644,root,root,755)
%attr(754,root,root) /etc/rc.d/init.d/hpasm
@@ -88,6 +124,16 @@
%attr(755,root,root) /sbin/hplog
%attr(755,root,root) /sbin/hpuid
%attr(755,root,root) /sbin/imlbe
+%attr(755,root,root) /lib/libcmacommon.so.1.0
+%attr(755,root,root) /lib/libcmapeer.so.1.0
+%attr(755,root,root) /lib/libcpqci.so.1.0
+%attr(755,root,root) /lib/libhpasmintrfc.so.1.0
+%attr(755,root,root) /lib/libhpev.so.1.0
+%if "%{_lib}" == "lib64"
+%attr(755,root,root) /%{_lib}/libcmaX64.so.1.0
+%attr(755,root,root) /%{_lib}/libcpqci64.so.1.0
+%attr(755,root,root) /%{_lib}/libhpasmintrfc64.so.1.0
+%endif
%{_mandir}/man4/hpasm.4*
%{_mandir}/man4/hpasmcli.4*
%{_mandir}/man8/cpqimlview.8*
@@ -100,12 +146,18 @@
%{_pixmapsdir}/m_red.gif
%{_pixmapsdir}/m_yellow.gif
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libcpqci*.a
+
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2007/02/22 18:05:08 glen
+- try some other way
+
Revision 1.1 2007/02/22 17:51:33 glen
- new; unfinished
-
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/hpasm.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list