public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Davide Cavalca <dcavalca@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/python-varlink] epel10: Rework and convert to pyproject macros; Fixes: RHBZ#2378314
Date: Wed, 04 Nov 2026 20:15:04 GMT	[thread overview]
Message-ID: <179382330474.1.11196209987601188833.rpms-python-varlink-b7b22ff256e6@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/python-varlink
Branch : epel10
Commit : b7b22ff256e659fac8f8be30027bba2030bc3349
Author : Davide Cavalca <dcavalca@fedoraproject.org>
Date   : 2026-11-04T11:04:28-08:00
Stats  : +15/-19 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-varlink/c/b7b22ff256e659fac8f8be30027bba2030bc3349?branch=epel10

Log:
Rework and convert to pyproject macros; Fixes: RHBZ#2378314

---
diff --git a/python-varlink.spec b/python-varlink.spec
index dfdfebd..99243a8 100644
--- a/python-varlink.spec
+++ b/python-varlink.spec
@@ -2,27 +2,21 @@ Name:           python-varlink
 Version:        31.0.0
 Release:        %autorelease
 Summary:        Python implementation of Varlink
-# Automatically converted from old format: ASL 2.0 - review is highly recommended.
+
 License:        Apache-2.0
 URL:            https://github.com/varlink/%{name}
-Source0:        https://github.com/varlink/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
+Source:         %{url}/archive/%{version}/%{name}-%{version}.tar.gz
+
 BuildArch:      noarch
 BuildRequires:  python3-devel
-BuildRequires:  python3-rpm-macros
-BuildRequires:  python3-setuptools
-BuildRequires:  python3-setuptools_scm
 
-%global _description \
-An python module for Varlink with client and server support.
+%global _description %{expand:
+An python module for Varlink with client and server support.}
 
 %description %_description
 
 %package -n python3-varlink
 Summary:       %summary
-%{?python_provide:%python_provide python3-varlink}
-# The varlink copr had this package under the "python-varlink"
-# name. Add Obsoletes to make it easy to upgrade.
-Obsoletes:     python-varlink <= 3-1.git.61.1bc637d.fc27
 
 %description -n python3-varlink %_description
 
@@ -33,22 +27,24 @@ sed -i -e 's#env python#env python3#' varlink/tests/test_certification.py
 # varlink also supports python-2.7 but python3 is required here
 sed -i -e 's#env python#env python3#' varlink/tests/test_orgexamplemore.py
 
+# Drop unused dependency
+sed -i '/setuptools_scm_git_archive/d' pyproject.toml
+
+%generate_buildrequires
+%pyproject_buildrequires
+
 %build
-export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
-%py3_build
+%pyproject_wheel
 
 %check
-export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
 CFLAGS="%{optflags}" %{__python3} %{py_setup} %{?py_setup_args} check
 
 %install
-export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
-%py3_install
+%pyproject_install
+%pyproject_save_files -l varlink
 
-%files -n python3-varlink
-%license LICENSE.txt
+%files -n python3-varlink -f %{pyproject_files}
 %doc README.md
-%{python3_sitelib}/*
 
 %changelog
 %autochangelog

                 reply	other threads:[~2026-11-04 20:15 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=179382330474.1.11196209987601188833.rpms-python-varlink-b7b22ff256e6@fedoraproject.org \
    --to=dcavalca@fedoraproject.org \
    --cc=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