From df1ddde1769ee40ff52341ff4364f131563ecbaf Mon Sep 17 00:00:00 2001 From: zhangchao13 Date: Fri, 21 Apr 2023 15:57:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=20issue:=E6=BA=90=E4=BB=A3=E7=A0=81=20makef?= =?UTF-8?q?ile=20=E6=96=87=E4=BB=B6=E6=8C=87=E5=AE=9A=E4=BA=86=E4=BD=BF?= =?UTF-8?q?=E7=94=A8=20gcc=20=E7=BC=96=E8=AF=91=E5=99=A8=E8=BF=9B=E8=A1=8C?= =?UTF-8?q?=E7=BC=96=E8=AF=91=EF=BC=8C=E5=AF=BC=E8=87=B4=E7=BC=96=E8=AF=91?= =?UTF-8?q?=E5=A4=B1=E8=B4=A5=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 0001-lua-lpeg-fix-cc.patch | 25 +++++++++++++++++++++++++ lua-lpeg.spec | 6 +++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 0001-lua-lpeg-fix-cc.patch diff --git a/0001-lua-lpeg-fix-cc.patch b/0001-lua-lpeg-fix-cc.patch new file mode 100644 index 0000000..7c99f42 --- /dev/null +++ b/0001-lua-lpeg-fix-cc.patch @@ -0,0 +1,25 @@ +From 8b7d8a33a409b87883041b06a9280c08c67e5c46 Mon Sep 17 00:00:00 2001 +From: zhangchao13 +Date: Fri, 21 Apr 2023 15:53:49 +0800 +Subject: [PATCH] lua-lpeg-fix-cc + +--- + makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/makefile b/makefile +index 1e32195..a2dac12 100644 +--- a/makefile ++++ b/makefile +@@ -23,7 +23,7 @@ CWARNS = -Wall -Wextra -pedantic \ + + + CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC +-CC = gcc ++CC ?= gcc + + FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o + +-- +2.33.0 + diff --git a/lua-lpeg.spec b/lua-lpeg.spec index 5356247..a9473b3 100644 --- a/lua-lpeg.spec +++ b/lua-lpeg.spec @@ -2,12 +2,13 @@ Name: lua-%{mod_name} Version: 1.0.2 -Release: 2 +Release: 3 Summary: Parsing Expression Grammars For Lua License: MIT URL: http://www.inf.puc-rio.br/~roberto/lpeg/ Source0: http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz +Patch0: 0001-lua-lpeg-fix-cc.patch BuildRequires: gcc, lua-devel Requires: lua, lua(abi) @@ -58,6 +59,9 @@ make test %{lua_pkgdir}/* %changelog +* Fri Apr 21 2023 Zhang Chao - 1.0.2-3 +- Fix CC compiler support + * Sat Sep 21 2019 openEuler Buildteam - 1.0.2-2 - Modify spec error information -- Gitee