public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/python-pyperclip] epel10.3: Reduce macro indirection in the spec file
Date: Mon, 21 Sep 2026 09:02:28 GMT	[thread overview]
Message-ID: <178998134872.1.2874423301389761742.rpms-python-pyperclip-739ef9034a6f@fedoraproject.org> (raw)

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

                 reply	other threads:[~2026-09-21  9:02 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=178998134872.1.2874423301389761742.rpms-python-pyperclip-739ef9034a6f@fedoraproject.org \
    --to=code@musicinmybrain.net \
    --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