Skip to content

Commit

Permalink
workaround for RHEL 8.10 requiring %pycached
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed Jul 18, 2024
1 parent 9d980f5 commit 75fe7ad
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packaging/rpm/pygobject3.spec
Original file line number Diff line number Diff line change
@@ -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}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 75fe7ad

Please sign in to comment.