packages: prl-tools/prl-tools.spec - package random userspace files

glen glen at pld-linux.org
Thu Apr 19 19:29:23 CEST 2012


Author: glen                         Date: Thu Apr 19 17:29:23 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- package random userspace files

---- Files affected:
packages/prl-tools:
   prl-tools.spec (1.3 -> 1.4) 

---- Diffs:

================================================================
Index: packages/prl-tools/prl-tools.spec
diff -u packages/prl-tools/prl-tools.spec:1.3 packages/prl-tools/prl-tools.spec:1.4
--- packages/prl-tools/prl-tools.spec:1.3	Thu Apr 19 19:04:54 2012
+++ packages/prl-tools/prl-tools.spec	Thu Apr 19 19:29:18 2012
@@ -8,6 +8,7 @@
 %bcond_without	kernel		# without kernel modules
 %bcond_without	dist_kernel	# without distribution kernel
 %bcond_without	userspace	# without userspace package
+%bcond_without	xorg		# without xorg parts (xorg/xfree is supported up to 11.x)
 
 # this bcond needed to build 2.6.16 kernel, just up for now
 %if "%{pld_release}" == "ac"
@@ -29,6 +30,11 @@
 BuildRequires:	rpm >= 4.4.9-56
 BuildRequires:	rpmbuild(macros) >= 1.453
 %if %{with userspace}
+%if "%{pld_release}" == "ac"
+BuildRequires:	XFree86-devel
+%else
+BuildRequires:	xorg-xserver-server-devel
+%endif
 %endif
 %if %{with kernel} && %{with dist_kernel}
 BuildRequires:	kernel%{_alt_kernel}-module-build >= 3:2.6.16
@@ -39,9 +45,34 @@
 # constify %rel macro, so it wouldn't expand in kernel subpkgs
 %{expand:%%global rel %{release}}
 
+# So that building package on AC system won't write package name dep that Th system can't understand (libstdc++4)
+%define		_noautoreqdep	libstdc++.so.6
+
 %description
 Parallels Guest Utilities.
 
+%package -n xorg-driver-input-prlmouse
+Summary:	X.org mouse driver for Parallels guest OS
+Group:		X11/Applications
+#Requires:	xorg-xserver-server >= 1.0.99.901
+#Requires:	xorg-xserver-server(xinput-abi) <= 16.0
+#Requires:	xorg-xserver-server(xinput-abi) >= 4.0
+
+%description -n xorg-driver-input-prlmouse
+X.org mouse driver for Parallels guest OS.
+
+%package -n xorg-driver-video-prlvideo
+Summary:	X.org video driver for Parallels guest OS
+Group:		X11/Applications
+#Requires:	Mesa-dri-driver-swrast
+#Requires:	xorg-xserver-libdri >= 1.7.4
+#Requires:	xorg-xserver-server >= 1.0.99.901
+#Requires:	xorg-xserver-server(videodrv-abi) <= 12.0
+#Requires:	xorg-xserver-server(videodrv-abi) >= 2.0
+
+%description -n xorg-driver-video-prlvideo
+X.org video driver for Paralllesguest OS.
+
 %package -n kernel%{_alt_kernel}-misc-prl
 Summary:	Parallels Linux kernel modules
 Release:	%{rel}@%{_kernel_ver_str}
@@ -73,6 +104,16 @@
 
 cat version
 
+# unpack userspace
+%ifarch %{ix86}
+src=prltools.tar.gz
+%endif
+%ifarch %{x8664}
+src=prltools.x64.tar.gz
+%endif
+%{__tar} -xzf tools/$src -C tools
+
+# unpack kernel
 %{__tar} -xzf kmods/prl_mod.tar* -C kmods
 
 cat << 'EOF' > kmods/prl_eth/pvmnet/Makefile
@@ -121,6 +162,23 @@
 %endif
 
 %if %{with userspace}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_sbindir},%{_libdir}}
+install -p tools/bin/* $RPM_BUILD_ROOT%{_bindir}
+install -p tools/sbin/* $RPM_BUILD_ROOT%{_sbindir}
+
+%if %{with xorg}
+install -d $RPM_BUILD_ROOT%{_libdir}/xorg/modules/{drivers,input}
+
+%if "%{pld_release}" == "ac"
+xorg_version=$(awk '/define.*XOrgReleaseString.*\./{print $NF}' %{_prefix}/X11R6/%{_lib}/X11/config/X11.tmpl)
+%else
+xorg_version=$(pkg-config --modversion xorg-server)
+install -p tools/xorg.$xorg_version/usr/lib/libglx.so.1.0.0 $RPM_BUILD_ROOT%{_libdir}
+%endif
+
+install -p tools/xorg.$xorg_version/x-server/modules/input/prlmouse_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/input
+install -p tools/xorg.$xorg_version/x-server/modules/drivers/prlvideo_drv.so $RPM_BUILD_ROOT%{_libdir}/xorg/modules/drivers
+%endif
 %endif
 
 %clean
@@ -132,6 +190,24 @@
 %if %{with userspace}
 %files
 %defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/prl_istatus
+%attr(755,root,root) %{_bindir}/prl_showvmcfg
+%attr(755,root,root) %{_bindir}/prl_wmouse_d
+%attr(755,root,root) %{_bindir}/prlhosttime
+%attr(755,root,root) %{_sbindir}/prl-opengl-switcher.sh
+%attr(755,root,root) %{_sbindir}/prl-xorgconf-fixer
+%attr(755,root,root) %{_sbindir}/prl_nettool
+%attr(755,root,root) %{_sbindir}/prl_snapshot
+%endif
+
+%if %{with xorg}
+%files -n xorg-driver-input-prlmouse
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/xorg/modules/input/prlmouse_drv.so
+
+%files -n xorg-driver-video-prlvideo
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/xorg/modules/drivers/prlvideo_drv.so
 %endif
 
 %if %{with kernel}
@@ -150,6 +226,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.4  2012/04/19 17:29:18  glen
+- package random userspace files
+
 Revision 1.3  2012/04/19 17:04:54  glen
 - fix prl_fs module name, install modprobe blacklist file
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/prl-tools/prl-tools.spec?r1=1.3&r2=1.4



More information about the pld-cvs-commit mailing list