2013-08-23 02:18:44 +00:00
|
|
|
################################################################################
|
|
|
|
### Copyright 2013 VMware, Inc. All rights reserved.
|
|
|
|
###
|
|
|
|
### RPM SPEC file for building open-vm-tools packages.
|
|
|
|
###
|
|
|
|
###
|
|
|
|
### This program is free software; you can redistribute it and/or modify
|
|
|
|
### it under the terms of version 2 of the GNU General Public License as
|
|
|
|
### published by the Free Software Foundation.
|
|
|
|
###
|
|
|
|
### This program is distributed in the hope that it will be useful,
|
|
|
|
### but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
### GNU General Public License for more details.
|
|
|
|
###
|
|
|
|
### You should have received a copy of the GNU General Public License
|
|
|
|
### along with this program; if not, write to the Free Software
|
|
|
|
### Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
|
|
|
################################################################################
|
|
|
|
|
2013-08-06 23:19:04 +00:00
|
|
|
%global _hardened_build 1
|
2013-11-06 08:50:17 +00:00
|
|
|
%global majorversion 9.4
|
|
|
|
%global minorversion 0
|
|
|
|
%global toolsbuild 1280544
|
2013-04-23 23:42:15 +00:00
|
|
|
%global toolsversion %{majorversion}.%{minorversion}
|
|
|
|
%global toolsdaemon vmtoolsd
|
|
|
|
|
|
|
|
Name: open-vm-tools
|
|
|
|
Version: %{toolsversion}
|
2014-03-20 13:32:52 +00:00
|
|
|
Release: 7%{?dist}
|
2013-08-23 02:18:44 +00:00
|
|
|
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
2013-04-23 23:42:15 +00:00
|
|
|
Group: Applications/System
|
|
|
|
License: GPLv2
|
|
|
|
URL: http://%{name}.sourceforge.net/
|
|
|
|
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{majorversion}.x/%{name}-%{version}-%{toolsbuild}.tar.gz
|
2013-05-06 18:55:51 +00:00
|
|
|
Source1: %{toolsdaemon}.service
|
2014-02-18 07:29:00 +00:00
|
|
|
Patch0: g_info_redefine.patch
|
2014-02-11 14:02:25 +00:00
|
|
|
%if 0%{?rhel} >= 7
|
|
|
|
ExclusiveArch: x86_64
|
|
|
|
%else
|
2013-04-25 17:27:00 +00:00
|
|
|
ExclusiveArch: %{ix86} x86_64
|
2014-02-11 14:02:25 +00:00
|
|
|
%endif
|
2013-04-23 23:42:15 +00:00
|
|
|
|
2013-05-24 08:59:24 +00:00
|
|
|
BuildRequires: gcc-c++
|
2013-04-23 23:42:15 +00:00
|
|
|
BuildRequires: doxygen
|
|
|
|
# Fuse is optional and enables vmblock-fuse
|
|
|
|
BuildRequires: fuse-devel
|
2013-04-29 07:21:06 +00:00
|
|
|
BuildRequires: glib2-devel >= 2.14.0
|
2013-04-23 23:42:15 +00:00
|
|
|
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
|
2013-08-09 07:53:33 +00:00
|
|
|
BuildRequires: systemd
|
2013-04-23 23:42:15 +00:00
|
|
|
|
2014-03-20 01:24:22 +00:00
|
|
|
Requires: initscripts
|
|
|
|
Requires: coreutils
|
|
|
|
Requires: net-tools
|
|
|
|
Requires: dbus
|
|
|
|
Requires: grep
|
|
|
|
Requires: sed
|
|
|
|
Requires: systemd
|
|
|
|
Requires: tar
|
2013-04-23 23:42:15 +00:00
|
|
|
|
|
|
|
%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
|
2013-08-23 02:18:44 +00:00
|
|
|
Summary: User experience components for Open Virtual Machine Tools
|
2013-04-23 23:42:15 +00:00
|
|
|
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
|
2013-08-23 02:18:44 +00:00
|
|
|
Summary: Development libraries for Open Virtual Machine Tools
|
2013-04-23 23:42:15 +00:00
|
|
|
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}
|
2014-02-18 07:29:00 +00:00
|
|
|
%patch0 -p1 -b .g_info
|
2013-04-23 23:42:15 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
# Use -Wno-unused-local-typedefs to build with GCC 4.8
|
2013-11-06 10:38:16 +00:00
|
|
|
# Use -Wno-deprecated-declarations for version 9.4.0
|
2014-03-20 13:32:52 +00:00
|
|
|
# Use _DEFAULT_SOURCE to suppress warning until upstream
|
|
|
|
# is fixed. Refer https://sourceware.org/bugzilla/show_bug.cgi?id=16632.
|
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_DEFAULT_SOURCE"
|
|
|
|
export CXXLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs -Wno-deprecated-declarations -D_DEFAULT_SOURCE"
|
2013-11-06 09:29:29 +00:00
|
|
|
# Required for version 9.4.0
|
2013-11-06 10:38:16 +00:00
|
|
|
export CUSTOM_PROCPS_NAME=procps
|
2013-04-23 23:42:15 +00:00
|
|
|
%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
|
|
|
|
|
2013-08-06 23:19:04 +00:00
|
|
|
# Remove "Encoding" key from the "Desktop Entry"
|
|
|
|
sed -i "s|^Encoding.*$||g" %{buildroot}%{_sysconfdir}/xdg/autostart/vmware-user.desktop
|
|
|
|
|
2013-04-23 23:42:15 +00:00
|
|
|
# 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
|
2013-04-24 22:24:06 +00:00
|
|
|
/sbin/ldconfig
|
2013-04-23 23:42:15 +00:00
|
|
|
%systemd_post %{toolsdaemon}.service
|
|
|
|
|
|
|
|
%preun
|
|
|
|
%systemd_preun %{toolsdaemon}.service
|
|
|
|
|
|
|
|
%postun
|
2013-04-24 22:24:06 +00:00
|
|
|
/sbin/ldconfig
|
2013-04-23 23:42:15 +00:00
|
|
|
%systemd_postun_with_restart %{toolsdaemon}.service
|
|
|
|
|
2013-04-24 22:24:06 +00:00
|
|
|
%post devel -p /sbin/ldconfig
|
2013-04-23 23:42:15 +00:00
|
|
|
|
2013-04-24 22:24:06 +00:00
|
|
|
%postun devel -p /sbin/ldconfig
|
2013-04-23 23:42:15 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%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
|
2013-08-06 23:19:04 +00:00
|
|
|
%exclude %{_sbindir}/mount.vmhgfs
|
2013-04-23 23:42:15 +00:00
|
|
|
%{_datadir}/%{name}/
|
|
|
|
%exclude /sbin/
|
|
|
|
%{_unitdir}/%{toolsdaemon}.service
|
|
|
|
|
|
|
|
%files desktop
|
|
|
|
%{_sysconfdir}/xdg/autostart/*.desktop
|
|
|
|
%{_bindir}/vmware-user-suid-wrapper
|
|
|
|
%{_bindir}/vmware-vmblock-fuse
|
|
|
|
%{_libdir}/%{name}/plugins/vmusr/
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc docs/api/build/*
|
|
|
|
%{_includedir}/vmGuestLib/
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
%{_libdir}/libguestlib.so
|
|
|
|
%{_libdir}/libhgfs.so
|
|
|
|
%{_libdir}/libvmtools.so
|
|
|
|
|
|
|
|
%changelog
|
2014-03-20 13:32:52 +00:00
|
|
|
* Tue Mar 25 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-7
|
|
|
|
- Add -D_DEFAULT_SOURCE to suppress warning as suggested in
|
|
|
|
https://sourceware.org/bugzilla/show_bug.cgi?id=16632
|
|
|
|
|
2014-03-20 01:24:22 +00:00
|
|
|
* Fri Mar 21 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-6
|
|
|
|
- Add missing package dependencies (BZ#1045709, BZ#1077320)
|
|
|
|
|
2014-02-18 07:29:00 +00:00
|
|
|
* Tue Feb 18 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 9.4.0-5
|
|
|
|
- Fix FTBFS g_info redefine (RHBZ #1063847)
|
|
|
|
|
2014-02-14 09:01:19 +00:00
|
|
|
* Fri Feb 14 2014 David Tardon <dtardon@redhat.com> - 9.4.0-4
|
|
|
|
- rebuild for new ICU
|
|
|
|
|
2014-02-11 14:02:25 +00:00
|
|
|
* Tue Feb 11 2014 Richard W.M. Jones <rjones@redhat.com> - 9.4.0-3
|
|
|
|
- Only build on x86-64 for RHEL 7 (RHBZ#1054608).
|
|
|
|
|
2013-12-04 11:50:58 +00:00
|
|
|
* Wed Dec 04 2013 Richard W.M. Jones <rjones@redhat.com> - 9.4.0-2
|
|
|
|
- Rebuild for procps SONAME bump.
|
|
|
|
|
2013-11-06 08:50:17 +00:00
|
|
|
* Wed Nov 06 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.0-1
|
|
|
|
- Package new upstream version open-vm-tools-9.4.0-1280544.
|
2013-11-06 10:38:16 +00:00
|
|
|
- Added CUSTOM_PROCPS_NAME=procps and -Wno-deprecated-declarations
|
|
|
|
for version 9.4.0.
|
|
|
|
|
2013-08-23 02:34:31 +00:00
|
|
|
* Thu Aug 22 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-11
|
|
|
|
- Added copyright and license text.
|
|
|
|
- Corrected summary for all packages.
|
|
|
|
|
2013-08-06 23:24:21 +00:00
|
|
|
* Thu Aug 08 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-10
|
2013-08-23 02:34:31 +00:00
|
|
|
- Added options for hardening build (bug 990549).
|
|
|
|
- Excluded unwanted file mount.vmhgfs from packaging (bug 990547).
|
|
|
|
- Removed deprecated key "Encoding" from "Desktop Entry" (bug 990552).
|
2013-08-06 23:19:04 +00:00
|
|
|
|
2013-08-03 15:28:47 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.2.3-9
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-06-04 13:55:09 +00:00
|
|
|
* Tue Jun 4 2013 Richard W.M. Jones <rjones@redhat.com> - 9.2.3-8
|
2013-06-04 11:19:25 +00:00
|
|
|
- RHEL 7 now includes libdnet, so re-enable it.
|
|
|
|
|
2013-05-24 08:59:24 +00:00
|
|
|
* Fri May 24 2013 Richard W.M. Jones <rjones@redhat.com> - 9.2.3-6
|
|
|
|
- +BR gcc-c++. If this is missing it fails to build.
|
|
|
|
- On RHEL, disable libdnet.
|
|
|
|
|
2013-05-06 18:55:51 +00:00
|
|
|
* Mon May 06 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-5
|
|
|
|
- Renamed source file open-vm-tools.service -> vmtoolsd.service
|
2013-08-23 02:34:31 +00:00
|
|
|
to match it with the service name.
|
2013-05-06 18:55:51 +00:00
|
|
|
|
2013-05-02 06:50:24 +00:00
|
|
|
* Wed May 01 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-4
|
|
|
|
- Bumped the release to pick the new service definition with
|
|
|
|
no restart directive.
|
|
|
|
|
2013-04-29 07:21:06 +00:00
|
|
|
* Mon Apr 29 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-3
|
|
|
|
- open-vm-tools-9.2.3 require glib-2.14.0.
|
|
|
|
|
2013-04-29 06:07:47 +00:00
|
|
|
* Mon Apr 29 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-2
|
|
|
|
- Bumped the release to pick the new service definition.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Thu Apr 25 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.3-1
|
|
|
|
- Package new upstream version open-vm-tools-9.2.3-1031360.
|
|
|
|
- Removed configure options CUSTOM_PROCPS_NAME (for libproc) and
|
|
|
|
-Wno-deprecated-declarations as these have been addressed in
|
|
|
|
open-vm-tools-9.2.3-1031360.
|
|
|
|
|
|
|
|
* Wed Apr 24 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-12
|
2013-04-24 22:24:06 +00:00
|
|
|
- Removed %%defattr and BuildRoot.
|
|
|
|
- Added ExclusiveArch.
|
|
|
|
- Replaced /usr/sbin/ldconfig with /sbin/ldconfig.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Mon Apr 22 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-11
|
2013-04-23 23:42:15 +00:00
|
|
|
- Removed the conditional steps for old versions of Fedora and RHEL.
|
|
|
|
|
|
|
|
* Thu Apr 18 2013 Ravindra Kumar <ravindrakumar at vmware.com> - 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 <negativo17@gmail.com> - 9.2.2-9
|
|
|
|
- Removed rm command in %%check section.
|
|
|
|
- Remove blank character at the beginning of each changelog line.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Mon Apr 15 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-8
|
2013-04-23 23:42:15 +00:00
|
|
|
- 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.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Thu Apr 11 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-7
|
2013-04-23 23:42:15 +00:00
|
|
|
- Applied patch from Simone for removal of --docdir option from configure.
|
|
|
|
- Removed unnecessary --enable-docs option from configure.
|
|
|
|
- Removed doxygen dependency.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Thu Apr 11 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-6
|
2013-04-23 23:42:15 +00:00
|
|
|
- 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 <negativo17@gmail.com> - 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.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Tue Apr 09 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-4
|
2013-04-23 23:42:15 +00:00
|
|
|
- Applied part of review fixes patch from Simone Caronni for systemd setup.
|
|
|
|
- Replaced tabs with spaces all over.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Tue Apr 09 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-3
|
2013-04-23 23:42:15 +00:00
|
|
|
- Applied review fixes patch from Simone Caronni.
|
|
|
|
- Added missing *.a and *.so files for devel package.
|
|
|
|
- Removed unnecessary *.la plugin files from base package.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Mon Apr 08 2013 Ravindra Kumar <ravindrakumar@vmware.com> - 9.2.2-2
|
2013-04-23 23:42:15 +00:00
|
|
|
- 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.
|
|
|
|
|
2013-04-25 17:27:00 +00:00
|
|
|
* Mon Jan 28 2013 Sankar Tanguturi <stanguturi@vmware.com> - 9.2.2-1
|
2013-04-23 23:42:15 +00:00
|
|
|
- Initial SPEC file to build open-vm-tools for Fedora 17.
|