public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-pyperclip] epel10.3: Reduce macro indirection in the spec file
@ 2026-09-21  9:02 Benjamin A. Beasley
  0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-09-21  9:02 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-pyperclip
Branch : epel10.3
Commit : 739ef9034a6fa495e36219c8b4afe16a0f243428
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date   : 2024-06-23T09:54:04-04:00
Stats  : +13/-16 in 1 file(s)
URL    : https://src.fedoraproject.org/rpms/python-pyperclip/c/739ef9034a6fa495e36219c8b4afe16a0f243428?branch=epel10.3

Log:
Reduce macro indirection in the spec file

---
diff --git a/python-pyperclip.spec b/python-pyperclip.spec
index b736e3f..a22ab41 100644
--- a/python-pyperclip.spec
+++ b/python-pyperclip.spec
@@ -4,17 +4,14 @@
 # We can generate PDF documentation as a substitute.
 %bcond_without doc_pdf
 
-%global pypi_name pyperclip
-
-
-Name:           python-%{pypi_name}
+Name:           python-pyperclip
 Version:        1.8.2
 Release:        9%{?dist}
 Summary:        A cross-platform clipboard module for Python
 
 License:        BSD-3-Clause
-URL:            https://github.com/asweigart/%{pypi_name}
-Source0:        %{pypi_source %{pypi_name}}
+URL:            https://github.com/asweigart/pyperclip
+Source0:        %{pypi_source pyperclip}
 BuildArch:      noarch
 
 %global common_description %{expand:
@@ -24,7 +21,7 @@ functions.}
 %description %{common_description}
 
 
-%package -n     python3-%{pypi_name}
+%package -n     python3-pyperclip
 Summary:        %{summary}
 
 BuildRequires:  python3-devel
@@ -68,10 +65,10 @@ BuildRequires:  /usr/bin/xclip
 # BuildRequires:  /usr/bin/klipper
 # BuildRequires:  /usr/bin/qdbus
 
-%description -n python3-%{pypi_name} %{common_description}
+%description -n python3-pyperclip %{common_description}
 
 
-%package -n python-%{pypi_name}-doc
+%package -n python-pyperclip-doc
 Summary:        Pyperclip documentation
 
 %if %{with doc_pdf}
@@ -112,14 +109,14 @@ BuildRequires:  texlive-dvisvgm
 BuildRequires:  latexmk
 %endif
 
-%description -n python-%{pypi_name}-doc
+%description -n python-pyperclip-doc
 Documentation for pyperclip
 
 
 %prep
-%autosetup -p1 -n %{pypi_name}-%{version}
+%autosetup -p1 -n pyperclip-%{version}
 # Remove bundled egg-info
-rm -rf %{pypi_name}.egg-info
+rm -rf pyperclip.egg-info
 
 # Fix ends of line encoding
 sed -i 's/\r$//' README.md docs/*
@@ -145,15 +142,15 @@ k="${k-}${k+ and }not TestWlCLipboard"
 k="${k-}${k+ and }not TestXSel"
 %pytest -k "${k-}" -v
 
-%files -n python3-%{pypi_name}
+%files -n python3-pyperclip
 %license LICENSE.txt
 %doc AUTHORS.txt
 %doc CHANGES.txt
 %doc README.md
-%{python3_sitelib}/%{pypi_name}
-%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
+%{python3_sitelib}/pyperclip
+%{python3_sitelib}/pyperclip-%{version}-py%{python3_version}.egg-info
 
-%files -n python-%{pypi_name}-doc
+%files -n python-pyperclip-doc
 %license LICENSE.txt
 %if %{with doc_pdf}
 %doc docs/_build/latex/Pyperclip.pdf

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

only message in thread, other threads:[~2026-09-21  9:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-21  9:02 [rpms/python-pyperclip] epel10.3: Reduce 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