public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python-lazr-config] epel10: Remove python2 subpackage (#1627422)
Date: Tue, 24 Nov 2026 20:45:18 GMT [thread overview]
Message-ID: <179555311815.1.17195528942722793681.rpms-python-lazr-config-17db61ad7dcd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python-lazr-config
Branch : epel10
Commit : 17db61ad7dcda580ed80dc589ee416677f600323
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2018-10-11T20:41:26+02:00
Stats : +4/-40 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-lazr-config/c/17db61ad7dcda580ed80dc589ee416677f600323?branch=epel10
Log:
Remove python2 subpackage (#1627422)
---
diff --git a/python-lazr-config.spec b/python-lazr-config.spec
index aa06f03..2b99efb 100644
--- a/python-lazr-config.spec
+++ b/python-lazr-config.spec
@@ -10,18 +10,9 @@ This system uses ini-like file format of section, keys, and values. The config \
file supports inheritance to minimize duplication of information across files. \
The format supports schema validation.
-# EPEL7 support: default Python is Python 2, and Python2 packages prefix
-# is unversioned.
-%if 0%{?rhel} && 0%{?rhel} <= 7
-%global py2_namespace python
-%else
-%global py2_namespace python2
-%endif
-
-
Name: python-%{pkgname}
Version: 2.1
-Release: 7%{?dist}
+Release: 8%{?dist}
Summary: %{summary}
License: LGPLv3
@@ -29,11 +20,6 @@ URL: https://launchpad.net/lazr.config
Source0: https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
-BuildRequires: %{py2_namespace}-devel
-BuildRequires: %{py2_namespace}-setuptools
-BuildRequires: %{py2_namespace}-zope-interface
-BuildRequires: %{py2_namespace}-nose
-BuildRequires: %{py2_namespace}-lazr-delegates
# Python3
BuildRequires: python%{python3_pkgversion}-devel
BuildRequires: python%{python3_pkgversion}-setuptools
@@ -48,22 +34,8 @@ BuildRequires: python%{python3_other_pkgversion}-nose
BuildRequires: python%{python3_other_pkgversion}-lazr-delegates
%endif
-
%description %{_description}
-
-%if %{py2_namespace} != python
-%package -n %{py2_namespace}-%{pkgname}
-Summary: %{summary}
-%{?python_provide:%python_provide python2-%{pkgname}}
-Requires: %{py2_namespace}-setuptools
-Requires: %{py2_namespace}-zope-interface
-Requires: %{py2_namespace}-lazr-delegates
-
-%description -n %{py2_namespace}-%{pkgname} %{_description}
-%endif
-
-
%package -n python%{python3_pkgversion}-%{pkgname}
Summary: %{summary}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
@@ -93,7 +65,6 @@ sed -i -e '/^with-coverage/d;/^pdb /d;/^cover-package/d' setup.cfg
%build
-%py2_build
%py3_build
%if 0%{?with_python3_other}
%py3_other_build
@@ -101,7 +72,6 @@ sed -i -e '/^with-coverage/d;/^pdb /d;/^cover-package/d' setup.cfg
%install
-%py2_install
%py3_install
%if 0%{?with_python3_other}
%py3_other_install
@@ -109,7 +79,6 @@ sed -i -e '/^with-coverage/d;/^pdb /d;/^cover-package/d' setup.cfg
%check
-%{__python2} setup.py nosetests
# In Python3, namespace packages don't have an __init__.py file in the parent
# dir. Keeping it would shadow the lazr.delegates module.
rm lazr/__init__.py*
@@ -119,14 +88,6 @@ sed -i -e 's/^\(\s*namespace_packages=.*\)/#\1/' setup.py
%{__python3_other} setup.py nosetests
%endif
-
-%files -n %{py2_namespace}-%{pkgname}
-%license COPYING.txt
-%doc README.rst HACKING.rst
-%{python2_sitelib}/lazr/
-%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}.egg-info/
-%{python2_sitelib}/%{srcname}-%{version}*-py%{python2_version}-nspkg.pth
-
%files -n python%{python3_pkgversion}-%{pkgname}
%license COPYING.txt
%doc README.rst HACKING.rst
@@ -145,6 +106,9 @@ sed -i -e 's/^\(\s*namespace_packages=.*\)/#\1/' setup.py
%changelog
+* Thu Oct 11 2018 Miro Hrončok <mhroncok@redhat.com> - 2.1-8
+- Remove python2 subpackage (#1627422)
+
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
reply other threads:[~2026-11-24 20:45 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=179555311815.1.17195528942722793681.rpms-python-lazr-config-17db61ad7dcd@fedoraproject.org \
--to=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