diff --git a/libappindicator.spec b/libappindicator.spec index e0bf0a9..8a50529 100644 --- a/libappindicator.spec +++ b/libappindicator.spec @@ -1,6 +1,12 @@ +%if 0%{?rhel} >= 9 +%bcond_with mono +%else +%bcond_without mono +%endif + Name: libappindicator Version: 12.10.0 -Release: 32%{?dist} +Release: 33%{?dist} Summary: Application indicators library License: LGPLv2 and LGPLv3 @@ -25,12 +31,14 @@ BuildRequires: gtk2-devel BuildRequires: gtk3-devel BuildRequires: libindicator-devel BuildRequires: libindicator-gtk3-devel +%if %{with mono} %ifarch %{mono_arches} BuildRequires: gtk-sharp2-devel BuildRequires: gtk-sharp2-gapi BuildRequires: mono-devel BuildRequires: mono-nunit-devel %endif +%endif %description A library to allow applications to export a menu into the Unity Menu bar. Based @@ -81,6 +89,7 @@ This package contains the documentation for the appindicator and appindicator-gtk3 libraries. +%if %{with mono} %ifarch %{mono_arches} %package sharp Summary: Application indicators library - C# @@ -103,6 +112,7 @@ Requires: %{name}-sharp = %{version}-%{release} %description sharp-devel This package contains the development files for the appindicator-sharp library. %endif +%endif %prep @@ -193,6 +203,7 @@ find %{buildroot} -type f -name '*.la' -delete %doc %{_datadir}/gtk-doc/html/libappindicator/ +%if %{with mono} %ifarch %{mono_arches} %files sharp %doc AUTHORS README COPYING COPYING.LGPL.2.1 @@ -219,9 +230,13 @@ find %{buildroot} -type f -name '*.la' -delete %files sharp-devel %{_libdir}/pkgconfig/appindicator-sharp-0.1.pc +%endif %endif %changelog +* Sun Jun 26 2022 Neal Gompa - 12.10.0-33 +- Disable Mono bindings for RHEL 9+ for now + * Thu Jan 20 2022 Fedora Release Engineering - 12.10.0-32 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild