forked from rpms/open-vm-tools
Miscellaneous spec cleanups
- Add missing BRs - Clean up conditionals to build correctly with EL8+ - Simplify systemd scriptlets
This commit is contained in:
parent
136bbc2b14
commit
3862e8a050
@ -28,7 +28,7 @@
|
|||||||
|
|
||||||
Name: open-vm-tools
|
Name: open-vm-tools
|
||||||
Version: %{toolsversion}
|
Version: %{toolsversion}
|
||||||
Release: 3%{?dist}
|
Release: 4%{?dist}
|
||||||
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
Summary: Open Virtual Machine Tools for virtual machines hosted on VMware
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
URL: https://github.com/vmware/%{name}
|
URL: https://github.com/vmware/%{name}
|
||||||
@ -47,10 +47,10 @@ ExclusiveArch: %{ix86} x86_64
|
|||||||
|
|
||||||
Patch1: %{name}-gcc11.patch
|
Patch1: %{name}-gcc11.patch
|
||||||
|
|
||||||
BuildRequires: make
|
|
||||||
BuildRequires: autoconf
|
BuildRequires: autoconf
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
|
BuildRequires: make
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
# Fuse is optional and enables vmblock-fuse
|
# Fuse is optional and enables vmblock-fuse
|
||||||
@ -69,6 +69,7 @@ BuildRequires: gtkmm30-devel >= 3.10.0
|
|||||||
BuildRequires: gtk2-devel >= 2.4.0
|
BuildRequires: gtk2-devel >= 2.4.0
|
||||||
BuildRequires: gtkmm24-devel
|
BuildRequires: gtkmm24-devel
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: libdrm-devel
|
||||||
BuildRequires: libicu-devel
|
BuildRequires: libicu-devel
|
||||||
BuildRequires: libmspack-devel
|
BuildRequires: libmspack-devel
|
||||||
# Unfortunately, xmlsec1-openssl does not add libtool-ltdl
|
# Unfortunately, xmlsec1-openssl does not add libtool-ltdl
|
||||||
@ -84,24 +85,25 @@ BuildRequires: libXtst-devel
|
|||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
BuildRequires: procps-devel
|
BuildRequires: procps-devel
|
||||||
%if 0%{?fedora} >= 28 || 0%{?rhel} >=9
|
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
|
||||||
BuildRequires: rpcgen
|
BuildRequires: rpcgen
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd-devel
|
||||||
%if 0%{?fedora} >= 28 || 0%{?rhel} >=9
|
%if 0%{?fedora} >= 30 || 0%{?rhel} >= 9
|
||||||
|
BuildRequires: systemd-rpm-macros
|
||||||
|
%endif
|
||||||
|
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
|
||||||
BuildRequires: libtirpc-devel
|
BuildRequires: libtirpc-devel
|
||||||
%endif
|
%endif
|
||||||
BuildRequires: xmlsec1-openssl-devel
|
BuildRequires: xmlsec1-openssl-devel
|
||||||
|
|
||||||
Requires: coreutils
|
Requires: coreutils
|
||||||
Requires: fuse
|
Requires: fuse
|
||||||
Requires: libdrm
|
|
||||||
Requires: iproute
|
Requires: iproute
|
||||||
Requires: grep
|
Requires: grep
|
||||||
Requires: pciutils
|
Requires: pciutils
|
||||||
Requires: sed
|
Requires: sed
|
||||||
Requires: systemd
|
Requires: systemd
|
||||||
Requires: systemd-libs
|
|
||||||
Requires: tar
|
Requires: tar
|
||||||
Requires: util-linux
|
Requires: util-linux
|
||||||
Requires: which
|
Requires: which
|
||||||
@ -174,7 +176,7 @@ machines.
|
|||||||
# configure.ac get modified
|
# configure.ac get modified
|
||||||
autoreconf -vif
|
autoreconf -vif
|
||||||
|
|
||||||
%if 0%{?fedora} >= 28 || 0%{?rhel} >=9
|
%if 0%{?fedora} >= 28 || 0%{?rhel} >= 8
|
||||||
%global usetirpc with-tirpc
|
%global usetirpc with-tirpc
|
||||||
%else
|
%else
|
||||||
%global usetirpc without-tirpc
|
%global usetirpc without-tirpc
|
||||||
@ -258,8 +260,7 @@ if [ "$1" = "2" ]; then
|
|||||||
# Cleanup vmtoolsd-init.service in case of upgrades
|
# Cleanup vmtoolsd-init.service in case of upgrades
|
||||||
%{_bindir}/systemctl disable %{toolsdaemon}-init.service &> /dev/null || /bin/true
|
%{_bindir}/systemctl disable %{toolsdaemon}-init.service &> /dev/null || /bin/true
|
||||||
fi
|
fi
|
||||||
%systemd_post %{vgauthdaemon}.service
|
%systemd_post %{vgauthdaemon}.service %{toolsdaemon}.service
|
||||||
%systemd_post %{toolsdaemon}.service
|
|
||||||
|
|
||||||
%post desktop
|
%post desktop
|
||||||
%systemd_post run-vmblock\x2dfuse.mount
|
%systemd_post run-vmblock\x2dfuse.mount
|
||||||
@ -271,8 +272,7 @@ if %{_bindir}/systemctl is-active %{toolsdaemon}.service &> /dev/null; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
%systemd_preun %{toolsdaemon}.service
|
%systemd_preun %{toolsdaemon}.service %{vgauthdaemon}.service
|
||||||
%systemd_preun %{vgauthdaemon}.service
|
|
||||||
|
|
||||||
if [ "$1" = "0" -a \
|
if [ "$1" = "0" -a \
|
||||||
-f %{_bindir}/vmware-checkvm ] && \
|
-f %{_bindir}/vmware-checkvm ] && \
|
||||||
@ -301,8 +301,7 @@ fi
|
|||||||
%else
|
%else
|
||||||
/sbin/ldconfig
|
/sbin/ldconfig
|
||||||
%endif
|
%endif
|
||||||
%systemd_postun_with_restart %{toolsdaemon}.service
|
%systemd_postun_with_restart %{toolsdaemon}.service %{vgauthdaemon}.service
|
||||||
%systemd_postun_with_restart %{vgauthdaemon}.service
|
|
||||||
|
|
||||||
%postun desktop
|
%postun desktop
|
||||||
%systemd_postun run-vmblock\x2dfuse.mount
|
%systemd_postun run-vmblock\x2dfuse.mount
|
||||||
@ -391,6 +390,11 @@ fi
|
|||||||
%{_bindir}/vmware-vgauth-smoketest
|
%{_bindir}/vmware-vgauth-smoketest
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Mar 16 2021 Neal Gompa <ngompa13@gmail.com> - 11.2.5-4
|
||||||
|
- Add missing BRs
|
||||||
|
- Clean up conditionals to build correctly with EL8+
|
||||||
|
- Simplify systemd scriptlets
|
||||||
|
|
||||||
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 11.2.5-3
|
* Tue Mar 02 2021 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 11.2.5-3
|
||||||
- Rebuilt for updated systemd-rpm-macros
|
- Rebuilt for updated systemd-rpm-macros
|
||||||
See https://pagure.io/fesco/issue/2583.
|
See https://pagure.io/fesco/issue/2583.
|
||||||
|
Loading…
Reference in New Issue
Block a user