public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-py] pr7: move BuildRequires under subpackages
@ 2026-08-01 11:43 Igor Gnatenko
0 siblings, 0 replies; only message in thread
From: Igor Gnatenko @ 2026-08-01 11:43 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-py
Branch : pr7
Commit : 7d41db3e382b7ae064a24cc2eccf07f3df21555b
Author : Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date : 2017-11-03T23:32:00+01:00
Stats : +17/-23 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-py/c/7d41db3e382b7ae064a24cc2eccf07f3df21555b?branch=pr7
Log:
move BuildRequires under subpackages
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
diff --git a/python-py.spec b/python-py.spec
index 493e932..c2c91d3 100644
--- a/python-py.spec
+++ b/python-py.spec
@@ -26,32 +26,10 @@ URL: http://pylib.readthedocs.io/en/stable/
Source: https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
-%if %{with python2}
-BuildRequires: python2-devel
-BuildRequires: python2-setuptools
-%if %{with docs}
-BuildRequires: python-sphinx
-%endif # with_docs
-%endif
-
-%if %{with python3}
-BuildRequires: python3-devel
-BuildRequires: python3-setuptools
-%if %{with docs}
-BuildRequires: python3-sphinx
-%endif # with_docs
-%endif
-
%if %{with tests}
-%if %{with python2}
-BuildRequires: python2-pytest >= %{pytest_version_lb}, python2-pytest < %{pytest_version_ub}
-%endif
-%if %{with python3}
-BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
-%endif
-%endif # with tests
# needed by the testsuite
BuildRequires: subversion
+%endif # with tests
%description
The py lib is a Python development support library featuring the
@@ -66,6 +44,14 @@ following tools and modules:
%if %{with python2}
%package -n python2-%{srcname}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
+BuildRequires: python2-devel
+BuildRequires: python2-setuptools
+%if %{with docs}
+BuildRequires: python-sphinx
+%endif # with_docs
+%if %{with tests}
+BuildRequires: python2-pytest >= %{pytest_version_lb}, python2-pytest < %{pytest_version_ub}
+%endif # with tests
Requires: python-setuptools
%{?python_provide:%python_provide python2-%{srcname}}
Provides: bundled(python-apipkg) = 1.3.dev
@@ -86,6 +72,14 @@ following tools and modules:
%if %{with python3}
%package -n python3-%{srcname}
Summary: Library with cross-python path, ini-parsing, io, code, log facilities
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+%if %{with docs}
+BuildRequires: python3-sphinx
+%endif # with_docs
+%if %{with tests}
+BuildRequires: python3-pytest >= %{pytest_version_lb}, python3-pytest < %{pytest_version_ub}
+%endif # with tests
Requires: python3-setuptools
%{?python_provide:%python_provide python3-%{srcname}}
Provides: bundled(python3-apipkg) = 1.3.dev
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-01 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-01 11:43 [rpms/python-py] pr7: move BuildRequires under subpackages Igor Gnatenko
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox