[projects/template-specs] sample to setup shadow py3 tree
glen
glen at pld-linux.org
Thu May 28 16:51:49 CEST 2015
commit 3613ad2904d29d0c71a95d7c6cd92edea8d96448
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu May 28 17:51:28 2015 +0300
sample to setup shadow py3 tree
python.spec | 5 +++++
1 file changed, 5 insertions(+)
---
diff --git a/python.spec b/python.spec
index 12bcca5..ec96acd 100644
--- a/python.spec
+++ b/python.spec
@@ -70,6 +70,11 @@ Dokumentacja API %{module}.
# fix #!/usr/bin/env python -> #!/usr/bin/python:
#%{__sed} -i -e '1s,^#!.*python,#!%{__python},' %{name}.py
+# setup copy of source in py3 dir
+set -- *
+install -d py3
+cp -a "$@" py3
+
%build
%if %{with python2}
# CC/CFLAGS is only for arch packages - remove on noarch packages
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/bb69cd233e9d565dc86996675d79d90281ce0236
More information about the pld-cvs-commit
mailing list