3 %bcond_with lua # build without tests
5 Summary: Alpine Package Keeper - package manager for alpine
11 Source0: https://dev.alpinelinux.org/archive/apk-tools/%{name}-%{version}.tar.xz
12 # Source0-md5: d14969082e880bd056644f73ac3b3eb2
13 Patch0: 0001-fix-strncpy-bounds-errors.patch
14 Patch1: 0002-include-sys-sysmacros.h-for-makedev-definition.patch
15 Patch2: 0001-add-support-for-openssl-1.1.patch
16 URL: https://git.alpinelinux.org/cgit/apk-tools/
17 BuildRequires: lua52-devel
18 BuildRequires: openssl-devel
19 BuildRequires: tar >= 1:1.22
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 %define _sbindir /sbin
26 Package manager for Alpine Linux.
29 Summary: Lua module for apk-tools
33 Lua module for apk-tools.
44 FULL_VERSION=%{version}-%{release}
45 LUAAPK=%{?with_lua:YesPlease}
49 generate_config > config.mk
53 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
58 %{__rm} $RPM_BUILD_ROOT%{_docdir}/apk/README
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
65 %attr(755,root,root) %{_sbindir}/apk
69 %defattr(644,root,root,755)
70 # XXX: parent dir not packaged
71 %{_prefix}/lib/lua/5.2/apk.so