diff --git a/lua-BitOp.spec b/lua-BitOp.spec index 22c91f4..388b1b5 100644 --- a/lua-BitOp.spec +++ b/lua-BitOp.spec @@ -1,5 +1,5 @@ # -# spec file for package lua51-BitOp +# spec file for package lua-BitOp # # Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # @@ -17,10 +17,6 @@ %define flavor @BUILD_FLAVOR@ -%if "%flavor" == "" -ExclusiveArch: do_not_build -%endif - %define mod_name BitOp Name: %{flavor}-%{mod_name} Version: 1.0.2 @@ -30,9 +26,12 @@ License: MIT Group: Development/Libraries/Other Url: http://bitop.luajit.org/index.html Source: http://bitop.luajit.org/download/LuaBitOp-%{version}.tar.gz -BuildRequires: gcc BuildRequires: %{flavor}-devel +BuildRequires: gcc Requires: %{flavor} +%if "%{flavor}" == "" +ExclusiveArch: do_not_build +%endif %description Lua BitOp is a C extension module for Lua 5.1/5.2 which adds bitwise operations @@ -60,12 +59,10 @@ mkdir -p %{buildroot}%{lua_archdir} install bit.so %{buildroot}%{lua_archdir} %files -%defattr(-,root,root,-) %dir %{lua_archdir} %{lua_archdir}/* %files doc -%defattr(-,root,root,-) %doc README %changelog