SHA256
12
0
forked from pool/lua-luaexpat

osc copypac from project:devel:languages:lua package:lua51-luaexpat revision:4, using expand

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-luaexpat?expand=0&rev=1
This commit is contained in:
Tomáš Chvátal 2017-07-13 20:01:10 +00:00 committed by Git OBS Bridge
commit b56f21d928
6 changed files with 150 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

35
lua51-luaexpat.changes Normal file
View File

@ -0,0 +1,35 @@
-------------------------------------------------------------------
Wed May 28 17:31:19 UTC 2014 - seiler@b1-systems.de
- update to v1.3.0
* Lua 5.2 support (thanks Tomás Guisasola Gorham)
* support for the XmlDecl handler
* add parser:getcurrentbytecount() (XML_GetCurrentByteCount)
* ability to disable CharacterData merging
* Makefile improvements (thanks Vadim Misbakh-Soloviov)
-------------------------------------------------------------------
Sat Jun 29 00:23:12 UTC 2013 - i@marguerite.su
- update version 1.2.0
* support for the StartDoctypeDecl handler
* add parser:stop() to abort parsing inside a callback
-------------------------------------------------------------------
Tue Apr 17 16:54:50 UTC 2012 - toganm@opensuse.org
- Cleanup spec and create changes file
* correct Licence to MIT
* fix build for factory by using lua51-devel
* fix build for SLE_11 and SLE_11_SP1
* add copyright to spec
-------------------------------------------------------------------
Sat Jan 23 00:00:00 UTC 2010 - florian.leparoux@gmail.com
- rebuild correctly luaexpat on openSUSE 11.2
-------------------------------------------------------------------
Tue Dec 15 00:00:00 UTC 2009 - florian.leparoux@gmail.com
- build luaexpat on openSUSE 11.2

63
lua51-luaexpat.spec Normal file
View File

@ -0,0 +1,63 @@
#
# spec file for package lua51-luaexpat
#
# Copyright (c) 2009 florian.leparoux@gmail.com
# Copyright (c) 2012 Togan Muftuoglu toganm@opensuse.org
# Copyright (c) 2013 SUSE LINUX Products 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-luaexpat
Version: 1.3.0
Release: 0
License: MIT
Summary: A SAX XML parser based on the Expat library
Url: http://matthewwild.co.uk/projects/luaexpat/
Group: Productivity/Networking/Other
Source: http://matthewwild.co.uk/projects/luaexpat/luaexpat-%{version}.tar.gz
Patch1: luaexpat-lib.patch
BuildRequires: libexpat-devel
%if 0%{?suse_version} > 1210
BuildRequires: lua51-devel
%else
BuildRequires: lua-devel
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
LuaExpat is a SAX XML parser based on the Expat library.
%prep
%setup -q -n luaexpat-%{version}
%patch1 -p1
%build
make %{?_smp_mflags} \
PREFIX="%{_prefix}" \
LUA_CDIR="%{lua_archdir}" \
CFLAGS="%{optflags}" \
CC="gcc"
%install
%makeinstall \
PREFIX="%{_prefix}" \
LUA_CDIR="%{lua_archdir}"
%files
%defattr(-,root,root)
%{lua_archdir}/lxp.so.1.3.0
%{lua_archdir}/lxp.so
%{lua_noarchdir}/lxp
%changelog

3
luaexpat-1.3.0.tar.gz Normal file
View File

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

25
luaexpat-lib.patch Normal file
View File

@ -0,0 +1,25 @@
Wed May 28 19:33:45 CEST 2014 <seiler@b1-systems.de>
Added the library version to file name
--- luaexpat-1.3.0/Makefile.old 2014-05-27 17:45:05.353973837 +0200
+++ luaexpat-1.3.0/Makefile 2014-05-27 18:45:28.939123556 +0200
@@ -7,7 +7,8 @@ LUA_V ?= 5.1
LUA_LDIR ?= /usr/share/lua/$(LUA_V)
LUA_CDIR ?= /usr/lib/lua/$(LUA_V)
T = lxp
-LIBNAME = $(T).so
+V = 1.3.0
+LIBNAME = $(T).so.$(V)
COMMON_CFLAGS = -g -pedantic -Wall -O2 -fPIC -DPIC -ansi
LUA_INC ?= -I/usr/include/lua$(LUA_V)
@@ -28,6 +29,7 @@ src/$(LIBNAME):
install:
$(INSTALL_PROGRAM) -D src/$(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(LIBNAME)
+ ln -s $(LIBNAME) $(DESTDIR)$(LUA_CDIR)/$(T).so
$(INSTALL_PROGRAM) -D src/$T/lom.lua $(DESTDIR)$(LUA_LDIR)/$T/lom.lua
clean: