SHA256
10
0
forked from pool/lua-zlib

- Switch to multibuild account to produce all lua variants needed

- Update to release 1.1 from january this year
  * enables lua 5.3

- update version 0.3+git20141017

- update version 20140204
  * some fixes

- initial version 20130629

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-zlib?expand=0&rev=2
This commit is contained in:
Tomáš Chvátal
2017-07-14 11:28:49 +00:00
committed by Git OBS Bridge
parent 7efcf0a510
commit 3aa4487818
3 changed files with 31 additions and 22 deletions

5
_multibuild Normal file
View File

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

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Fri Jul 14 11:23:24 UTC 2017 - tchvatal@suse.com
- Switch to multibuild account to produce all lua variants needed
- Update to release 1.1 from january this year
* enables lua 5.3
-------------------------------------------------------------------
Mon Oct 20 16:05:16 UTC 2014 - i@marguerite.su

View File

@@ -1,7 +1,7 @@
#
# spec file for package lua51-zlib
# spec file for package lua-zlib
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# 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
@@ -16,22 +16,22 @@
#
Name: lua51-zlib
Version: 0.3+git20141017
%define flavor @BUILD_FLAVOR@
%define mod_name zlib
Name: %{flavor}-%{mod_name}
Version: 1.1
Release: 0
Summary: Simple streaming interface to zlib for Lua
License: MIT or X11
License: MIT OR X11
Group: Productivity/Archiving/Compression
Url: https://github.com/brimworks/lua-zlib
Source: https://github.com/brimworks/lua-zlib/archive/v%{version}.tar.gz#/%{mod_name}-%{version}.tar.gz
Source: lua-zlib-%{version}.tar.gz
BuildRequires: %{flavor}-devel
BuildRequires: zlib-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} <= 1210
BuildRequires: lua-devel
Requires: lua
%else
BuildRequires: lua51-devel
Requires: lua51
Requires: %{flavor}
%if "%{flavor}" == ""
ExclusiveArch: do_not_build
%endif
%description
@@ -41,23 +41,20 @@ lua-zlib is a simple streaming interface to zlib for Lua.
%setup -q -n lua-zlib-%{version}
%build
make %{?_smp_mflags} linux
make %{?_smp_mflags} linux \
INCDIR="%{lua_incdir}" \
LUAPATH="%{lua_noardir}" \
LUACPATH="%{lua_archdir}" \
CFLAGS="%{optflags}"
%install
mkdir -p %{buildroot}%{_libdir}/lua/5.1
cp -r zlib.so %{buildroot}%{_libdir}/lua/5.1/
%make_install LUACPATH="%{lua_archdir}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc README
%{_libdir}/lua/5.1/zlib.so
%if 0%{?sles_version}
%dir %{_libdir}/lua
%dir %{_libdir}/lua/5.1
%endif
%{lua_archdir}/zlib.so
%changelog