10
0
forked from pool/lua-luasocket

osc copypac from project:devel:languages:lua package:lua51-luasocket revision:6, using expand

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

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

22
lua51-luasocket.changes Normal file
View File

@@ -0,0 +1,22 @@
-------------------------------------------------------------------
Tue Jul 11 08:41:58 UTC 2017 - tchvatal@suse.com
- Fix build with namespaced lua
-------------------------------------------------------------------
Thu Sep 15 12:23:12 UTC 2016 - mvetter@suse.com
- Using Requires: Lua(API) = 5.1 instead of Requires: lua51 as
suggested by DimStar in SR#423700
-------------------------------------------------------------------
Mon Oct 20 16:13:40 UTC 2014 - i@marguerite.su
- update version 3.0~rc1+git20140716
-------------------------------------------------------------------
Sat Feb 22 12:35:38 UTC 2014 - i@marguerite.su
- initial version 3.0~rc1
- copied from luasocket

64
lua51-luasocket.spec Normal file
View File

@@ -0,0 +1,64 @@
#
# spec file for package lua51-luasocket
#
# 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/
#
Name: lua51-luasocket
Version: 3.0~rc1+git20140716
Release: 0
Summary: Network support for the Lua language
License: MIT
Group: Development/Libraries
Url: https://github.com/diegonehab/luasocket
Source: luasocket-%{version}.tar.gz
Patch0: luasocket-makefile.patch
BuildRequires: lua51-devel
Requires: Lua(API) = 5.1
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%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.
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}
%patch0 -p1
%build
%{_bindir}/iconv -f ISO8859-1 -t UTF8 LICENSE >LICENSE.UTF8
mv -f LICENSE.UTF8 LICENSE
make %{?_smp_mflags} OPTFLAGS="%{optflags} -fPIC -I%{lua_incdir}" linux
%install
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
%{lua_archdir}/socket
%{lua_noarchdir}/ltn12.lua
%{lua_noarchdir}/mime.lua
%{lua_noarchdir}/socket.lua
%{lua_noarchdir}/socket/
%changelog

View File

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

16
luasocket-makefile.patch Normal file
View File

@@ -0,0 +1,16 @@
Index: luasocket-3.0~rc1+git20140716/src/makefile
===================================================================
--- luasocket-3.0~rc1+git20140716.orig/src/makefile
+++ luasocket-3.0~rc1+git20140716/src/makefile
@@ -163,9 +163,8 @@ DEF_linux=-DLUASOCKET_$(DEBUG) -DLUA_$(C
-DLUASOCKET_API='__attribute__((visibility("default")))' \
-DUNIX_API='__attribute__((visibility("default")))' \
-DMIME_API='__attribute__((visibility("default")))'
-CFLAGS_linux= -I$(LUAINC) $(DEF) -pedantic -Wall -Wshadow -Wextra \
- -Wimplicit -O2 -ggdb3 -fpic -fvisibility=hidden
-LDFLAGS_linux=-O -shared -fpic -o
+CFLAGS_linux= -I$(LUAINC) $(DEF) $(OPTFLAGS) -fvisibility=hidden
+LDFLAGS_linux=$(OPTFLAGS) -shared -fpic -o
LD_linux=gcc
SOCKET_linux=usocket.o