[packages/python-distro] - fix packaging when built w/o python2

hawk hawk at pld-linux.org
Sun Dec 3 19:35:23 CET 2023


commit b97edf36e857615ac39f597f92f5c93c72f0a44e
Author: Marcin Krol <hawk at tld-linux.org>
Date:   Sun Dec 3 19:13:00 2023 +0100

    - fix packaging when built w/o python2

 python-distro.spec | 2 ++
 1 file changed, 2 insertions(+)
---
diff --git a/python-distro.spec b/python-distro.spec
index 84bba17..b33c733 100644
--- a/python-distro.spec
+++ b/python-distro.spec
@@ -124,9 +124,11 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%if %{with python2}
 %doc CHANGELOG.md CONTRIBUTORS.md LICENSE README.md
 %{py_sitescriptdir}/distro.py[co]
 %{py_sitescriptdir}/distro-%{version}-py*.egg-info
+%endif
 
 %if %{with python3}
 %files -n python3-%{module}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-distro.git/commitdiff/b97edf36e857615ac39f597f92f5c93c72f0a44e



More information about the pld-cvs-commit mailing list