Blame open-vm-tools.spec

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