Change-Id: I4175ce2eea1b5dab25edd61c994bdc45266a4048
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1680
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: michellew <michellew@vmware.com>
| ... | ... |
@@ -30,6 +30,7 @@ sed -i '/#define LUA_ROOT/s:/usr/local/:/usr/:' src/luaconf.h |
| 30 | 30 |
sed -i 's/CFLAGS= -fPIC -O2 /CFLAGS= -fPIC -O2 -DLUA_COMPAT_MODULE /' src/Makefile |
| 31 | 31 |
%build |
| 32 | 32 |
make VERBOSE=1 %{?_smp_mflags} linux
|
| 33 |
+ |
|
| 33 | 34 |
%install |
| 34 | 35 |
make %{?_smp_mflags} \
|
| 35 | 36 |
INSTALL_TOP=%{buildroot}/usr TO_LIB="liblua.so \
|
| ... | ... |
@@ -60,6 +61,10 @@ cat > %{buildroot}%{_libdir}/pkgconfig/lua.pc <<- "EOF"
|
| 60 | 60 |
EOF |
| 61 | 61 |
rmdir %{buildroot}%{_libdir}/lua/5.3
|
| 62 | 62 |
rmdir %{buildroot}%{_libdir}/lua
|
| 63 |
+ |
|
| 64 |
+%check |
|
| 65 |
+make test |
|
| 66 |
+ |
|
| 63 | 67 |
%clean |
| 64 | 68 |
rm -rf %{buildroot}
|
| 65 | 69 |
%post -p /sbin/ldconfig |