public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-rpmautospec] rawhide: Build extras without dependencies on ELN
@ 2026-09-03 9:25 Yaakov Selkowitz
0 siblings, 0 replies; only message in thread
From: Yaakov Selkowitz @ 2026-09-03 9:25 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-rpmautospec
Branch : rawhide
Commit : afbd4340b6680641fa36567b166eee6834fd31ba
Author : Yaakov Selkowitz <yselkowi@redhat.com>
Date : 2026-08-24T04:29:08+00:00
Stats : +10/-7 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-rpmautospec/c/afbd4340b6680641fa36567b166eee6834fd31ba?branch=rawhide
Log:
Build extras without dependencies on ELN
As we do not yet have separate builds for ELN and ELN Extras, and some
Extras packages require the python3-rpmautospec module, this allows for
both without adding any unwanted build dependencies to ELN proper.
---
diff --git a/python-rpmautospec.spec b/python-rpmautospec.spec
index ee93a39..6541750 100644
--- a/python-rpmautospec.spec
+++ b/python-rpmautospec.spec
@@ -18,13 +18,16 @@
%bcond xdist %[%{without bootstrap} && %{undefined rhel}]
# Whether to build only the minimal package for RHEL buildroot
-%bcond minimal %[%{defined rhel} && %{undefined epel}]
+%bcond minimal %[%{defined rhel} && %{undefined epel} && %{undefined eln}]
+
+# Whether to build extras with their dependencies
+%bcond extras %[%{undefined rhel} || %{defined epel}]
# While bootstrapping or building the minimal package, ignore manpages
-%bcond manpages %[%{without bootstrap} && %{without minimal}]
+%bcond manpages %[%{without bootstrap} && %{with extras}]
# While building the minimal package, ignore shell completions
-%bcond completions %{without minimal}
+%bcond completions %{with extras}
# Package the placeholder rpm-macros (moved to redhat-rpm-config in F40)
%if ! (0%{?fedora} >= 40 || 0%{?rhel} >= 10)
@@ -149,7 +152,7 @@ Requires: this-is-broken-libgit2-missing-during-build
Requires: rpm-libs
Requires: rpm-build-libs
-%if %{without minimal}
+%if %{with extras}
Recommends: python3-%{srcname} = %{version}-%{release}
Recommends: python3-%{srcname}+click = %{version}-%{release}
Recommends: python3-%{srcname}+pygit2 = %{version}-%{release}
@@ -170,7 +173,7 @@ enabled packages locally.
%endif
%generate_buildrequires
-%pyproject_buildrequires %{!?with_minimal:-x all}
+%pyproject_buildrequires %{?with_extras:-x all}
%prep
%autosetup -n %{srcname}-%{version}
@@ -242,10 +245,10 @@ touch -r %{S:1} %{buildroot}%{_bindir}/rpmautospec
%check
# Always run the import checks, even when other tests are disabled
-%pyproject_check_import %{?with_minimal:-e '*click*'}
+%pyproject_check_import %{!?with_extras:-e '*click*'}
%if %{with tests}
-%if %{without minimal}
+%if %{with extras}
%pytest \
%if %{with xdist}
--numprocesses=auto
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-03 9:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-03 9:25 [rpms/python-rpmautospec] rawhide: Build extras without dependencies on ELN Yaakov Selkowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox