summaryrefslogtreecommitdiff
path: root/lua-socket.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-11-01 03:59:26 +0000
committerCoprDistGit <infra@openeuler.org>2024-11-01 03:59:26 +0000
commitcb6edb9b49d503c33b1f910f8f5d79593eb0ff50 (patch)
tree59f8d406589a62202a3103311aa834259a706fe6 /lua-socket.spec
parent261ed39c00c0fabc6126c46a24a6a32313ebdc9f (diff)
automatic import of lua-socket
Diffstat (limited to 'lua-socket.spec')
-rw-r--r--lua-socket.spec61
1 files changed, 61 insertions, 0 deletions
diff --git a/lua-socket.spec b/lua-socket.spec
new file mode 100644
index 0000000..e1b5bb9
--- /dev/null
+++ b/lua-socket.spec
@@ -0,0 +1,61 @@
+Name: lua-socket
+Version: 3.1.0
+Release: 2
+Summary: Network support for the Lua language
+License: MIT
+URL: https://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
+Source0: https://github.com/diegonehab/luasocket/archive/luasocket-%{version}.tar.gz
+
+BuildRequires: gcc make lua lua-devel /usr/bin/iconv
+%{?lua_requires}
+
+%description
+LuaSocket is a Lua extension library that is composed by two parts: a C core
+that provides support for the TCP and UDP transport layers, and a set of Lua
+modules that add support for functionality commonly needed by applications
+that deal with the Internet.
+
+%package devel
+Summary: Development files for %{name}
+Requires: %{name} = %{version}-%{release}
+
+%description devel
+Header files and libraries for building an extension library for the
+Lua using %{name}
+
+%package_help
+
+%prep
+%setup -q -n luasocket-%{version}
+
+%build
+%make_build LUAV=%lua_version OPTFLAGS="%{optflags} -fPIC" LDFLAGS="%{?__global_ldflags} -shared -o " linux
+/usr/bin/iconv -f ISO8859-1 -t UTF8 LICENSE >LICENSE.UTF8
+mv -f LICENSE.UTF8 LICENSE
+
+%install
+make install-unix OPTFLAGS="%{optflags}" INSTALL_TOP=$RPM_BUILD_ROOT
+
+install -d $RPM_BUILD_ROOT%{_includedir}/luasocket
+install -p src/*.h $RPM_BUILD_ROOT%{_includedir}/luasocket
+
+%files
+%license LICENSE
+%{lua_libdir}/*
+%{lua_pkgdir}/*
+
+%files devel
+%{_includedir}/luasocket
+
+%files help
+%doc CHANGELOG.md README.md docs/*.html docs/*.css docs/*.png
+
+%changelog
+* Fri Nov 01 2024 Funda Wang <fundawang@yeah.net> - 3.1.0-2
+- rebuild for lua 5.4
+
+* Tue Feb 21 2023 li-long315 <lilong@kylinos.cn> - 3.1.0-1
+- Upgrade to 3.1.0
+
+* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0-0.19
+- Package init