drop dependency on libdbusmenu for RHEL-9/ELN

https://bugzilla.redhat.com/show_bug.cgi?id=1913165
This commit is contained in:
Thomas Haller 2021-01-06 13:05:38 +01:00
parent 9e2f2eb60e
commit 447d2635b1

View File

@ -7,7 +7,7 @@
%global rpm_version 1.18.0
%global real_version 1.18.0
%global release_version 2
%global release_version 3
%global real_version_major %(printf '%s' '%{real_version}' | sed -n 's/^\\([1-9][0-9]*\\.[1-9][0-9]*\\)\\.[1-9][0-9]*$/\\1/p')
@ -17,6 +17,12 @@
%bcond_without libnma_gtk4
%endif
%if 0%{?fedora} || 0%{?rhel} < 9
%bcond_without appindicator
%else
%bcond_with appindicator
%endif
Name: network-manager-applet
Summary: A network control and status applet for NetworkManager
Version: %{rpm_version}
@ -56,10 +62,12 @@ BuildRequires: jansson-devel
BuildRequires: gcr-devel
BuildRequires: libselinux-devel
BuildRequires: mobile-broadband-provider-info-devel
%if 0%{?rhel} < 9 || 0%{?fedora}
%if %{with appindicator}
BuildRequires: libappindicator-gtk3-devel
%endif
%if 0%{?fedora} || 0%{?rhel} < 9
BuildRequires: libdbusmenu-gtk3-devel
%endif
%description
This package contains a network control and status notification area applet
@ -82,7 +90,7 @@ utility for use with NetworkManager.
-Dgcr=true \
-Dselinux=true \
-Ddisable-static=true \
%if 0%{?rhel} < 9 || 0%{?fedora}
%if %{with appindicator}
-Dappindicator=yes
%else
-Dappindicator=no
@ -136,6 +144,9 @@ desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/nm-connection-edit
%changelog
* Wed Jan 6 2021 Thomas Haller <thaller@redhat.com> - 1.18.0-3
- Build without libdbusmenu-gtk3-devel on RHEL >=9
* Wed Nov 18 2020 Antonio Cardace <acardace@redhat.com> - 1.18.0-2
- Build without libappindicator-gtk3-devel on RHEL >=9