35fd563
Name:    annobin
35fd563
Summary: Binary annotation plugin for GCC
e7ed178
Version: 2.3
35fd563
Release: 1%{?dist}
35fd563
35fd563
License: GPLv3, MIT/X11 (config/libcutl.m4, install-sh)
35fd563
Group:   Development/Tools
35fd563
URL:     https://fedoraproject.org/wiki/Toolchain/Watermark
35fd563
e7ed178
# Use "--without tests" to disable the testsuite.  The default is to run them.
e7ed178
%bcond_without tests
e7ed178
e7ed178
#---------------------------------------------------------------------------------
32a0f85
Source:  https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
35fd563
35fd563
# This is a gcc plugin, hence gcc is required.
35fd563
Requires: gcc
35fd563
35fd563
BuildRequires: gcc-plugin-devel pkgconfig
35fd563
35fd563
%description
35fd563
A plugin for GCC that records extra information in the files that it compiles.
35fd563
This information can be used to analyze the files, and provide the loader
35fd563
with extra information about the requirements of the loaded file.
35fd563
e7ed178
#---------------------------------------------------------------------------------
e7ed178
%if %{with tests}
e7ed178
e7ed178
%package tests
e7ed178
Summary: Test scripts and binaries for checking the behaviour and output of the annobin plugin
e7ed178
e7ed178
%description tests
e7ed178
Provides a means to test the generation of annotated binaries and the parsing
e7ed178
of the resulting files.
e7ed178
# FIXME: Does not actually do this yet...
e7ed178
e7ed178
%endif
e7ed178
#---------------------------------------------------------------------------------
e7ed178
35fd563
%global ANNOBIN_PLUGIN_DIR %(g++ -print-file-name=plugin)
35fd563
35fd563
%prep
35fd563
%autosetup -p1
35fd563
35fd563
%build
e7ed178
%configure --quiet
35fd563
make %{?_smp_mflags}
35fd563
e7ed178
%if %{with tests}
e7ed178
make check
e7ed178
%endif
e7ed178
35fd563
%install
35fd563
rm -rf $RPM_BUILD_ROOT
35fd563
make install DESTDIR=$RPM_BUILD_ROOT
35fd563
35fd563
%files
35fd563
%{ANNOBIN_PLUGIN_DIR}
35fd563
%{_bindir}/built-by.sh
35fd563
%{_bindir}/check-abi.sh
35fd563
%{_bindir}/hardened.sh
35fd563
%license COPYING3 LICENSE
35fd563
%exclude %{_datadir}/doc/annobin-plugin/COPYING3
35fd563
%exclude %{_datadir}/doc/annobin-plugin/LICENSE
35fd563
%doc %{_datadir}/doc/annobin-plugin/annotation.proposal.txt
35fd563
e7ed178
#---------------------------------------------------------------------------------
e7ed178
35fd563
%changelog
e7ed178
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - annobin-2.3-1
e7ed178
- Add annobin-tests subpackage containing some preliminary tests.
e7ed178
- Remove link-time test for unsuported targets.
e7ed178
3b2676b
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
3b2676b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3b2676b
f53ae1f
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 2.0-2
f53ae1f
- Rebuild with binutils fix for ppc64le (#1475636)
f53ae1f
35fd563
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> - annobin-2.0-1.fc25
35fd563
- Fixes for problems reported by the package submission review:
35fd563
   * Add %%license entry to %%file section.
35fd563
   * Update License and BuildRequires tags.
35fd563
   * Add Requires tag.
35fd563
   * Remove %%clean.
35fd563
   * Add %%check.
35fd563
   * Clean up the %%changelog.
35fd563
- Update to use version 2 of the specification and sources.
35fd563
e7ed178
* Thu May 11 2017 Nick Clifton <nickc@redhat.com> - annobin-1.0-1
35fd563
- Initial submission.