mirror of
https://abf.rosa.ru/djam/apk-tools.git
synced 2025-02-23 13:32:48 +00:00
110 lines
2.3 KiB
RPMSpec
110 lines
2.3 KiB
RPMSpec
%define luaver 5.3
|
|
%define lualibdir %{_libdir}/lua/%{luaver}
|
|
%define _pkgconfigdir %{_libdir}/pkgconfig/
|
|
|
|
%define libname %mklibname apk
|
|
%define devname %mklibname apk -d
|
|
%define staticname %mklibname apk -d -s
|
|
|
|
Name: apk-tools
|
|
Version: 2.14.9
|
|
Release: 1
|
|
Summary: Alpine package manager
|
|
License: GPLv2+
|
|
URL: https://alpinelinux.org
|
|
#Source0: https://git.alpinelinux.org/cgit/apk-tools/snapshot/%{name}-%{version}.tar.bz2
|
|
Source0: https://gitlab.alpinelinux.org/alpine/apk-tools/-/archive/v%{version}/%{name}-v%{version}.tar.gz
|
|
#Source0: %{name}-%{version}.tar.gz
|
|
Source1000: %{name}.rpmlintrc
|
|
Group: Development/Other
|
|
BuildRequires: pkgconfig(lua) >= 5.3
|
|
BuildRequires: pkgconfig(zlib)
|
|
BuildRequires: openssl-devel
|
|
BuildRequires: pkgconfig(openssl3.3)
|
|
BuildRequires: %{_lib}lz-devel
|
|
BuildRequires: lua-zlib
|
|
BuildRequires: scdoc
|
|
|
|
|
|
%description
|
|
%{summary}
|
|
|
|
%prep
|
|
%setup -qn %{name}-v%{version}
|
|
|
|
%build
|
|
%make LIBDIR=%{_libdir} \
|
|
SBINDIR=%{_sbindir} \
|
|
PKGCONFIGDIR=%{_pkgconfigdir} \
|
|
LUA_PC=lua \
|
|
LUA_VERSION=%{luaver} \
|
|
LUA_LIBDIR=%{lualibdir}
|
|
|
|
%install
|
|
%makeinstall_std DESTDIR=%{buildroot} \
|
|
LIBDIR=%{_libdir} \
|
|
SBINDIR=%{_sbindir} \
|
|
PKGCONFIGDIR=%{_pkgconfigdir} \
|
|
LUA_PC=lua \
|
|
LUA_VERSION=%{luaver} \
|
|
LUA_LIBDIR=%{lualibdir}
|
|
|
|
%package -n %{libname}
|
|
Summary: Main library for %{name}
|
|
Group: System/Libraries
|
|
Requires: %{name} == %{EVRD}
|
|
|
|
%description -n %{libname}
|
|
This package contains the library needed to run programs dynamically
|
|
linked with %{name}.
|
|
|
|
%files -n %{libname}
|
|
%{_libdir}/libapk.so.*
|
|
|
|
|
|
%package -n %{devname}
|
|
Summary: Development files for apk-tools
|
|
|
|
%description -n %{devname}
|
|
Development files for apk-tools
|
|
|
|
%files -n %{devname}
|
|
%{_libdir}/libapk.so
|
|
%{_includedir}/*
|
|
%{_libdir}/pkgconfig/apk.pc
|
|
|
|
%package -n %{staticname}
|
|
Summary: Static development lib
|
|
|
|
%description -n %{staticname}
|
|
Static development lib
|
|
|
|
%files -n %{staticname}
|
|
%{_libdir}/libapk.a
|
|
|
|
%package -n lua-apk
|
|
Summary: LUA library apk
|
|
|
|
%description -n lua-apk
|
|
LUA library apk
|
|
|
|
%files -n lua-apk
|
|
%{lualibdir}/apk.so
|
|
|
|
%package doc
|
|
Summary: Documentation for apk-tools
|
|
|
|
%description doc
|
|
Documentation for apk-tools
|
|
|
|
%files doc
|
|
%{_mandir}/man5/*
|
|
%{_mandir}/man8/*
|
|
%{_docdir}/apk/README.md
|
|
|
|
%files
|
|
%doc README.md LICENSE
|
|
%{_sbindir}/apk
|
|
%{_sysconfig}/apk-tools
|
|
|
|
|