forked from pool/lua-lua-ev
Fix with spec-cleaner
OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-lua-ev?expand=0&rev=5
This commit is contained in:
parent
e97e9b3138
commit
1e9001de57
@ -88,7 +88,7 @@ rm -fv tests/test-dns.lua
|
||||
%build
|
||||
%if %{with public_lib}
|
||||
# Build libev.so shared library
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="%{optflags}" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
@ -97,10 +97,10 @@ mv build/ev.so build/libev.so.%{libev_sover}
|
||||
%endif
|
||||
|
||||
# Build ev.so module
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="$RPM_OPT_FLAGS" \
|
||||
cmake -H. -Bbuild -DCMAKE_C_FLAGS="%{optflags}" \
|
||||
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||
-DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_COLOR_MAKEFILE=OFF \
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
-DBUILD_SHARED_LIBS=ON
|
||||
( cd build ; make )
|
||||
|
||||
%install
|
||||
@ -113,7 +113,7 @@ install -v -D -m 0644 -p -t %{buildroot}%{lua_incdir}/%{mod_name} *.h
|
||||
|
||||
%check
|
||||
cd build
|
||||
make test
|
||||
%make_build test
|
||||
|
||||
%files
|
||||
%doc README example.lua
|
||||
|
Loading…
x
Reference in New Issue
Block a user