volume_key: rebuild for Python 3.12
This commit is contained in:
parent
0710584b61
commit
b359d865fd
1 changed files with 16 additions and 2 deletions
|
@ -1,10 +1,10 @@
|
|||
# Template file for 'volume_key'
|
||||
pkgname=volume_key
|
||||
version=0.3.12
|
||||
revision=6
|
||||
revision=7
|
||||
build_style=gnu-configure
|
||||
configure_args="--without-python"
|
||||
hostmakedepends="pkg-config python3"
|
||||
hostmakedepends="pkg-config python3-setuptools swig"
|
||||
makedepends="cryptsetup-devel glib-devel gpgme-devel nss-devel python3-devel"
|
||||
short_desc="Library for manipulating storage volume encryption keys"
|
||||
maintainer="Andrew Benson <abenson@gmail.com>"
|
||||
|
@ -14,6 +14,20 @@ distfiles="https://releases.pagure.org/volume_key/volume_key-${version}.tar.xz"
|
|||
checksum=6ca3748fc1dad22c450bbf6601d4e706cb11c5e662d11bb4aeb473a9cd77309b
|
||||
make_check=no # Error initializing NSS: security library: bad database.
|
||||
|
||||
post_extract() {
|
||||
# The rendered file uses the imp module, removed in Python 3.12;
|
||||
# swig will regenerate it without this dependency during the build
|
||||
rm python/python{,3}/volume_key.py
|
||||
|
||||
# The py-compile helper uses the imp module, removed in Python 3.12;
|
||||
# besides, we don't want the module pre-compiled anyway, so just drop it
|
||||
: > admin/py-compile
|
||||
cat > admin/py-compile <<-'EOF'
|
||||
#!/bin/sh
|
||||
: "$@"
|
||||
EOF
|
||||
}
|
||||
|
||||
volume_key-python3_package() {
|
||||
lib32disabled=yes
|
||||
short_desc+=" - Python3 bindings"
|
||||
|
|
Loading…
Add table
Reference in a new issue