From 62f4dedb91a7e445644a0e8e9ea9b1ffb50c20c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 16 Apr 2021 13:05:54 +0200 Subject: [PATCH] Correct a package rename annobin-9.65 which only contained documentation was renamed to annobin-docs in in 9.66. The Provide is kept for compatibility (redhat-rpm-config). The docs subpackage must be required by all the other ones because it packages a license. --- annobin.spec | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/annobin.spec b/annobin.spec index 66e5fc2..fcbdd66 100644 --- a/annobin.spec +++ b/annobin.spec @@ -2,7 +2,7 @@ Name: annobin Summary: Annotate and examine compiled binary files Version: 9.66 -Release: 2%{?dist} +Release: 3%{?dist} License: GPLv3+ # ProtocolURL: https://fedoraproject.org/wiki/Toolchain/Watermark # Maintainer: nickc@redhat.com @@ -169,8 +169,10 @@ Also provides a plugin for LLVM which performs a similar function. %package docs Summary: Documentation and shell scripts for use with annobin BuildArch: noarch -Obsoletes: %{name} < %{version}-%{release} -Obsoletes: %{name}-docs < %{version}-%{release} +# annobin renamed to annobin-doc in 9.66-1 +Provides: %{name} = %{version}-%{release} +# /usr/share/info/annobin.info.gz moved from annobin to annobin-docs +Conflicts: %{name} < 9.66-1 %description docs Provides the documentation files and example shell scripts for use with annobin. @@ -180,6 +182,7 @@ Provides the documentation files and example shell scripts for use with annobin. %package tests Summary: Test scripts and binaries for checking the behaviour and output of the annobin plugin +Requires: %{name}-docs = %{version}-%{release} %description tests Provides a means to test the generation of annotated binaries and the parsing @@ -198,6 +201,7 @@ BuildRequires: gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel binut BuildRequires: elfutils-debuginfod-client-devel BuildRequires: make %endif +Requires: %{name}-docs = %{version}-%{release} %description annocheck Installs the annocheck program which uses the notes generated by annobin to @@ -212,6 +216,7 @@ hardening options. %package plugin-gcc Summary: annobin gcc plugin +Requires: %{name}-docs = %{version}-%{release} Conflicts: annobin <= 9.60-1 %description plugin-gcc @@ -225,6 +230,7 @@ Installs an annobin plugin that can be used by gcc. %package plugin-llvm Summary: annobin llvm plugin +Requires: %{name}-docs = %{version}-%{release} Conflicts: annobin <= 9.60-1 %description plugin-llvm @@ -238,6 +244,7 @@ Installs an annobin plugin that can be used by llvm tools. %package plugin-clang Summary: annobin clang plugin +Requires: %{name}-docs = %{version}-%{release} Conflicts: annobin <= 9.60-1 %description plugin-clang @@ -402,6 +409,10 @@ fi #--------------------------------------------------------------------------------- %changelog +* Fri Apr 16 2021 Petr Pisar - 9.66-3 +- Correct a package rename (bug #1949570) +- Require docs subpackage by the other ones because of a license + * Thu Apr 15 2021 Martin Cermak - 9.66-2 - Fix bz1949570