pgdg-python3-zstandard: Define python3_sitearch explicity for SLES 15
authorDevrim Gunduz <devrim@gunduz.org>
Fri, 13 Jun 2025 14:52:36 +0000 (17:52 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Fri, 13 Jun 2025 14:52:36 +0000 (17:52 +0300)
rpm/redhat/main/common/pgdg-python3-zstandard/main/python3-zstandard.spec

index 91ab15b9856f45ed0f8242beedb1a4e762642c41..1a712b06c0ba268c8f681430c98a8da518d9661b 100644 (file)
 %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 <devrim@gunduz.org> - 0.23.0-43PGDG
+- Add SLES 15 support
+
 * Tue May 27 2025 Devrim Gunduz <devrim@gunduz.org> - 0.23.0-42PGDG
 - Initial packaging for the PostgreSQL RPM repository to support Barman
   on RHEL 9 and RHEL 8.