From 9d86bd78ad2157862623882d76a3287908f37bfa Mon Sep 17 00:00:00 2001 From: Dan Fandrich Date: Fri, 20 Feb 2026 09:03:49 -0800 Subject: [PATCH] Clean up RPM dependencies Remove redundant Requires: that are automatically generated and use the automatic ones for BuildRequires: to make them more generic. The python3-gobject package doesn't provide a dependency so that must stay. --- pyproject.toml | 2 ++ rpmbuild/SPECS/urpm-ng.spec | 19 ++++++++----------- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 8951b6c..4948eb9 100755 --- a/pyproject.toml +++ b/pyproject.toml @@ -26,6 +26,8 @@ classifiers = [ "Topic :: System :: Software Distribution", ] dependencies = [ + "pygobject", + "rpm", "solv", "zstandard" ] diff --git a/rpmbuild/SPECS/urpm-ng.spec b/rpmbuild/SPECS/urpm-ng.spec index be7be08..6b804dc 100755 --- a/rpmbuild/SPECS/urpm-ng.spec +++ b/rpmbuild/SPECS/urpm-ng.spec @@ -15,22 +15,19 @@ Source1: pk-backend-urpm.tar.gz # Note: No BuildArch:noarch because we also build the C backend # Python build requirements +BuildRequires: meson BuildRequires: pyproject-rpm-macros BuildRequires: python3-devel -BuildRequires: python3-wheel -BuildRequires: python3-setuptools -BuildRequires: python3-solv -BuildRequires: python3-rpm -BuildRequires: python3-zstandard -BuildRequires: meson +BuildRequires: python3dist(pygobject) +BuildRequires: python3dist(rpm) +BuildRequires: python3dist(setuptools) +BuildRequires: python3dist(solv) +BuildRequires: python3dist(wheel) +BuildRequires: python3dist(zstandard) -Requires: python3 -Requires: python3-solv -Requires: python3-rpm -Requires: python3-zstandard -Requires: python3-gobject Requires: gnupg2 Requires: polkit +Requires: python3-gobject Requires(post): systemd Requires(preun): systemd