From 75fe7ad62f1a176f62e82529b1f9a5aad3273eae Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 18 Jul 2024 23:15:33 +0700 Subject: [PATCH] workaround for RHEL 8.10 requiring %pycached --- packaging/rpm/pygobject3.spec | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packaging/rpm/pygobject3.spec b/packaging/rpm/pygobject3.spec index de942caec6..1d85df7fae 100644 --- a/packaging/rpm/pygobject3.spec +++ b/packaging/rpm/pygobject3.spec @@ -1,6 +1,8 @@ %define _disable_source_fetch 0 %global debug_package %{nil} +%define el8_10 %(grep -q " release 8.10 " /etc/redhat-release && echo 1) + %if "%{getenv:PYTHON3}" == "" %global python3 python3 %define package_prefix %{nil} @@ -108,7 +110,7 @@ fi %files -n %{python3}-gobject-base %dir %{python3_sitearch}/gi/ -%if 0%{?fedora}%{?el9} +%if 0%{?fedora}%{?el9}%{?el8_10} %pycached %{python3_sitearch}/gi/*.py %else %{python3_sitearch}/gi/*.py