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
|
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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,22 +16,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: lua51-zlib
|
%define flavor @BUILD_FLAVOR@
|
||||||
Version: 0.3+git20141017
|
%define mod_name zlib
|
||||||
|
Name: %{flavor}-%{mod_name}
|
||||||
|
Version: 1.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple streaming interface to zlib for Lua
|
Summary: Simple streaming interface to zlib for Lua
|
||||||
License: MIT or X11
|
License: MIT OR X11
|
||||||
Group: Productivity/Archiving/Compression
|
Group: Productivity/Archiving/Compression
|
||||||
Url: https://github.com/brimworks/lua-zlib
|
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
|
Source: lua-zlib-%{version}.tar.gz
|
||||||
|
BuildRequires: %{flavor}-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: zlib-devel
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
Requires: %{flavor}
|
||||||
%if 0%{?suse_version} <= 1210
|
%if "%{flavor}" == ""
|
||||||
BuildRequires: lua-devel
|
ExclusiveArch: do_not_build
|
||||||
Requires: lua
|
|
||||||
%else
|
|
||||||
BuildRequires: lua51-devel
|
|
||||||
Requires: lua51
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@@ -41,23 +41,20 @@ lua-zlib is a simple streaming interface to zlib for Lua.
|
|||||||
%setup -q -n lua-zlib-%{version}
|
%setup -q -n lua-zlib-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} linux
|
make %{?_smp_mflags} linux \
|
||||||
|
INCDIR="%{lua_incdir}" \
|
||||||
|
LUAPATH="%{lua_noardir}" \
|
||||||
|
LUACPATH="%{lua_archdir}" \
|
||||||
|
CFLAGS="%{optflags}"
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_libdir}/lua/5.1
|
%make_install LUACPATH="%{lua_archdir}"
|
||||||
cp -r zlib.so %{buildroot}%{_libdir}/lua/5.1/
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
|
||||||
%doc README
|
%doc README
|
||||||
%{_libdir}/lua/5.1/zlib.so
|
%{lua_archdir}/zlib.so
|
||||||
%if 0%{?sles_version}
|
|
||||||
%dir %{_libdir}/lua
|
|
||||||
%dir %{_libdir}/lua/5.1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
Reference in New Issue
Block a user