public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/yubikey-manager] epel10: Do not install docs to site-packages
Date: Fri, 21 Aug 2026 14:27:16 GMT	[thread overview]
Message-ID: <178732243672.1.8199052682738068570.rpms-yubikey-manager-3c24c3013d0a@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/yubikey-manager
Branch : epel10
Commit : 3c24c3013d0ad58981a73b744b9051dd2743cdd9
Author : Miro Hrončok <miro@hroncok.cz>
Date   : 2021-10-05T01:18:57+02:00
Stats  : +21/-4 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/yubikey-manager/c/3c24c3013d0ad58981a73b744b9051dd2743cdd9?branch=epel10

Log:
Do not install docs to site-packages

---
diff --git a/do-not-install-docs-to-site-packages.patch b/do-not-install-docs-to-site-packages.patch
new file mode 100644
index 0000000..db8fa38
--- /dev/null
+++ b/do-not-install-docs-to-site-packages.patch
@@ -0,0 +1,14 @@
+diff --git a/pyproject.toml b/pyproject.toml
+index b6b9d64..77125ee 100644
+--- a/pyproject.toml
++++ b/pyproject.toml
+@@ -14,9 +14,6 @@ classifiers = [
+   "Topic :: Utilities"
+ ]
+ include = [
+-  "COPYING",
+-  "NEWS",
+-  "README.adoc",
+   "man/",
+   "tests/",
+ ]

diff --git a/yubikey-manager.spec b/yubikey-manager.spec
index aea88e2..395b000 100644
--- a/yubikey-manager.spec
+++ b/yubikey-manager.spec
@@ -14,6 +14,8 @@ Source0:        %{forgesource}
 Source1:        %{name}.rpmlintrc
 Patch0:         rhbz-2009934.patch
 
+# https://github.com/Yubico/yubikey-manager/issues/456
+Patch1:         do-not-install-docs-to-site-packages.patch
 
 BuildArch:      noarch
 BuildRequires:  swig pcsc-lite-devel ykpers pyproject-rpm-macros
@@ -41,21 +43,21 @@ Python library for configuring a YubiKey.
 
 %prep
 %forgesetup
-%autosetup -n %{archivename}
+%autosetup -p1 -n %{archivename}
 
 %build
 %pyproject_wheel
 
 %install
 %pyproject_install
+%pyproject_save_files ykman yubikit
 
 %check
 %tox
 
-%files -n python3-%{name}
+%files -n python3-%{name} -f %{pyproject_files}
 %license COPYING
-%doc NEWS
-%{python3_sitelib}/*
+%doc README.adoc NEWS
 
 %files
 %{_bindir}/ykman
@@ -63,6 +65,7 @@ Python library for configuring a YubiKey.
 %changelog
 * Mon Oct 04 2021 Miro Hrončok <mhroncok@redhat.com> - 4.0.7-3
 - Require the exact same version-release of python3-yubikey-manager
+- Do not install docs to site-packages
 
 * Mon Oct 04 2021 Gerald Cox <gbcox@member.fsf.org> - 4.0.7-2
 - Patch until upstream corrects for rhbz#2009934

                 reply	other threads:[~2026-08-21 14:27 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=178732243672.1.8199052682738068570.rpms-yubikey-manager-3c24c3013d0a@fedoraproject.org \
    --to=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