pgxnclient: Add RHEL 10 support
authorDevrim Gunduz <devrim@gunduz.org>
Wed, 28 May 2025 13:55:51 +0000 (16:55 +0300)
committerDevrim Gunduz <devrim@gunduz.org>
Wed, 28 May 2025 13:55:51 +0000 (16:55 +0300)
rpm/redhat/main/common/pgxnclient/main/pgxnclient.spec

index 29d8318fe41399bfa101be5a6e1be0fa69fd0fb7..26d573231214a475b44064a8ab9a36244f3a9733 100644 (file)
@@ -1,7 +1,6 @@
 %global debug_package %{nil}
 
-%global __ospython %{_bindir}/python3
-%if 0%{?fedora} >= 35
+%if 0%{?fedora} >= 40 || 0%{?rhel} >= 10
 %{expand: %%global pyver %(echo `%{__python3} -c "import sys; sys.stdout.write(sys.version[:4])"`)}
 %else
 %{expand: %%global pyver %(echo `%{__python3} -c "import sys; sys.stdout.write(sys.version[:3])"`)}
@@ -11,7 +10,7 @@
 Summary:       Command line tool designed to interact with the PostgreSQL Extension Network
 Name:          pgxnclient
 Version:       1.3.2
-Release:       3PGDG%{?dist}
+Release:       4PGDG%{?dist}
 Source0:       https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
 License:       BSD
 Url:           https://github.com/pgxn/pgxnclient
@@ -26,11 +25,11 @@ removing extensions in a PostgreSQL installation or database.
 %setup -q -n %{name}-%{version}
 
 %build
-%{__ospython} setup.py build
+%{__python3} setup.py build
 
 %install
 %{__rm} -rf %{buildroot}
-%{__ospython} setup.py install --root %{buildroot}
+%{__python3} setup.py install --root %{buildroot}
 
 %files
 %defattr(-,root,root)
@@ -50,6 +49,9 @@ removing extensions in a PostgreSQL installation or database.
 %{python3_sitelib}/%{name}/utils/__pycache__/*.p*
 
 %changelog
+* Wed May 28 2025 Devrim Gündüz <devrim@gunduz.org> 1.3.2-4PGDG
+- Add RHEL 10 support
+
 * Mon Aug 21 2023 Devrim Gündüz <devrim@gunduz.org> 1.3.2-3PGDG
 - Remove RHEL 6 bits
 - Add PGDG branding