Libannocheck: Move into separate sub-package.

This commit is contained in:
Nick Clifton 2022-10-05 11:37:21 +01:00
parent 5967b15825
commit 47ea330426

View File

@ -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 <nickc@redhat.com> - 10.87-2
- Libannocheck: Move into separate sub-package.
* Fri Sep 30 2022 Nick Clifton <nickc@redhat.com> - 10.87-1
- Libannocheck: Add libannocheck.pc pkgconfig file.