lua-socket/lua-socket.spec

65 lines
1.9 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:03:00 -04:00
Name: lua-socket
2023-02-21 09:30:43 +08:00
Version: 3.1.0
Release: 1
2019-09-30 11:03:00 -04:00
Summary: Network support for the Lua language
License: MIT
URL: https://www.tecgraf.puc-rio.br/~diego/professional/luasocket/
2023-02-21 09:30:43 +08:00
Source0: https://github.com/diegonehab/luasocket/archive/luasocket-%{version}.tar.gz
2019-09-30 11:03:00 -04:00
2023-02-21 09:30:43 +08:00
BuildRequires: gcc make lua lua-devel /usr/bin/iconv
2019-09-30 11:03:00 -04:00
Requires: lua >= 5.3
%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
2023-02-21 09:30:43 +08:00
%setup -q -n luasocket-%{version}
2019-09-30 11:03:00 -04:00
%build
%make_build LUAV=5.3 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_TOP_CDIR=$RPM_BUILD_ROOT%{_libdir}/lua/5.3 \
INSTALL_TOP_LDIR=$RPM_BUILD_ROOT%{_datadir}/lua/5.3
install -d $RPM_BUILD_ROOT%{_includedir}/luasocket
install -p src/*.h $RPM_BUILD_ROOT%{_includedir}/luasocket
%files
%defattr(-,root,root)
%{!?_licensedir:%global license %%doc}
%license LICENSE
%{_libdir}/lua/5.3/*
%{_datadir}/lua/5.3/*
%files devel
%defattr(-,root,root)
%{_includedir}/luasocket
%files help
%defattr(-,root,root)
2023-02-21 09:30:43 +08:00
%doc CHANGELOG.md README.md docs/*.html docs/*.css docs/*.png
2019-09-30 11:03:00 -04:00
%changelog
2023-02-21 09:30:43 +08:00
* Tue Feb 21 2023 li-long315 <lilong@kylinos.cn> - 3.1.0-1
- Upgrade to 3.1.0
2019-09-30 11:03:00 -04:00
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0-0.19
- Package init