diff --git a/0001-lua-lpeg-fix-cc.patch b/0001-lua-lpeg-fix-cc.patch new file mode 100644 index 0000000000000000000000000000000000000000..7c99f423dfd15f32df0455e59d03edffe3ce9463 --- /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 5356247144278682aea21c31ee2c0a5c650b79ea..a9473b3fe88192533146f7477e0dbc336ff71ca1 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