rpm: fix -python package, split template.

This commit is contained in:
maxice8 2018-05-31 19:59:40 -03:00
parent b964e80e76
commit 522922fc22
7 changed files with 43 additions and 7 deletions

View file

@ -3077,6 +3077,10 @@ librpmsign.so.8 rpm-4.14.1_1
librpmbuild.so.8 rpm-4.14.1_1
librpmio.so.8 rpm-4.14.1_1
libaria2.so.0 libaria2-1.33.1_3
librpm.so.8 librpm-4.14.1_1
librpmsign.so.8 librpmsign-4.14.1_1
librpmbuild.so.8 librpmbuild-4.14.1_1
librpmio.so.8 librpmio-4.14.1_1
libsquirrel.so.0 squirrel-libs-3.1_1
libsqstdlib.so.0 squirrel-libs-3.1_1
libexecinfo.so.1 libexecinfo-1.1_1

1
srcpkgs/librpm-devel Symbolic link
View file

@ -0,0 +1 @@
rpm

1
srcpkgs/librpmbuild Symbolic link
View file

@ -0,0 +1 @@
rpm

1
srcpkgs/librpmio Symbolic link
View file

@ -0,0 +1 @@
rpm

1
srcpkgs/librpmsign Symbolic link
View file

@ -0,0 +1 @@
rpm

View file

@ -8,11 +8,11 @@ hostmakedepends="automake gettext-devel libtool nss-devel pkg-config
python-setuptools"
makedepends="binutils-devel db-devel elfutils-devel file-devel libarchive-devel
libcap-devel lua52-devel nss-devel popt-devel python-devel"
checkdepends="${makedepends}"
short_desc="Red Hat Package Management Utils"
maintainer="maxice8 <thinkabit.ukim@gmail.com>"
license="GPL-2.0-or-later"
homepage="http://rpm.org"
changelog="http://rpm.org/wiki/Releases/${version}.html"
distfiles="http://ftp.rpm.org/releases/rpm-${version%.*}.x/rpm-${version}.tar.bz2"
checksum=43f40e2ccc3ca65bd3238f8c9f8399d4957be0878c2e83cba2746d2d0d96793b
conflicts="rpmextract>=0" # Both provide rpm2cpio
@ -24,7 +24,7 @@ CFLAGS+=" -I${XBPS_CROSS_BASE}/usr/include/nspr"
case "$XBPS_TARGET_MACHINE" in
# Musl requires gettext to be included and it's cflag added otherwise
# it fails with _nl_msg_cat_cntr undefined reference error
*-musl*)
*-musl)
makedepends+=" gettext-devel"
LDFLAGS+=" -lintl"
;;
@ -34,8 +34,10 @@ pre_configure() {
autoreconf -fi
}
rpm-devel_package() {
depends="${sourcepkg}>=${version}_${revision}"
librpm-devel_package() {
depends="librpm-${version}_${revision} librpmbuild-${version}_${revision}
librpmsign-${version}_${revision} librpmio-${version}_${revision} db-devel
popt-devel liblzma-devel zlib-devel bzip2-devel nss-devel lua52-devel"
short_desc+=" - development files"
depends="${makedepends}"
pkg_install() {
@ -46,11 +48,37 @@ rpm-devel_package() {
}
rpm-python_package() {
short_desc+=" - python bindings"
depends="${sourcepkg}>=${version}_${revision}"
noarch=yes
pycompile_module="rpm"
short_desc+=" - python bindings"
pkg_install() {
vmove usr/lib/python2*
}
}
librpm_package() {
short_desc+=" - rpm library"
pkg_install() {
vmove "usr/lib/librpm.so.*"
}
}
librpmbuild_package() {
short_desc+=" - rpmbuild library"
pkg_install() {
vmove "usr/lib/librpmbuild.so.*"
}
}
librpmsign_package() {
short_desc+=" - rpmsign library"
pkg_install() {
vmove "usr/lib/librpmsign.so.*"
}
}
librpmio_package() {
short_desc+=" - rpmio library"
pkg_install() {
vmove "usr/lib/librpmio.so.*"
}
}