import apk-tools-2.14.10-1.el9

This commit is contained in:
Andrew Lukoshko 2025-09-23 16:29:55 +00:00
commit 9c89809765
4 changed files with 185 additions and 0 deletions

1
.apk-tools.metadata Normal file
View File

@ -0,0 +1 @@
a2ad1f95a33d0cc96ad8d8eef8aeb8b919f9c749 SOURCES/apk-tools-v2.14.10.tar.gz

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/apk-tools-v2.14.10.tar.gz

View File

@ -0,0 +1,57 @@
From 2f8d920a573188e94d1cb66e58c6462d5a08680e Mon Sep 17 00:00:00 2001
From: Andrew Lukoshko <alukoshko@almalinux.org>
Date: Mon, 7 Jul 2025 14:08:39 +0000
Subject: [PATCH] Do not build docs
---
Make.rules | 6 +++---
Makefile | 2 +-
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/Make.rules b/Make.rules
index 400b5f8..6393b71 100644
--- a/Make.rules
+++ b/Make.rules
@@ -3,7 +3,7 @@
default: compile
-all: compile docs
+all: compile
test check:
@@ -125,7 +125,7 @@ endif
##
# Rules and helpers
-PHONY += all compile install clean docs FORCE
+PHONY += all compile install clean FORCE
# Convinient variables
comma := ,
@@ -342,7 +342,7 @@ compile: generate $(targets) $(subdirs)
docs: $(docs) $(subdirs)
@:
-install: compile docs $(subdirs) FORCE
+install: compile $(subdirs) FORCE
tag:
diff --git a/Makefile b/Makefile
index 70e66e0..04f5d5c 100644
--- a/Makefile
+++ b/Makefile
@@ -26,7 +26,7 @@ export DESTDIR SBINDIR LIBDIR CONFDIR MANDIR DOCDIR INCLUDEDIR PKGCONFIGDIR
##
# Top-level subdirs
-subdirs := libfetch/ src/ doc/
+subdirs := libfetch/ src/
##
# Include all rules and stuff
--
2.43.5

126
SPECS/apk-tools.spec Normal file
View File

@ -0,0 +1,126 @@
%global somajor 2
%global luaver 5.4
%global makeopts SBINDIR=%{_sbindir} \\\
LIBDIR=%{_libdir} \\\
DOCDIR=%{_docdir}/apk-tools \\\
PKGCONFIGDIR=%{_libdir}/pkgconfig \\\
LUA=lua LUA_VERSION=%{luaver} LUA_PC=lua LUA_LIBDIR=%{_libdir}/lua/%{luaver} \\\
%{nil}
Name: apk-tools
Version: 2.14.10
Release: 1%{?dist}
Summary: Fast and lightweight package manager originally for Alpine
# libapk AND netbsd-libfetch
License: GPL-2.0-only
URL: https://gitlab.alpinelinux.org/alpine/apk-tools
Source0: %{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
Patch0: 0001-Do-not-build-docs.patch
BuildRequires: make
BuildRequires: gcc
BuildRequires: lua-zlib
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
# Provide the user-friendly package name
Provides: apk = %{version}-%{release}
Provides: apk%{?_isa} = %{version}-%{release}
Requires: libapk%{?_isa} = %{version}-%{release}
%description
The Alpine Package Keeper (APK) is a suite of tools to implement the
package management solution made for Alpine Linux.
%files
%license LICENSE
%doc README.md
%{_sbindir}/apk
%dir %{_sysconfdir}/apk
%ghost %{_sysconfdir}/apk/{arch,keys,repositories,world}
%dir %{_localstatedir}/cache/apk
%package -n lua-apk
Summary: Lua module for the Alpine Package Keeper
Requires: libapk%{?_isa} = %{version}-%{release}
%description -n lua-apk
The lua-apk package contains a Lua module to interface with the Alpine
Package Keeper system.
%files -n lua-apk
%license LICENSE
%{_libdir}/lua/*/apk.so
%package -n libapk
Summary: Core library for the Alpine Package Keeper
# libapk AND netbsd-libfetch
License: GPL-2.0-only AND BSD-3-Clause
# Modified version of NetBSD libfetch adapted for apk-tools
Provides: bundled(netbsd-libfetch)
%description -n libapk
The libapk package contains libraries used by applications that leverage
the Alpine Package Keeper system.
%files -n libapk
%license LICENSE
%{_libdir}/libapk.so.%{somajor}{,.*}
%package -n libapk-devel
Summary: Development files for libapk
Requires: libapk%{?_isa} = %{version}-%{release}
%description -n libapk-devel
The libapk-devel package contains libraries and header files for
developing applications that use libapk.
%files -n libapk-devel
%{_includedir}/apk/
%{_libdir}/libapk.so
%{_libdir}/pkgconfig/apk.pc
%prep
%autosetup -n %{name}-v%{version}
%build
%set_build_flags
%make_build %{makeopts} compile
%install
%make_install %{makeopts} compile
# Delete static archives
find %{buildroot} -name '*.a' -exec rm -f {} ';'
# Own configuration data locations
mkdir -p %{buildroot}%{_sysconfdir}/apk
touch %{buildroot}%{_sysconfdir}/apk/{arch,keys,repositories,world}
# Own cachedir location
mkdir -p %{buildroot}%{_localstatedir}/cache/apk
%check
%make_build %{makeopts} check
%changelog
* Thu Mar 14 2024 Neal Gompa <ngompa@fedoraproject.org> - 2.14.1-1
- Initial package