commit 0213c8aa02bf709bfffcba93fbbfc1a9283f92228a8797cc8febc1c40b6fddfc Author: Tomáš Chvátal Date: Thu Jul 13 16:04:46 2017 +0000 osc copypac from project:devel:languages:lua package:BitOp revision:5 OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-BitOp?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/BitOp.changes b/BitOp.changes new file mode 100644 index 0000000..96606e2 --- /dev/null +++ b/BitOp.changes @@ -0,0 +1,16 @@ +------------------------------------------------------------------- +Thu Jul 13 15:14:48 UTC 2017 - tchvatal@suse.com + +- Switch to mutlibuild providing package for all compatible lua + versions + +------------------------------------------------------------------- +Tue Jul 11 08:12:10 UTC 2017 - tchvatal@suse.com + +- Fix build with properly namespaced lua5.1 + +------------------------------------------------------------------- +Wed Dec 2 14:27:12 UTC 2015 - ronisbr@gmail.com + +- Initial version based on devel:languages:lua/lua-bitop + diff --git a/BitOp.spec b/BitOp.spec new file mode 100644 index 0000000..22c91f4 --- /dev/null +++ b/BitOp.spec @@ -0,0 +1,71 @@ +# +# spec file for package lua51-BitOp +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%define flavor @BUILD_FLAVOR@ +%if "%flavor" == "" +ExclusiveArch: do_not_build +%endif + +%define mod_name BitOp +Name: %{flavor}-%{mod_name} +Version: 1.0.2 +Release: 0 +Summary: Lua Bit Operations Module +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 +Requires: %{flavor} + +%description +Lua BitOp is a C extension module for Lua 5.1/5.2 which adds bitwise operations +on numbers. + +%package doc +Summary: Lua Documentation for %{mod_name} +Group: Development/Languages/Other +Requires: %{name} = %{version} + +%description doc +Documentation and examples included with the library, sometimes +generated by luadoc or ldoc. + +%prep +%setup -q -n LuaBitOp-%{version} + +%build +export CFLAGS="%{optflags} -I%{lua_incdir}" +make %{?_smp_mflags} + +%install +mkdir -p %{buildroot}%{_docdir}/%{name} +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 diff --git a/LuaBitOp-1.0.2.tar.gz b/LuaBitOp-1.0.2.tar.gz new file mode 100644 index 0000000..169584d --- /dev/null +++ b/LuaBitOp-1.0.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1207c9293dcd52eb9dca6538d1b87352bd510f4e760938f5048433f7f272ce99 +size 23127 diff --git a/_multibuild b/_multibuild new file mode 100644 index 0000000..82003ae --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + +lua51 +lua52 +