commit
3d4e1adff5
32
0001-Modify-python-to-python3-with-configure.py.patch
Normal file
32
0001-Modify-python-to-python3-with-configure.py.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From a65d47ab65015fd4ffe75125853cee80b04dbbff Mon Sep 17 00:00:00 2001
|
||||||
|
From: lyn1001 <thistleslyn@163.com>
|
||||||
|
Date: Tue, 11 Aug 2020 13:59:21 +0800
|
||||||
|
Subject: [PATCH] Modify python to python3 with configure.py
|
||||||
|
|
||||||
|
---
|
||||||
|
.../configure.py | 4 ++--
|
||||||
|
1 files changed, 2 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/configure.py b/configure.py
|
||||||
|
index dab5dc9..6663645 100755
|
||||||
|
--- a/configure.py
|
||||||
|
+++ b/configure.py
|
||||||
|
@@ -1,4 +1,4 @@
|
||||||
|
-#!/usr/bin/python
|
||||||
|
+#!/usr/bin/python3
|
||||||
|
from __future__ import print_function
|
||||||
|
|
||||||
|
def c_compiler_rule(b, name, description, compiler, flags):
|
||||||
|
@@ -151,7 +151,7 @@ b.build(prepare_builtins, "LLVM_TOOL_LINK",
|
||||||
|
|
||||||
|
b.rule("PREPARE_BUILTINS", "%s -o $out $in" % prepare_builtins,
|
||||||
|
'PREPARE-BUILTINS $out')
|
||||||
|
-b.rule("PYTHON_GEN", "python < $in > $out", "PYTHON_GEN $out")
|
||||||
|
+b.rule("PYTHON_GEN", "python3 < $in > $out", "PYTHON_GEN $out")
|
||||||
|
b.build('generic/lib/convert.cl', "PYTHON_GEN", ['generic/lib/gen_convert.py'])
|
||||||
|
|
||||||
|
manifest_deps = set([sys.argv[0], os.path.join(srcdir, 'build', 'metabuild.py'),
|
||||||
|
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
Name: libclc
|
Name: libclc
|
||||||
Version: 0.2.0
|
Version: 0.2.0
|
||||||
Release: 15
|
Release: 16
|
||||||
Summary: An implementation of the library requirements of the OpenCL C
|
Summary: An implementation of the library requirements of the OpenCL C
|
||||||
License: BSD
|
License: BSD
|
||||||
URL: https://libclc.llvm.org
|
URL: https://libclc.llvm.org
|
||||||
Source0: https://github.com/llvm-mirror/%{name}/archive/1ecb16dd7d8b8e9151027faab996f27b2ac508e3/%{name}-git1ecb16d.tar.gz
|
Source0: https://github.com/llvm-mirror/%{name}/archive/1ecb16dd7d8b8e9151027faab996f27b2ac508e3/%{name}-git1ecb16d.tar.gz
|
||||||
|
Patch0001: 0001-Modify-python-to-python3-with-configure.py.patch
|
||||||
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
|
ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 riscv64
|
||||||
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python zlib-devel
|
BuildRequires: clang-devel libedit-devel llvm-devel >= 3.9 python3 zlib-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
bclc is an open source, BSD/MIT dual licensed implementation of the
|
bclc is an open source, BSD/MIT dual licensed implementation of the
|
||||||
@ -69,6 +69,9 @@ export CFLAGS="%{build_cflags} -D__extern_always_inline=inline"
|
|||||||
%{_libdir}/pkgconfig/%{name}.pc
|
%{_libdir}/pkgconfig/%{name}.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 11 2020 yanan li <liyanan032@huawei.com> -0.2.0-16
|
||||||
|
- Modify python to python3
|
||||||
|
|
||||||
* Thu Jul 09 2020 whoisxxx <zhangxuzhou4@huawei.com> - 0.2.0-15
|
* Thu Jul 09 2020 whoisxxx <zhangxuzhou4@huawei.com> - 0.2.0-15
|
||||||
- Add RISC-V arch
|
- Add RISC-V arch
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user