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:
committed by
Git OBS Bridge
parent
7efcf0a510
commit
3aa4487818
5
_multibuild
Normal file
5
_multibuild
Normal file
@@ -0,0 +1,5 @@
|
||||
<multibuild>
|
||||
<package>lua51</package>
|
||||
<package>lua52</package>
|
||||
<package>lua53</package>
|
||||
</multibuild>
|
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user