[packages/python-urwid] conditional files

atler atler at pld-linux.org
Sat Feb 27 10:27:29 CET 2021


commit df43a33b66499314c078ba9435ee82cb1cc890e4
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Feb 27 10:27:07 2021 +0100

    conditional files

 python-urwid.spec | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/python-urwid.spec b/python-urwid.spec
index 58c8ba0..ff8e2de 100644
--- a/python-urwid.spec
+++ b/python-urwid.spec
@@ -113,6 +113,7 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%if %{with python2}
 %files
 %defattr(644,root,root,755)
 %doc README.rst docs/changelog.rst
@@ -120,7 +121,9 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{py_sitedir}/urwid/str_util.so
 %{py_sitedir}/urwid/*.py[co]
 %{py_sitedir}/urwid-%{version}-py*.egg-info
+%endif
 
+%if %{with python3}
 %files -n python3-%{module}
 %defattr(644,root,root,755)
 %doc README.rst docs/changelog.rst
@@ -129,6 +132,7 @@ rm -rf $RPM_BUILD_ROOT
 %{py3_sitedir}/urwid/*.py
 %{py3_sitedir}/urwid/__pycache__
 %{py3_sitedir}/urwid-%{version}-py*.egg-info
+%endif
 
 %if %{with doc}
 %files apidocs
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-urwid.git/commitdiff/df43a33b66499314c078ba9435ee82cb1cc890e4



More information about the pld-cvs-commit mailing list