Package new upstream version open-vm-tools-9.4.6-1770165

This commit is contained in:
Ravindra Kumar 2014-07-15 14:46:35 -07:00
parent da540f6db3
commit cee4389594

View File

@ -1,5 +1,5 @@
################################################################################
### Copyright 2013 VMware, Inc. All rights reserved.
### Copyright 2013-14 VMware, Inc. All rights reserved.
###
### RPM SPEC file for building open-vm-tools packages.
###
@ -20,14 +20,14 @@
%global _hardened_build 1
%global majorversion 9.4
%global minorversion 0
%global toolsbuild 1280544
%global minorversion 6
%global toolsbuild 1770165
%global toolsversion %{majorversion}.%{minorversion}
%global toolsdaemon vmtoolsd
Name: open-vm-tools
Version: %{toolsversion}
Release: 10%{?dist}
Release: 1%{?dist}
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
Group: Applications/System
License: GPLv2
@ -35,12 +35,16 @@ URL: http://%{name}.sourceforge.net/
Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-%{majorversion}.x/%{name}-%{version}-%{toolsbuild}.tar.gz
Source1: %{toolsdaemon}.service
Patch0: g_info_redefine.patch
Patch1: sizeof_argument.patch
%if 0%{?rhel} >= 7
ExclusiveArch: x86_64
%else
ExclusiveArch: %{ix86} x86_64
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: gcc-c++
BuildRequires: doxygen
# Fuse is optional and enables vmblock-fuse
@ -100,16 +104,19 @@ VMware virtual machines.
%prep
%setup -q -n %{name}-%{version}-%{toolsbuild}
%patch0 -p1 -b .g_info
%patch1 -p1 -b .sizeof
%build
# Use -Wno-unused-local-typedefs to build with GCC 4.8
# Use -Wno-deprecated-declarations for version 9.4.0
# Use -Wno-deprecated-declarations for version 9.4.0+
# 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"
# Required for version 9.4.0
# Required for version 9.4.0+
export CUSTOM_PROCPS_NAME=procps
# Required for version 9.4.6
autoreconf -i
%configure \
--without-kernel-modules \
--disable-static
@ -207,6 +214,13 @@ fi
%{_libdir}/libvmtools.so
%changelog
* Wed Jul 16 2014 Ravindra Kumar <ravindrakumar@vmware.com> - 9.4.6-1
- Package new upstream version open-vm-tools-9.4.6-1770165
- Added "autoreconf -i" and its build dependencies (autoconf, automake and libtool)
to generate configure script, this is required for version 9.4.6 as it does not
have configure script bundled in the tar
- Fix (sizeof_argument.patch) for bad sizeof argument error
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 9.4.0-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild