public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/setconf] rawhide: New release - setconf 0.7.8
@ 2026-11-26 11:32 Jan Macku
  0 siblings, 0 replies; only message in thread
From: Jan Macku @ 2026-11-26 11:32 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/setconf
            Branch : rawhide
            Commit : be1c8498fde384dfcf4c54b107be6a45eb8ef45e
            Author : Jan Macku <jamacku@redhat.com>
            Date   : 2026-11-26T12:31:58+01:00
            Stats  : +23/-16 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/setconf/c/be1c8498fde384dfcf4c54b107be6a45eb8ef45e?branch=rawhide

            Log:
            New release - setconf 0.7.8

Migrate from deprecated %%py3_build/%%py3_install to %%pyproject macros

Resolves: #2378454

---
diff --git a/.gitignore b/.gitignore
index 7ee3f3e..ddcba89 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 /setconf-0.7.6.tar.gz
 /setconf-0.7.7.tar.gz
+/setconf-0.7.8.tar.xz
+/setconf-0.7.8.tar.gz

diff --git a/setconf.spec b/setconf.spec
index 4b478df..57beb3b 100644
--- a/setconf.spec
+++ b/setconf.spec
@@ -1,11 +1,11 @@
 Name:           setconf
-Version:        0.7.7 
-Release:        24%{?dist}
-Summary:        Utility for changing settings in configuration text files 
+Version:        0.7.8
+Release:        1%{?dist}
+Summary:        Utility for changing settings in configuration text files
 
 # Automatically converted from old format: GPLv2 - review is highly recommended.
 License:        GPL-2.0-only
-URL:            http://setconf.roboticoverlords.org/ 
+URL:            http://setconf.roboticoverlords.org/
 Source0:        https://github.com/xyproto/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
 
 # Patch#:       setconf-version-description.patch
@@ -13,39 +13,44 @@ Patch0:         setconf-0.7.6-rm_sb.patch
 Patch2:         setconf-0.7.7-add_man.patch
 
 BuildRequires:  python3-devel
-BuildRequires:  python3-setuptools
 
 BuildArch:      noarch
 
 %description
 Setconf is small utility that can be used for
-changing settings in configuration text files. 
+changing settings in configuration text files.
 
 %prep
 %autosetup -n %{name}-%{version}
 
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-%py3_build
+%pyproject_wheel
+
+%install
+%pyproject_install
+%pyproject_save_files %{name}
 
 %check
 %{__python3} setconf.py --test
-awk '/^..\/setconf.py/ { print "%{__python3} " $0; next } { print }' testcases/test.sh >testcases/py3_test.sh
+# Upstream test.sh invokes "python"; Fedora only provides python3.
+sed 's|/usr/bin/env python|%{__python3}|' testcases/test.sh >testcases/py3_test.sh
 chmod a+x testcases/py3_test.sh
 cd testcases/ && ./py3_test.sh
 
-%install
-%py3_install
-
-%files
+%files -f %{pyproject_files}
 %license COPYING
 %doc README.md
-%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/
-%{python3_sitelib}/%{name}.py
-%{python3_sitelib}/__pycache__/%{name}.*.pyc
 %{_mandir}/man1/%{name}.1*
 %{_bindir}/%{name}
 
 %changelog
+* Thu Nov 26 2026 Jan Macku <jamacku@redhat.com> - 0.7.8-1
+- New release - setconf 0.7.8
+- Migrate from deprecated %%py3_build/%%py3_install to %%pyproject macros (#2378454)
+
 * Fri Jul 17 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.7-24
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index 1e5d72e..38521ba 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (setconf-0.7.7.tar.gz) = 5ada31bbf7abcaf69b0c7759bfb624b985e6482762e84a5eeeac3d3ed022fd88cd4440ebf53454839cf974370df85f73ac1a74ee9b9144c84d4763f537d0f96f
+SHA512 (setconf-0.7.8.tar.gz) = 698b881fcf605205227c2a5e3afff7dcf95eb50b82802a175072ad4e995d6a51edbdca350662fe6af3b8b6a4f9ac55f7f38f616c202401b891ebc455c223e6ce

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 11:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 11:32 [rpms/setconf] rawhide: New release - setconf 0.7.8 Jan Macku

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox