From: Devrim Gunduz Date: Fri, 13 Jun 2025 14:52:36 +0000 (+0300) Subject: pgdg-python3-zstandard: Define python3_sitearch explicity for SLES 15 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=32f4b2fe7bf5646ed1fc86330e393659fa41fe11;p=pgrpms.git pgdg-python3-zstandard: Define python3_sitearch explicity for SLES 15 --- diff --git a/rpm/redhat/main/common/pgdg-python3-zstandard/main/python3-zstandard.spec b/rpm/redhat/main/common/pgdg-python3-zstandard/main/python3-zstandard.spec index 91ab15b98..1a712b06c 100644 --- a/rpm/redhat/main/common/pgdg-python3-zstandard/main/python3-zstandard.spec +++ b/rpm/redhat/main/common/pgdg-python3-zstandard/main/python3-zstandard.spec @@ -14,10 +14,11 @@ %endif %{expand: %%global pybasever %(echo `%{__ospython} -c "import sys; sys.stdout.write(sys.version[:4])"`)} +%{expand: %%global python3_sitearch %(echo `%{__ospython} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(2))"`)} Name: python%{python3_pkgversion}-%{pypi_name} Version: 0.23.0 -Release: 42PGDG%{?dist} +Release: 43PGDG%{?dist} Summary: Zstandard bindings for Python License: (BSD-3-Clause OR GPL-2.0-only) AND MIT URL: https://github.com/indygreg/python-%{pypi_name} @@ -51,11 +52,16 @@ compression library. A C extension and CFFI interface are provided. %doc README.rst %{python3_sitearch}/%{pypi_name}-%{version}-py%{pybasever}.egg-info/* %{python3_sitearch}/%{pypi_name}/*.py* -%{python3_sitearch}/%{pypi_name}/__pycache__/*.py* %{python3_sitearch}/%{pypi_name}/py.typed %{python3_sitearch}/%{pypi_name}/*.so +%if 0%{?rhel} || 0%{?fedora} +%{python3_sitearch}/%{pypi_name}/__pycache__/*.py* +%endif %changelog +* Fri Jun 13 2025 Devrim Gunduz - 0.23.0-43PGDG +- Add SLES 15 support + * Tue May 27 2025 Devrim Gunduz - 0.23.0-42PGDG - Initial packaging for the PostgreSQL RPM repository to support Barman on RHEL 9 and RHEL 8.