2017-07-14 11:21:31 +00:00
|
|
|
#
|
2022-08-22 11:05:16 +00:00
|
|
|
# spec file
|
2017-07-14 11:21:31 +00:00
|
|
|
#
|
2022-08-22 11:05:16 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2017-07-14 11:21:31 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-07-06 19:08:20 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-07-14 11:21:31 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-07-14 11:28:49 +00:00
|
|
|
%define flavor @BUILD_FLAVOR@
|
|
|
|
%define mod_name zlib
|
2022-08-22 11:05:16 +00:00
|
|
|
Version: 1.2+git29
|
2017-07-14 11:21:31 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Simple streaming interface to zlib for Lua
|
2017-07-14 11:28:49 +00:00
|
|
|
License: MIT OR X11
|
2017-07-14 11:21:31 +00:00
|
|
|
Group: Productivity/Archiving/Compression
|
2020-07-06 19:08:20 +00:00
|
|
|
URL: https://github.com/brimworks/lua-zlib
|
2022-08-22 11:05:16 +00:00
|
|
|
Source: lua-%{mod_name}-%{version}.tar.xz
|
2023-01-25 21:15:43 +00:00
|
|
|
BuildRequires: lua-macros
|
2017-07-14 11:28:49 +00:00
|
|
|
BuildRequires: %{flavor}-devel
|
2017-07-14 11:21:31 +00:00
|
|
|
BuildRequires: zlib-devel
|
2017-07-14 11:28:49 +00:00
|
|
|
Requires: %{flavor}
|
2021-02-18 17:28:58 +00:00
|
|
|
%lua_provides
|
2017-07-14 11:28:49 +00:00
|
|
|
%if "%{flavor}" == ""
|
2017-07-15 07:33:57 +00:00
|
|
|
Name: lua-%{mod_name}
|
2017-07-14 11:28:49 +00:00
|
|
|
ExclusiveArch: do_not_build
|
2017-07-15 07:33:57 +00:00
|
|
|
%else
|
|
|
|
Name: %{flavor}-%{mod_name}
|
2017-07-14 11:21:31 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
lua-zlib is a simple streaming interface to zlib for Lua.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n lua-zlib-%{version}
|
|
|
|
|
|
|
|
%build
|
2023-01-25 21:15:43 +00:00
|
|
|
make %{?_make_output_sync} %{?_smp_mflags} linux \
|
2017-07-14 11:35:25 +00:00
|
|
|
INCDIR="-I%{lua_incdir}" \
|
2017-07-14 11:28:49 +00:00
|
|
|
LUAPATH="%{lua_noardir}" \
|
|
|
|
LUACPATH="%{lua_archdir}" \
|
2017-07-14 11:37:49 +00:00
|
|
|
CFLAGS="%{optflags} -fPIC"
|
2017-07-14 11:21:31 +00:00
|
|
|
|
|
|
|
%install
|
2017-07-14 11:35:25 +00:00
|
|
|
mkdir -p %{buildroot}/%{lua_archdir}
|
|
|
|
%make_install LUACPATH="%{buildroot}%{lua_archdir}"
|
2017-07-14 11:21:31 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README
|
2017-07-14 11:28:49 +00:00
|
|
|
%{lua_archdir}/zlib.so
|
2017-07-14 11:21:31 +00:00
|
|
|
|
|
|
|
%changelog
|