py-consul: __pycache__ is currently generated only on RHEL/Fedora.
authorDevrim Gunduz <devrim@gunduz.org>
Thu, 16 Oct 2025 11:24:31 +0000 (14:24 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Thu, 16 Oct 2025 11:24:31 +0000 (14:24 +0300)
rpm/redhat/main/common/py-consul/main/py-consul.spec

index 1008a61a4beaf33ec51c7680fcea152845567796..e06fa547c027dbc9135b77736b5b24430411b461 100644 (file)
@@ -60,11 +60,13 @@ Python client for Consul
 %license LICENSE
 %{pgdg_python3_sitelib}/%{modname}-%{version}-py%{pybasever}.egg-info/*
 %{pgdg_python3_sitelib}/consul/*.py*
-%{pgdg_python3_sitelib}/consul/__pycache__/*.py*
 %{pgdg_python3_sitelib}/consul/api/*.py*
-%{pgdg_python3_sitelib}/consul/api/__pycache__/*.py*
 %{pgdg_python3_sitelib}/consul/api/acl/*.py*
+%if 0%{?rhel} || 0%{?fedora}
+%{pgdg_python3_sitelib}/consul/__pycache__/*.py*
+%{pgdg_python3_sitelib}/consul/api/__pycache__/*.py*
 %{pgdg_python3_sitelib}/consul/api/acl/__pycache__/*.py*
+%endif
 
 %changelog
 * Thu Oct 16 2025 Devrim Gunduz <devrim@gunduz.org> - 1.6.0-45PGDG