diff --git a/open-vm-tools.spec b/open-vm-tools.spec index ad1872c..d5b4636 100644 --- a/open-vm-tools.spec +++ b/open-vm-tools.spec @@ -6,7 +6,7 @@ Name: open-vm-tools Version: %{toolsversion} -Release: 5%{?dist} +Release: 6%{?dist} Summary: Open VMware Tools for virtual machines hosted on VMware Group: Applications/System License: GPLv2 @@ -15,13 +15,16 @@ Source0: http://sourceforge.net/projects/%{name}/files/%{name}/stable-% Source1: %{toolsdaemon}.service ExclusiveArch: %{ix86} x86_64 +BuildRequires: gcc-c++ BuildRequires: doxygen # Fuse is optional and enables vmblock-fuse BuildRequires: fuse-devel BuildRequires: glib2-devel >= 2.14.0 BuildRequires: gtk2-devel >= 2.4.0 BuildRequires: gtkmm24-devel +%if !0%{?rhel} BuildRequires: libdnet-devel +%endif BuildRequires: libicu-devel BuildRequires: libX11-devel BuildRequires: libXext-devel @@ -74,6 +77,9 @@ export CFLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs" export CXXLAGS="$RPM_OPT_FLAGS -Wno-unused-local-typedefs" %configure \ --without-kernel-modules \ +%if 0%{?rhel} + --without-dnet \ +%endif --disable-static sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool make %{?_smp_mflags} @@ -154,6 +160,10 @@ install -p -m 644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{toolsdaemon}.service %{_libdir}/libvmtools.so %changelog +* Fri May 24 2013 Richard W.M. Jones - 9.2.3-6 +- +BR gcc-c++. If this is missing it fails to build. +- On RHEL, disable libdnet. + * Mon May 06 2013 Ravindra Kumar - 9.2.3-5 - Renamed source file open-vm-tools.service -> vmtoolsd.service to match it with the service name