public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pycxx] rawhide: Remove python2 condition sections
@ 2026-06-24 10:42 Barry Scott
  0 siblings, 0 replies; only message in thread
From: Barry Scott @ 2026-06-24 10:42 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pycxx
Branch : rawhide
Commit : 11eefc233a3dce7ef78b64023289aaf70405a12f
Author : Barry Scott <barry@barrys-emacs.org>
Date   : 2026-06-24T10:35:55+01:00
Stats  : +3/-49 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pycxx/c/11eefc233a3dce7ef78b64023289aaf70405a12f?branch=rawhide

Log:
Remove python2 condition sections

---
diff --git a/python-pycxx.spec b/python-pycxx.spec
index 0cff3fb..0bc81da 100644
--- a/python-pycxx.spec
+++ b/python-pycxx.spec
@@ -1,16 +1,5 @@
 %global modname pycxx
 
-%if 0%{?el6}%{?el7}%{?fc29}%{?fc30}%{?fc31}
-%bcond_without python2
-%else
-%bcond_with    python2
-%endif
-%if 0%{?el6}%{?el7}%{?el8}%{?el9}%{?fedora}
-%bcond_without python3
-%else
-%bcond_with    python3
-%endif
-
 Name:           python-%{modname}
 Version:        7.2.0
 Release:        1%{?dist}
@@ -36,23 +25,6 @@ of Python extension modules in C++.
 
 %description %_description
 
-%if %{with python2}
-%package -n python2-%{modname}-devel
-Summary:        PyCXX header and source files
-%{?python_provide:%python_provide python2-%{modname}-devel}
-BuildRequires:  python2-devel
-Requires:       python2
-# Obsoletes/Provides needed only for EL6
-Provides:       python-pycxx-devel = %{version}-%{release}
-Obsoletes:      python-pycxx-devel < 7.1.3-5
-
-%description -n python2-%{modname}-devel %_description
-
-The python2-%{modname}-devel package provides the header and source files
-for Python 2.  There is no non-devel package needed.
-%endif
-
-%if %{with python3}
 %package -n python%{python3_pkgversion}-%{modname}-devel
 Summary:        PyCXX header and source files
 %{?python_provide:%python_provide python%{python3_pkgversion}-%{modname}-devel}
@@ -63,7 +35,7 @@ Requires:       python%{python3_pkgversion}
 
 The python%{python3_pkgversion}-%{modname}-devel package provides the header and source files
 for Python 3.  There is no non-devel package needed.
-%endif
+
 
 %prep
 %autosetup -p1 -n %{modname}-%{version}
@@ -75,8 +47,7 @@ for Python 3.  There is no non-devel package needed.
 
 %install
 %global py_install_args --prefix=%{_prefix} --install-headers=%{_includedir}/CXX --install-data=%{_usrsrc}
-%{?with_python2:%py2_install -- %{py_install_args}}
-%{?with_python3:%py3_install -- %{py_install_args}}
+%py3_install -- %{py_install_args}
 
 # Write pkg-config PyCXX.pc file
 mkdir -p %{buildroot}%{_datadir}/pkgconfig
@@ -98,23 +69,6 @@ export PKG_CONFIG_PATH=%{buildroot}%{_datadir}/pkgconfig:%{buildroot}%{_libdir}/
 test "$(pkg-config --modversion PyCXX)" = "%{version}"
 
 
-%if %{with python2}
-%files -n python2-%{modname}-devel
-%doc README.html COPYRIGHT Doc/Python2/
-%dir %{_includedir}/CXX
-%{_includedir}/CXX/*.hxx
-%{_includedir}/CXX/*.h
-%{_includedir}/CXX/Python2
-%{python2_sitelib}/CXX*
-%dir %{_usrsrc}/CXX
-%{_usrsrc}/CXX/*.cxx
-%{_usrsrc}/CXX/*.c
-%{_usrsrc}/CXX/Python2
-%{_datadir}/pkgconfig/PyCXX.pc
-%endif
-
-
-%if %{with python3}
 %files -n python%{python3_pkgversion}-%{modname}-devel
 %doc README.html COPYRIGHT Doc/Python3/
 %dir %{_includedir}/CXX
@@ -127,12 +81,12 @@ test "$(pkg-config --modversion PyCXX)" = "%{version}"
 %{_usrsrc}/CXX/*.c
 %{_usrsrc}/CXX/Python3
 %{_datadir}/pkgconfig/PyCXX.pc
-%endif
 
 
 %changelog
 * Wed Jun 24 2026 barry Scott <barry@barrys-emacs.org> - 7.1.10-12
 - update to pycxx 7.2.0
+  remove python2 conditional sections
 
 * Wed Jun 03 2026 Python Maint <python-maint@redhat.com> - 7.1.10-11
 - Rebuilt for Python 3.15

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-06-24 10:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-24 10:42 [rpms/python-pycxx] rawhide: Remove python2 condition sections Barry Scott

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox