public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-wsproto] epel9: Macro cleanup
@ 2026-09-25  1:26 Carl George
  0 siblings, 0 replies; only message in thread
From: Carl George @ 2026-09-25  1:26 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-wsproto
Branch : epel9
Commit : 141a321f79c3710278101d72199118969da341ed
Author : Carl George <carlwgeorge@fedoraproject.org>
Date   : 2025-01-15T22:17:46-06:00
Stats  : +7/-9 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-wsproto/c/141a321f79c3710278101d72199118969da341ed?branch=epel9

Log:
Macro cleanup

---
diff --git a/python-wsproto.spec b/python-wsproto.spec
index 9bcf623..662f451 100644
--- a/python-wsproto.spec
+++ b/python-wsproto.spec
@@ -1,4 +1,3 @@
-%global srcname wsproto
 %global common_description %{expand:
 wsproto is a pure-Python implementation of a WebSocket protocol stack.  It is
 written from the ground up to be embeddable in whatever program you choose to
@@ -12,21 +11,20 @@ WebSocket via RFC7692 are fully supported.}
 
 %bcond_without  tests
 
-
-Name:           python-%{srcname}
+Name:           python-wsproto
 Version:        1.2.0
 Release:        %autorelease
 Summary:        WebSockets state-machine based protocol implementation
 License:        MIT
 URL:            https://github.com/python-hyper/wsproto
-Source:         %pypi_source
+Source:         %{pypi_source wsproto}
 BuildArch:      noarch
 
 
 %description %{common_description}
 
 
-%package -n python3-%{srcname}
+%package -n python3-wsproto
 Summary:        %{summary}
 BuildRequires:  python3-devel
 %if %{with tests}
@@ -34,11 +32,11 @@ BuildRequires:  python3-pytest
 %endif
 
 
-%description -n python3-%{srcname} %{common_description}
+%description -n python3-wsproto %{common_description}
 
 
 %prep
-%autosetup -n %{srcname}-%{version}
+%autosetup -n wsproto-%{version}
 
 
 %generate_buildrequires
@@ -51,7 +49,7 @@ BuildRequires:  python3-pytest
 
 %install
 %pyproject_install
-%pyproject_save_files %{srcname}
+%pyproject_save_files -l wsproto
 
 
 %check
@@ -62,7 +60,7 @@ BuildRequires:  python3-pytest
 %endif
 
 
-%files -n python3-%{srcname} -f %{pyproject_files}
+%files -n python3-wsproto -f %{pyproject_files}
 %doc README.rst CHANGELOG.rst
 
 

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

only message in thread, other threads:[~2026-09-25  1:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-25  1:26 [rpms/python-wsproto] epel9: Macro cleanup Carl George

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