From da61e64d93d761b8b56fd2568e9b8886a9f2e5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Tue, 22 Feb 2022 11:58:22 +0100 Subject: [PATCH] Make -test and -devel require both main package and -libs explicitly Requiring just the main package would do, but this way it's easier to see directly. CPython does the same. --- pypy3.9.spec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pypy3.9.spec b/pypy3.9.spec index 19737a7..adb16eb 100644 --- a/pypy3.9.spec +++ b/pypy3.9.spec @@ -186,6 +186,7 @@ Conflicts: pypy3 < 7.3.7-1 # It's intended for the libs package not to drag in the interpreter, see # https://bugzilla.redhat.com/show_bug.cgi?id=1547131 # https://bugzilla.redhat.com/show_bug.cgi?id=1862082 +# All other packages require the main package explicitly. %global __requires_exclude ^/usr/bin/pypy %description @@ -251,6 +252,7 @@ Libraries required by the various PyPy implementations of Python %{pyversion}. %package test Summary: Tests for PyPy%{pyversion} +Requires: pypy%{pyversion}%{?_isa} = %{version}-%{release} Requires: pypy%{pyversion}-libs%{?_isa} = %{version}-%{release} %if %{with main_pypy3} @@ -266,6 +268,7 @@ Useful when you want to run the test suite of PyPy%{pyversion}. %package devel Summary: Development tools for working with PyPy%{pyversion} Requires: pypy%{pyversion}%{?_isa} = %{version}-%{release} +Requires: pypy%{pyversion}-libs%{?_isa} = %{version}-%{release} %if %{with main_pypy3} Provides: pypy3-devel = %{version}-%{release}