Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpx/lua-cjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Pulford <mark@kyne.com.au>2012-01-13 00:55:37 +0400
committerMark Pulford <mark@kyne.com.au>2012-03-04 12:24:34 +0400
commitd3dfab41f3f77b5d72ae88069132e1ba625ad8fa (patch)
treef78bacc8d5df5c395ded0f423109eb2cfae0bfc8
parent616be8701f18fd38d58d36fd3771e50a6a80a102 (diff)
Update RPM to install extra scripts via make
-rw-r--r--lua-cjson.spec10
1 files changed, 8 insertions, 2 deletions
diff --git a/lua-cjson.spec b/lua-cjson.spec
index 4c949e5..2c8b496 100644
--- a/lua-cjson.spec
+++ b/lua-cjson.spec
@@ -1,5 +1,6 @@
%define luaver 5.1
%define lualibdir %{_libdir}/lua/%{luaver}
+%define luadatadir %{_datadir}/lua/%{luaver}
Name: lua-cjson
Version: 1.0devel
@@ -34,7 +35,9 @@ make %{?_smp_mflags} CFLAGS="%{optflags}" LUA_INCLUDE_DIR="%{_includedir}"
%install
rm -rf "$RPM_BUILD_ROOT"
-make install DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{lualibdir}"
+make install DESTDIR="$RPM_BUILD_ROOT" LUA_CMODULE_DIR="%{lualibdir}"
+make install-extra DESTDIR="$RPM_BUILD_ROOT" LUA_MODULE_DIR="%{luadatadir}" \
+ LUA_BIN_DIR="%{_bindir}"
%clean
@@ -43,8 +46,11 @@ rm -rf "$RPM_BUILD_ROOT"
%files
%defattr(-,root,root,-)
-%doc LICENSE NEWS performance.txt manual.html manual.txt rfc4627.txt tests THANKS
+%doc LICENSE NEWS performance.txt manual.html manual.txt rfc4627.txt THANKS
+%{_bindir}/*
%{lualibdir}/*
+%{luadatadir}/*
+%{_bindir}/*
%changelog