Rebuild with python 3.14

This commit is contained in:
2026-05-06 15:25:34 +03:00
parent 27e5cb02b8
commit 0b3ee6169e
3 changed files with 42 additions and 24 deletions
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# Gitlab repository
REPO="dbus/dbus-python"
# Replace slash with URL encoded representation
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API
TAG_NAME=$(curl -s -L https://gitlab.freedesktop.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[0].name')
# Trim suffix
VERSION=${TAG_NAME//dbus-python-/}
echo "$VERSION"
+22 -3
View File
@@ -1,10 +1,29 @@
name: python-dbus name: python-dbus
description: Libdbus language binding (wrapper) for CPython description: Libdbus language binding (wrapper) for CPython
version: 1.4.0 version: 1.4.0
revision: 2
url: https://pypi.org/project/dbus-python/ url: https://pypi.org/project/dbus-python/
license: MIT license: MIT
maintainers:
- [email protected]
architecture: any architecture: any
depends: ["dbus","glib","glibc","python3"]
optional_depends: ["python-pygobject"]
make_depends: ["meson","python-pygobject"]
type: source type: source
depends:
- dbus
- glib
- glibc
- python3=3.14.*
optional_depends:
- python-pygobject:For D-Bus services via PyGi
make_depends:
- meson
- python-pygobject
- python-pyproject-metadata
- python-sphinx
- python-sphinx_rtd_theme
- python-sphinxcontrib-jquery
downloads:
- url: https://gitlab.freedesktop.org/dbus/dbus-python/-/archive/dbus-python-${BPM_PKG_VERSION}/dbus-python-dbus-python-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: da4ee9bbb9eb901d463a7cc9f99dfdbe6c751c8b48b29b78d378985a3c9656ad
+5 -21
View File
@@ -2,40 +2,24 @@
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
DOWNLOAD="https://gitlab.freedesktop.org/dbus/dbus-python/-/archive/dbus-python-${BPM_PKG_VERSION}/dbus-python-dbus-python-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
}
# The build function is executed in the source directory # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
mkdir build meson setup build --prefix=/usr -Ddoc=enabled
cd build meson compile -C build
meson setup --prefix=/usr -Ddoc=disabled
meson compile
} }
# The check function is executed in the source directory # The check function is executed in the source directory
# This function is used to run tests to verify the package has been compiled correctly # This function is used to run tests to verify the package has been compiled correctly
check() { check() {
cd build meson test -C build
meson test
} }
# The package function is executed in the source directory # The package function is executed in the source directory
# This function is used to move the compiled files into the output directory # This function is used to move the compiled files into the output directory
package() { package() {
cd build meson install -C build --destdir="$BPM_OUTPUT"
meson install --destdir="$BPM_OUTPUT"
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/python-dbus/COPYING install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/python-dbus/COPYING
} }