public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-yarl] f45: Reduce unnecessary macro indirection in the spec file
@ 2026-09-23 6:49 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-23 6:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/python-yarl
Branch : f45
Commit : 87e55b7d1e86e5c5f23d8d7a82c4d3d94838df50
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-09-16T12:16:35+01:00
Stats : +7/-8 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python-yarl/c/87e55b7d1e86e5c5f23d8d7a82c4d3d94838df50?branch=f45
Log:
Reduce unnecessary macro indirection in the spec file
---
diff --git a/python-yarl.spec b/python-yarl.spec
index 4853b2f..c75554d 100644
--- a/python-yarl.spec
+++ b/python-yarl.spec
@@ -1,14 +1,13 @@
%global debug_package %{nil}
-%global pypi_name yarl
-Name: python-%{pypi_name}
+Name: python-yarl
Version: 1.22.0
Release: 5%{?dist}
Summary: Python module to handle URLs
License: Apache-2.0
URL: https://yarl.readthedocs.io
-Source: https://github.com/aio-libs/yarl/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
+Source: https://github.com/aio-libs/yarl/archive/v%{version}/yarl-%{version}.tar.gz
# Compatibility with Python 3.15
# Adapted from: https://github.com/aio-libs/yarl/pull/1642
Patch: Fix-pickling-with-Python-3.15.patch
@@ -23,14 +22,14 @@ BuildRequires: python3dist(pytest-xdist)
%description
The module provides handy URL class for URL parsing and changing.
-%package -n python3-%{pypi_name}
+%package -n python3-yarl
Summary: %{summary}
-%description -n python3-%{pypi_name}
+%description -n python3-yarl
The module provides handy URL class for URL parsing and changing.
%prep
-%autosetup -n %{pypi_name}-%{version} -p1
+%autosetup -n yarl-%{version} -p1
# Disable coverage
sed --regexp-extended --in-place 's/(-.*cov.*$)/#\1/g' pytest.ini
@@ -42,7 +41,7 @@ sed --regexp-extended --in-place 's/(-.*cov.*$)/#\1/g' pytest.ini
%install
%pyproject_install
-%pyproject_save_files --assert-license %{pypi_name}
+%pyproject_save_files --assert-license yarl
%check
# Ignore the benchmark tests which require pytest_codspeed which is not
@@ -51,7 +50,7 @@ ignore="${ignore-} --ignore tests/test_quoting_benchmarks.py"
ignore="${ignore-} --ignore tests/test_url_benchmarks.py"
%pytest ${ignore-} --verbose tests
-%files -n python3-%{pypi_name} -f %{pyproject_files}
+%files -n python3-yarl -f %{pyproject_files}
%doc CHANGES.rst README.rst
%changelog
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-23 6:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 6:49 [rpms/python-yarl] f45: Reduce unnecessary macro indirection in the spec file Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox