From 47ea3304266b89efc0b55b9189a0817bb829d9ee Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 5 Oct 2022 11:37:21 +0100 Subject: [PATCH] Libannocheck: Move into separate sub-package. --- annobin.spec | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/annobin.spec b/annobin.spec index ebcfcd7..8a461b1 100644 --- a/annobin.spec +++ b/annobin.spec @@ -2,7 +2,7 @@ Name: annobin Summary: Annotate and examine compiled binary files Version: 10.87 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv3+ URL: https://sourceware.org/annobin/ # Maintainer: nickc@redhat.com @@ -165,14 +165,29 @@ BuildRequires: elfutils-debuginfod-client-devel Requires: %{name}-docs = %{version}-%{release} Requires: cpio rpm -# The libannocheck library needs libiberty which is provided by binutils-devel -Requires: binutils-devel %description annocheck Installs the annocheck program which uses the notes generated by annobin to check that the specified files were compiled with the correct security hardening options. +%package libannocheck +Summary: A library for checking the security hardening status of binaries + +BuildRequires: gcc elfutils elfutils-devel elfutils-libelf-devel rpm-devel binutils-devel make + +%if %{with debuginfod} +BuildRequires: elfutils-debuginfod-client-devel +%endif + +Requires: %{name}-docs = %{version}-%{release} +Requires: binutils-devel + +%description libannocheck +Installs the libannocheck library which uses the notes generated by the +annobin plugins to check that the specified files were compiled with the +correct security hardening options. + %endif #---------------------------------------------------------------------------- @@ -481,16 +496,21 @@ fi %if %{with annocheck} %files annocheck +%{_bindir}/annocheck +%{_mandir}/man1/annocheck.1* + +%files libannocheck %{_includedir}/libannocheck.h %{_libdir}/libannocheck.* %{_libdir}/pkgconfig/libannocheck.pc -%{_bindir}/annocheck -%{_mandir}/man1/annocheck.1* %endif #--------------------------------------------------------------------------------- %changelog +* Wed Oct 05 2022 Nick Clifton - 10.87-2 +- Libannocheck: Move into separate sub-package. + * Fri Sep 30 2022 Nick Clifton - 10.87-1 - Libannocheck: Add libannocheck.pc pkgconfig file.