SPECS: VMware-server.spec - include more required perl modules in ...
hawk
hawk at pld-linux.org
Tue Jun 20 14:56:58 CEST 2006
Author: hawk Date: Tue Jun 20 12:56:58 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- include more required perl modules in package
- create init.pl at build time, it seems to be required by serverd
- still doesn't work but we are one step closer
---- Files affected:
SPECS:
VMware-server.spec (1.13 -> 1.14)
---- Diffs:
================================================================
Index: SPECS/VMware-server.spec
diff -u SPECS/VMware-server.spec:1.13 SPECS/VMware-server.spec:1.14
--- SPECS/VMware-server.spec:1.13 Mon Jun 19 17:50:46 2006
+++ SPECS/VMware-server.spec Tue Jun 20 14:56:53 2006
@@ -57,6 +57,7 @@
Source8: %{name}-dhcpd.conf
Patch0: %{name}-Makefile.patch
Patch1: %{name}-run_script.patch
+Patch2: %{name}-init_pl.patch
NoSource: 0
NoSource: 1
NoSource: 2
@@ -326,6 +327,7 @@
cp -a vmnet-only{,.clean}
cd -
%patch1 -p1
+%patch2 -p0
tar xf lib/perl/control.tar
%build
@@ -448,6 +450,7 @@
$RPM_BUILD_ROOT%{_bindir} \
$RPM_BUILD_ROOT%{_sbindir} \
$RPM_BUILD_ROOT%{_libdir}/vmware{,-server-console}/bin \
+ $RPM_BUILD_ROOT%{_libdir}/vmware/serverd \
$RPM_BUILD_ROOT%{_mandir} \
$RPM_BUILD_ROOT%{_pixmapsdir} \
$RPM_BUILD_ROOT%{_desktopdir} \
@@ -458,6 +461,15 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
cd ..
+
+ # copy other required perl modules
+ cp -r lib/perl5/site_perl/5.005/VMware $RPM_BUILD_ROOT%{perl_vendorarch}
+ cp -r lib/perl5/site_perl/5.005/i386-linux/VMware/VmdbPerl $RPM_BUILD_ROOT%{perl_vendorarch}/VMware
+ cp -r lib/perl5/site_perl/5.005/i386-linux/VMware/{HConfig,VmdbPerl}.pm $RPM_BUILD_ROOT%{perl_vendorarch}/VMware
+ cp -r lib/perl5/site_perl/5.005/i386-linux/auto/VMware/{HConfig,VmdbPerl} $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware
+
+ # remove unecessary files
+ rm -f $RPM_BUILD_ROOT%{perl_vendorarch}/auto/VMware/{HConfig,VmdbPerl,VmPerl}/.{exists,packlist}
%endif
%if %{with kernel}
@@ -510,6 +522,8 @@
install sbin/*-* $RPM_BUILD_ROOT%{_sbindir}
install lib/bin/vmware-vmx $RPM_BUILD_ROOT%{_libdir}/vmware/bin
+sed -e ' s@%sitearch%@%{perl_sitearch}@g; s@%sitelib%@%{perl_sitelib}@g; s@%vendorarch%@%{perl_vendorarch}@g; s@%vendorlib%@%{perl_vendorlib}@g; s@%archlib%@%{perl_archlib}@g; s@%privlib%@%{perl_privlib}@g;' < lib/serverd/init.pl.default > $RPM_BUILD_ROOT%{_libdir}/vmware/serverd/init.pl
+
#cp -r lib/{bin-debug,config,help*,isoimages,licenses,messages,smb,xkeymap} \
cp -r lib/{bin-debug,config,help*,isoimages,licenses,messages,share,xkeymap} \
$RPM_BUILD_ROOT%{_libdir}/vmware
@@ -626,6 +640,8 @@
%{_libdir}/vmware/lib
%attr(755,root,root) %{_libdir}/vmware/lib/wrapper-gtk24.sh
%endif
+%dir %{_libdir}/vmware/serverd
+%attr(750,root,root) %{_libdir}/vmware/serverd/init.pl
%{_libdir}/vmware/licenses
%dir %{_libdir}/vmware/messages
%{_libdir}/vmware/messages/en
@@ -755,6 +771,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.14 2006/06/20 12:56:53 hawk
+- include more required perl modules in package
+- create init.pl at build time, it seems to be required by serverd
+- still doesn't work but we are one step closer
+
Revision 1.13 2006/06/19 15:50:46 hawk
- blah, reverted some s/vmware/vmware-server/, now at least console works
- added required /var/log/vmware, serverd still doesn't work
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/VMware-server.spec?r1=1.13&r2=1.14&f=u
More information about the pld-cvs-commit
mailing list