mirror of
https://abf.rosa.ru/djam/apk-tools.git
synced 2025-02-23 13:32:48 +00:00
Imported from SRPM
This commit is contained in:
commit
f7e096d467
3 changed files with 111 additions and 0 deletions
2
.abf.yml
Normal file
2
.abf.yml
Normal file
|
@ -0,0 +1,2 @@
|
|||
sources:
|
||||
apk-tools-2.14.0.tar.gz: f7771e4bf48440beb074ad45665fbcd8c5dbec10
|
1
apk-tools.rpmlintrc
Normal file
1
apk-tools.rpmlintrc
Normal file
|
@ -0,0 +1 @@
|
|||
addFilter("E: incoherent-version-in-name")
|
108
apk-tools.spec
Normal file
108
apk-tools.spec
Normal file
|
@ -0,0 +1,108 @@
|
|||
%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.0
|
||||
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: %{name}-%{version}.tar.gz
|
||||
Source1000: %{name}.rpmlintrc
|
||||
Group: Development/Other
|
||||
BuildRequires: pkgconfig(lua) >= 5.3
|
||||
BuildRequires: pkgconfig(zlib)
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: %{_lib}lz-devel
|
||||
BuildRequires: lua-zlib
|
||||
BuildRequires: scdoc
|
||||
|
||||
|
||||
%description
|
||||
%{summary}
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
%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
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue