[packages/cgit] - specify explicitly which lua version should be used

draenog draenog at pld-linux.org
Wed Mar 5 20:08:26 CET 2014


commit 0735334ad4c8ab0d5349482caabb4762d0c354ad
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Wed Mar 5 19:07:14 2014 +0000

    - specify explicitly which lua version should be used

 cgit-lua.patch | 12 ------------
 cgit.spec      |  5 ++---
 2 files changed, 2 insertions(+), 15 deletions(-)
---
diff --git a/cgit.spec b/cgit.spec
index 62b1277..4fea420 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -11,10 +11,9 @@ Source1:	%{name}.conf
 Source2:	%{name}-repo.conf
 Source3:	%{name}-apache.conf
 Patch0:		%{name}-system-git.patch
-Patch1:		%{name}-lua.patch
 URL:		http://git.zx2c4.com/cgit/about/
 BuildRequires:	git-core-devel >= 1.9.0
-BuildRequires:	lua-devel >= 5.0
+BuildRequires:	lua52-devel
 BuildRequires:	openssl-devel
 BuildConflicts:	zlib-devel = 1.2.5-1
 Requires:	webapps
@@ -44,7 +43,6 @@ HTML zapisany jest na dysku dla kolejnych żądań.
 %prep
 %setup -q
 %patch0 -p1
-%patch1 -p1
 cp  %{_includedir}/git-core/{Makefile,config.*} git
 
 %build
@@ -54,6 +52,7 @@ cp  %{_includedir}/git-core/{Makefile,config.*} git
 	CFLAGS="%{rpmcflags} -I/usr/include/git-core" \
 	LDFLAGS="%{rpmldflags}" \
 	LIBDIR=%{_libdir} \
+	LUA_PKGCONFIG=lua5.2 \
 	CGIT_CONFIG="%{webappdir}/%{webapp}.conf" \
 	CGIT_SCRIPT_PATH="%{cgibindir}"
 
diff --git a/cgit-lua.patch b/cgit-lua.patch
deleted file mode 100644
index 5236484..0000000
--- a/cgit-lua.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -uNr cgit-0.10.1.old/cgit.mk cgit-0.10.1/cgit.mk
---- cgit-0.10.1.old/cgit.mk	2014-02-28 00:12:08.000000000 +0100
-+++ cgit-0.10.1/cgit.mk	2014-03-01 19:02:59.424624275 +0100
-@@ -30,7 +30,7 @@
- 	CGIT_CFLAGS += -DNO_LUA
- else
- ifeq ($(LUA_PKGCONFIG),)
--	LUA_PKGCONFIG := $(shell for pc in luajit lua lua5.2 lua5.1; do \
-+	LUA_PKGCONFIG := $(shell for pc in lua5.2 lua51 lua50; do \
- 			pkg-config --exists $$pc 2>/dev/null && echo $$pc && break; \
- 			done)
- 	LUA_MODE := autodetected
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/cgit.git/commitdiff/0735334ad4c8ab0d5349482caabb4762d0c354ad



More information about the pld-cvs-commit mailing list