mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-03-06 06:02:14 +01:00
Changes in upstream since previous packaged version: - Fix "CR_DELTA_RPM_SUPPORT" redefined warnings - Set to build against Python 3 by default - Update README - Add mergerepo_c --repo-prefix-search and --repo-prefix-replace. - Fix missing packages in mergerepo_c in case multiple VR exists for single pkg in repo. - Enable support for processing legacy tags by default - Correctly identify Requires(missingok) dependencies as legacy Recommends - Change location of drpm code to new address in GitHub Note: Upstream git log says it defaults to Python3. Actually it detects the version of Python and builds accordingly. Therefore this package continues to provide Python2 bindings in the `py2-createrepo_c` subpackage to avoid churn. A future commit can convert the subpackage from Python2 to Python3.
97 lines
2.2 KiB
Plaintext
97 lines
2.2 KiB
Plaintext
# Contributor:
|
|
# Maintainer: Paul Morgan <jumanjiman@gmail.com>
|
|
pkgname=createrepo_c
|
|
pkgver=0.11.1
|
|
pkgrel=0
|
|
pkgdesc="C implementation of createrepo"
|
|
url="https://github.com/rpm-software-management/createrepo_c/"
|
|
arch="all"
|
|
license="GPL-2.0"
|
|
makedepends="
|
|
bash-completion
|
|
bzip2-dev
|
|
cmake
|
|
curl-dev
|
|
expat-dev
|
|
file-dev
|
|
glib-dev
|
|
openssl-dev
|
|
libxml2-dev
|
|
python2-dev
|
|
rpm-dev
|
|
scanelf
|
|
sqlite-dev
|
|
xz-dev
|
|
zlib-dev
|
|
"
|
|
checkdepends="
|
|
${makedepends}
|
|
check
|
|
check-dev
|
|
py-nose
|
|
xz
|
|
"
|
|
subpackages="
|
|
${pkgname}-bash-completion:bashcomp:noarch
|
|
${pkgname}-dev
|
|
${pkgname}-doc
|
|
${pkgname}-libs
|
|
py2-${pkgname}:py2
|
|
"
|
|
source="
|
|
${pkgname}-${pkgver}.tar.gz::https://github.com/rpm-software-management/createrepo_c/archive/${pkgver}.tar.gz
|
|
10-libdir.patch
|
|
"
|
|
builddir="${srcdir}/${pkgname}-${pkgver}/"
|
|
|
|
build() {
|
|
mkdir "${builddir}"/build
|
|
cd "${builddir}"/build
|
|
|
|
# Pass cmake variables so
|
|
# end user does not need to set LD_LIBRARY_PATH.
|
|
# https://cmake.org/Wiki/CMake_RPATH_handling#Always_full_RPATH
|
|
cmake .. \
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
-DCMAKE_INSTALL_LIBDIR=lib \
|
|
-DCMAKE_SKIP_BUILD_RPATH=false \
|
|
-DCMAKE_BUILD_WITH_INSTALL_RPATH=false \
|
|
-DCMAKE_INSTALL_RPATH=/usr/lib \
|
|
-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=true \
|
|
-DPYTHON_DESIRED=2
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd "${builddir}"/build
|
|
make tests
|
|
tests/run_gtester.sh
|
|
}
|
|
|
|
package() {
|
|
cd "${builddir}"/build
|
|
make install/strip DESTDIR=${pkgdir}
|
|
}
|
|
|
|
py2() {
|
|
pkgdesc="Python2 bindings for createrepo_c"
|
|
depends="python2 ${pkgname}-libs"
|
|
|
|
# This is architecture-specific and provides a *.so file.
|
|
mkdir -p "${subpkgdir}"/usr/lib
|
|
mv "${pkgdir}"/usr/lib/python* "${subpkgdir}"/usr/lib/
|
|
}
|
|
|
|
bashcomp() {
|
|
depends=""
|
|
pkgdesc="Bash completions for ${pkgname}"
|
|
install_if="${pkgname}=${pkgver}-r${pkgrel} bash-completion"
|
|
|
|
mkdir -p "${subpkgdir}"/usr/share/
|
|
mv "${pkgdir}"/usr/share/bash-completion "${subpkgdir}"/usr/share/
|
|
}
|
|
|
|
sha512sums="b07b656a625c4637f521b6bcff1d4eb22df930b9033824dd7ccbd6e7eea66aa4df4c52cc84bc32391d20013bb3c06c02afcb8801c676af5ad860992197681e7a createrepo_c-0.11.1.tar.gz
|
|
df861d341d2acf5aba85d2bf0b959a7b22a29315efb0efeeada3871d7f1c4be035d27ff2408f55f3df24e6e11a8e5d7c4c88fd0ce25e4377b5452e861b40e188 10-libdir.patch"
|