From a76bf9afdfea890f9a825dbd1688c21a6b1a3459c2710b531a64127190a72fb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 13 Jul 2017 16:11:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-BitOp?expand=0&rev=3 --- lua-BitOp.spec | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) 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