public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-varlink] f45: Rework and convert to pyproject macros; Fixes: RHBZ#2378314
@ 2026-11-04 19:50 Davide Cavalca
0 siblings, 0 replies; only message in thread
From: Davide Cavalca @ 2026-11-04 19:50 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-varlink
Branch : f45
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=f45
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-04 19:50 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-04 19:50 [rpms/python-varlink] f45: Rework and convert to pyproject macros; Fixes: RHBZ#2378314 Davide Cavalca
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox