%global majorversion 9.2 %global minorversion 2 %global toolsbuild 893683 %global toolsversion %{majorversion}.%{minorversion} %global toolsdaemon vmtoolsd Name: open-vm-tools Version: %{toolsversion} Release: 11%{?dist} Summary: Open VMware Tools for virtual machines hosted on VMware Group: Applications/System License: GPLv2 URL: http://%{name}.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{majorversion}.x/%{name}-%{version}-%{toolsbuild}.tar.gz Source1: %{name}.service BuildRequires: doxygen # Fuse is optional and enables vmblock-fuse BuildRequires: fuse-devel BuildRequires: glib2-devel >= 2.6.0 BuildRequires: gtk2-devel >= 2.4.0 BuildRequires: gtkmm24-devel BuildRequires: libdnet-devel BuildRequires: libicu-devel BuildRequires: libX11-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libXinerama-devel BuildRequires: libXrandr-devel BuildRequires: libXrender-devel BuildRequires: libXtst-devel BuildRequires: pam-devel BuildRequires: procps-devel BuildRequires: systemd-units Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description The %{name} project is an open source implementation of VMware Tools. It is a suite of open source virtualization utilities and drivers to improve the functionality, user experience and administration of VMware virtual machines. This package contains only the core user-space programs and libraries of %{name}. %package desktop Summary: User experience components for Open VMware Tools Group: System Environment/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description desktop This package contains only the user-space programs and libraries of %{name} that are essential for improved user experience of VMware virtual machines. %package devel Summary: Development libraries for Open VMware Tools Group: Development/Libraries Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package contains only the user-space programs and libraries of %{name} that are essential for developing customized applications for VMware virtual machines. %prep %setup -q -n %{name}-%{version}-%{toolsbuild} %build # open-vm-tools source has some warnings generated because # of some deprecated glib calls. Suppress these warning # until these are fixed in open-vm-tools source code. # Use -Wno-unused-local-typedefs to build with GCC 4.8 export CFLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations -Wno-unused-local-typedefs" export CXXLAGS="$RPM_OPT_FLAGS -Wno-deprecated-declarations -Wno-unused-local-typedefs" # Following is required to configure to deal with libproc.so # name appropriately export CUSTOM_PROCPS_NAME=procps %configure \ --without-kernel-modules \ --disable-static sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} %install export DONT_STRIP=1 make install DESTDIR=%{buildroot} # Remove exec bit from config files chmod a-x %{buildroot}%{_sysconfdir}/pam.d/* # Remove the DOS line endings sed -i "s|\r||g" README # Remove unnecessary files from packaging find %{buildroot}%{_libdir} -name '*.la' -delete rm -fr %{buildroot}%{_defaultdocdir} rm -f docs/api/build/html/FreeSans.ttf # Systemd unit files install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service # 'make check' in open-vm-tools rebuilds docs and ends up regenerating # the font file. We can add %%check secion once 'make check' is fixed # upstream %post /usr/sbin/ldconfig %systemd_post %{toolsdaemon}.service %preun %systemd_preun %{toolsdaemon}.service %postun /usr/sbin/ldconfig %systemd_postun_with_restart %{toolsdaemon}.service %post devel -p /usr/sbin/ldconfig %postun devel -p /usr/sbin/ldconfig %files %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING NEWS README %config(noreplace) %{_sysconfdir}/pam.d/* %{_sysconfdir}/vmware-tools/ %{_bindir}/vmtoolsd %{_bindir}/vmware-checkvm %{_bindir}/vmware-hgfsclient %{_bindir}/vmware-rpctool %{_bindir}/vmware-toolbox-cmd %{_bindir}/vmware-xferlogs %{_libdir}/libguestlib.so.* %{_libdir}/libhgfs.so.* %{_libdir}/libvmtools.so.* %dir %{_libdir}/%{name}/ %dir %{_libdir}/%{name}/plugins %dir %{_libdir}/%{name}/plugins/common %{_libdir}/%{name}/plugins/common/*.so %dir %{_libdir}/%{name}/plugins/vmsvc %{_libdir}/%{name}/plugins/vmsvc/*.so %{_sbindir}/mount.vmhgfs %{_datadir}/%{name}/ %exclude /sbin/ %{_unitdir}/%{toolsdaemon}.service %files desktop %defattr(-,root,root,-) %{_sysconfdir}/xdg/autostart/*.desktop %{_bindir}/vmware-user-suid-wrapper %{_bindir}/vmware-vmblock-fuse %{_libdir}/%{name}/plugins/vmusr/ %files devel %defattr(-,root,root,-) %doc docs/api/build/* %{_includedir}/vmGuestLib/ %{_libdir}/pkgconfig/*.pc %{_libdir}/libguestlib.so %{_libdir}/libhgfs.so %{_libdir}/libvmtools.so %changelog * Mon Apr 22 2013 Ravindra Kumar - 9.2.2-11 - Removed the conditional steps for old versions of Fedora and RHEL. * Thu Apr 18 2013 Ravindra Kumar - 9.2.2-10 - Addressed formal review comments from Simone Caronni. - Removed %%check section because 'make check' brings font file back. * Wed Apr 17 2013 Simone Caronni - 9.2.2-9 - Removed rm command in %%check section. - Remove blank character at the beginning of each changelog line. * Mon Apr 15 2013 Ravindra Kumar - 9.2.2-8 - Removed FreeSans.ttf font file from packaging. - Added 'rm' command to remove font file in %%check section because 'make check' adds it back. - Added doxygen dependency back. * Thu Apr 11 2013 Ravindra Kumar - 9.2.2-7 - Applied patch from Simone for removal of --docdir option from configure. - Removed unnecessary --enable-docs option from configure. - Removed doxygen dependency. * Thu Apr 11 2013 Ravindra Kumar - 9.2.2-6 - Replaced vmtoolsd with a variable. - Changed summary for subpackages to be more specific. - Removed drivers.txt file as we don't really need it. - Fixed vmGuestLib ownership for devel package. - Removed systemd-sysv from Requires for Fedora 18+ and RHEL 7+. - Made all "if" conditions consistent. * Wed Apr 10 2013 Simone Caronni - 9.2.2-5 - Added RHEL 5/6 init script. - Renamed SysV init script / systemd service file to vmtoolsd. - Fixed ownership of files from review. - Moved api documentation in devel subpackage. - Removed static libraries. * Tue Apr 09 2013 Ravindra Kumar - 9.2.2-4 - Applied part of review fixes patch from Simone Caronni for systemd setup. - Replaced tabs with spaces all over. * Tue Apr 09 2013 Ravindra Kumar - 9.2.2-3 - Applied review fixes patch from Simone Caronni. - Added missing *.a and *.so files for devel package. - Removed unnecessary *.la plugin files from base package. * Mon Apr 08 2013 Ravindra Kumar - 9.2.2-2 - Modified SPEC to follow the conventions and guidelines. - Addressed review comments from Mohamed El Morabity. - Added systemd script. - Verified and built the RPMS for Fedora 18. - Fixed rpmlint warnings. - Split the UX components in a separate package for desktops. - Split the help files in a separate package for help. - Split the guestlib headers in a separate devel package. * Mon Jan 28 2013 Sankar Tanguturi - 9.2.2-1 - Initial SPEC file to build open-vm-tools for Fedora 17.