diff --git a/lua-lua-ev.spec b/lua-lua-ev.spec index a5e365a..796966f 100644 --- a/lua-lua-ev.spec +++ b/lua-lua-ev.spec @@ -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