12
0
forked from pool/lua-luasocket

- Update to version 3.0~rc1+git20170515.5a17f79:

* make protect_segment in url.lua rfc compliant
  * fix for Lua 5.3 built without number / string conversion
  * correct typo
  * Fix issue #196
  * Preserve path when parsing urls.
  * Fix typo
- Switch to multibuild package

- Fix build with namespaced lua

- Using Requires: Lua(API) = 5.1 instead of Requires: lua51 as 
  suggested by DimStar in SR#423700

- update version 3.0~rc1+git20140716

- initial version 3.0~rc1
- copied from luasocket

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luasocket?expand=0&rev=3
This commit is contained in:
Tomáš Chvátal 2017-07-14 08:43:42 +00:00 committed by Git OBS Bridge
parent 2042dd9b7d
commit 3244ae2b05
6 changed files with 46 additions and 11 deletions

5
_multibuild Normal file
View File

@ -0,0 +1,5 @@
<multibuild>
<package>lua51</package>
<package>lua52</package>
<package>lua53</package>
</multibuild>

14
_service Normal file
View File

@ -0,0 +1,14 @@
<services>
<service mode="disabled" name="tar_scm">
<param name="url">https://github.com/diegonehab/luasocket.git</param>
<param name="scm">git</param>
<param name="changesgenerate">enable</param>
<param name="filename">luasocket</param>
<param name="versionformat">3.0~rc1+git%cd.%h</param>
</service>
<service mode="disabled" name="recompress">
<param name="file">*.tar</param>
<param name="compression">xz</param>
</service>
<service mode="disabled" name="set_version"/>
</services>

View File

@ -1,3 +1,15 @@
-------------------------------------------------------------------
Fri Jul 14 08:42:16 UTC 2017 - tchvatal@suse.com
- Update to version 3.0~rc1+git20170515.5a17f79:
* make protect_segment in url.lua rfc compliant
* fix for Lua 5.3 built without number / string conversion
* correct typo
* Fix issue #196
* Preserve path when parsing urls.
* Fix typo
- Switch to multibuild package
-------------------------------------------------------------------
Tue Jul 11 08:41:58 UTC 2017 - tchvatal@suse.com

View File

@ -1,5 +1,5 @@
#
# spec file for package lua51-luasocket
# spec file for package lua-luasocket
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
@ -16,18 +16,23 @@
#
Name: lua51-luasocket
%define flavor @BUILD_FLAVOR@
%define mod_name luasocket
Name: %{flavor}-%{mod_name}
Version: 3.0~rc1+git20140716
Release: 0
Summary: Network support for the Lua language
License: MIT
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
Group: Development/Libraries
Url: https://github.com/diegonehab/luasocket
Source: luasocket-%{version}.tar.gz
Source: %{mod_name}-%{version}.tar.gz
Patch0: luasocket-makefile.patch
BuildRequires: lua51-devel
Requires: Lua(API) = 5.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: %{flavor}-devel
Requires: %{flavor}
%if "%{flavor}" == ""
ExclusiveArch: do_not_build
%endif
%description
LuaSocket is a Lua extension library that is composed by two parts: a C core
@ -39,7 +44,7 @@ Among the support modules, the most commonly used implement the SMTP, HTTP
and FTP. In addition there are modules for MIME, URL handling and LTN12.
%prep
%setup -q -n luasocket-%{version}
%setup -q -n %{mod_name}-%{version}
%patch0 -p1
%build
@ -51,7 +56,6 @@ make %{?_smp_mflags} OPTFLAGS="%{optflags} -fPIC -I%{lua_incdir}" linux
make install-unix OPTFLAGS="%{optflags}" INSTALL_TOP=%{buildroot} INSTALL_TOP_CDIR=%{buildroot}%{lua_archdir} INSTALL_TOP_LDIR=%{buildroot}%{lua_noarchdir}
%files
%defattr(-,root,root,-)
%doc doc/*
%doc README LICENSE
%{lua_archdir}/mime

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d917d3967da743a7ea2b0b1aa188f259a08efcaa1ecbaa6801e1765ed39d9e26
size 2419744

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:9cc8eba1531179c7ed67e3ec30aec74863ccb9d73e32a3cf8032fc8390255bac
size 228132