Do not install docs to site-packages

epel9
Miro Hrončok 3 years ago
parent ecd3d00464
commit 3c24c3013d

@ -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/",
]

@ -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

Loading…
Cancel
Save