tstellar / rpms / annobin

Forked from rpms/annobin 3 years ago
Clone

Blame annobin.spec

35fd563
Name:    annobin
35fd563
Summary: Binary annotation plugin for GCC
c393d68
Version: 2.5.1
c393d68
Release: 1%{?dist}
35fd563
d6f88f6
License: GPLv3+
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
c393d68
# Touch the configure files so that they are not regenerated.
c393d68
touch configure */configure Makefile.in */Makefile.in
c393d68
35fd563
%build
e7ed178
%configure --quiet
757c3b0
%make_build
757c3b0
757c3b0
%install
757c3b0
%make_install
35fd563
e7ed178
%if %{with tests}
757c3b0
%check
e7ed178
make check
e7ed178
%endif
e7ed178
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
ccfd4bf
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-1
c393d68
- Touch the auto-generated files in order to stop them from being regenerated.
c393d68
ccfd4bf
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5-2
31b6780
- Stop the plugin complaining about compiler datestamp mismatches.
31b6780
ccfd4bf
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.4-1
4b489fe
- Tweak tests so that they will run on older machines.
4b489fe
ccfd4bf
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 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
ccfd4bf
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> - 2.0-1
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
ccfd4bf
* Thu May 11 2017 Nick Clifton <nickc@redhat.com> - 1.0-1
35fd563
- Initial submission.