~gotmax23/tomcli

tomcli: tomcli.spec: improve specfile logic v1 APPLIED

Maxwell G (2):
  tomcli.spec: add bootstrap and tests bconds
  tomcli.spec: do not use %pyproject_buildrequires -w

 tomcli.spec | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

-- 
2.41.0
#1053979 main.yml success
#1053980 mockbuild-epel9.yml success
#1053981 mockbuild-f37.yml success
#1053982 mockbuild.yml success
tomcli/patches: SUCCESS in 7m4s

[tomcli.spec: improve specfile logic][0] from [Maxwell G][1]

[0]: https://lists.sr.ht/~gotmax23/tomcli/patches/44455
[1]: mailto:maxwell@gtmx.me

✓ #1053979 SUCCESS tomcli/patches/main.yml            https://builds.sr.ht/~gotmax23/job/1053979
✓ #1053980 SUCCESS tomcli/patches/mockbuild-epel9.yml https://builds.sr.ht/~gotmax23/job/1053980
✓ #1053981 SUCCESS tomcli/patches/mockbuild-f37.yml   https://builds.sr.ht/~gotmax23/job/1053981
✓ #1053982 SUCCESS tomcli/patches/mockbuild.yml       https://builds.sr.ht/~gotmax23/job/1053982
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~gotmax23/tomcli/patches/44455/mbox | git am -3
Learn more about email & git

[PATCH tomcli 1/2] tomcli.spec: add bootstrap and tests bconds Export this patch

---
 tomcli.spec | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/tomcli.spec b/tomcli.spec
index 5bd96e9..c06d4eb 100644
--- a/tomcli.spec
+++ b/tomcli.spec
@@ -4,6 +4,12 @@
# SPDX-License-Identifier: MIT
# License text: https://spdx.org/licenses/MIT.html

%bcond bootstrap 0
%bcond tests %{without bootstrap}
%if %{with tests} && %{with bootstrap}
%{error:--with tests and --with bootstrap are mutually exclusive}
%endif

Name:           tomcli
Version:        0.3.0
Release:        1%{?dist}
@@ -36,7 +42,11 @@ tomcli is a CLI for working with TOML files. Pronounced "tom clee."


%generate_buildrequires
%pyproject_buildrequires -x all,tomlkit,tomli,test %{?el9:-w}
%{pyproject_buildrequires %{shrink:
    %{!?with_bootstrap:-x all,tomlkit,tomli}
    %{?with_tests:-x test}
    %{?el9:-w}
}}


%build
@@ -63,7 +73,9 @@ done


%check
%if %{with tests}
%pytest
%endif


%pyproject_extras_subpkg -n tomcli all tomli tomlkit
-- 
2.41.0

[PATCH tomcli 2/2] tomcli.spec: do not use %pyproject_buildrequires -w Export this patch

hatchling has been updated in EPEL 9 and no longer requires this option.
---
 tomcli.spec | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tomcli.spec b/tomcli.spec
index c06d4eb..977dd60 100644
--- a/tomcli.spec
+++ b/tomcli.spec
@@ -45,7 +45,6 @@ tomcli is a CLI for working with TOML files. Pronounced "tom clee."
%{pyproject_buildrequires %{shrink:
    %{!?with_bootstrap:-x all,tomlkit,tomli}
    %{?with_tests:-x test}
    %{?el9:-w}
}}


-- 
2.41.0
tomcli/patches: SUCCESS in 7m4s

[tomcli.spec: improve specfile logic][0] from [Maxwell G][1]

[0]: https://lists.sr.ht/~gotmax23/tomcli/patches/44455
[1]: mailto:maxwell@gtmx.me

✓ #1053979 SUCCESS tomcli/patches/main.yml            https://builds.sr.ht/~gotmax23/job/1053979
✓ #1053980 SUCCESS tomcli/patches/mockbuild-epel9.yml https://builds.sr.ht/~gotmax23/job/1053980
✓ #1053981 SUCCESS tomcli/patches/mockbuild-f37.yml   https://builds.sr.ht/~gotmax23/job/1053981
✓ #1053982 SUCCESS tomcli/patches/mockbuild.yml       https://builds.sr.ht/~gotmax23/job/1053982