commit 5e15440f2d7cab9a10554e92b1262dd5e7568a4f
Author: Elan Ruusamäe <g...@delfi.ee>
Date:   Sat Sep 17 19:42:12 2016 +0300

    new, version 1.0.1

 lua-bitop.spec | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)
---
diff --git a/lua-bitop.spec b/lua-bitop.spec
new file mode 100644
index 0000000..fd3eb81
--- /dev/null
+++ b/lua-bitop.spec
@@ -0,0 +1,51 @@
+#
+# Conditional build:
+%bcond_without tests           # build without tests
+
+%define        __lua   /usr/bin/lua5.1
+%define luaver 5.1
+%define lualibdir %{_libdir}/lua/%{luaver}
+Summary:       Bitwise operations for Lua
+Name:          lua-bitop
+Version:       1.0.1
+Release:       0.1
+License:       MIT
+Group:         Development/Libraries
+Source0:       http://bitop.luajit.org/download/LuaBitOp-%{version}.tar.gz
+# Source0-md5: 39984456940aea838e0f500bececbd73
+URL:           http://bitop.luajit.org/
+BuildRequires: lua >= %{luaver}
+BuildRequires: lua-devel >= %{luaver}
+Requires:      lua >= %{luaver}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Lua BitOp is a C extension module for Lua 5.1 which adds bitwise
+operations on numbers.
+
+Supported functions: bit.tobit, bit.tohex, bit.bnot, bit.band,
+bit.bor, bit.bxor, bit.lshift, bit.rshift, bit.arshift, bit.rol,
+bit.ror, bit.bswap
+
+%prep
+%setup -q -n LuaBitOp-%{version}
+
+%build
+%{__make} all %{?with_tests:test} \
+       INCLUDES=$(pkg-config --cflags lua%{luaver}) \
+       LUA="%{__lua}" \
+       CC="%{__cc}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{lualibdir}
+install -p bit.so $RPM_BUILD_ROOT%{lualibdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README* doc/*
+%attr(755,root,root) %{lualibdir}/bit.so
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/lua-bitop.git/commitdiff/0cf7a05a46dd117bc6fde9578004147eb2ea5d6a

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to