public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Barry Scott <barry@barrys-emacs.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pycxx] rawhide: Remove python2 condition sections
Date: Wed, 24 Jun 2026 10:42:52 GMT [thread overview]
Message-ID: <178229777260.1.10012440478359727295.rpms-python-pycxx-11eefc233a3d@fedoraproject.org> (raw)
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
reply other threads:[~2026-06-24 10:42 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178229777260.1.10012440478359727295.rpms-python-pycxx-11eefc233a3d@fedoraproject.org \
--to=barry@barrys-emacs.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox