2017-07-27 13:58:31 +00:00
|
|
|
Name: annobin
|
|
|
|
Summary: Binary annotation plugin for GCC
|
2017-09-26 12:59:20 +00:00
|
|
|
Version: 2.5.1
|
|
|
|
Release: 1%{?dist}
|
2017-07-27 13:58:31 +00:00
|
|
|
|
2017-10-03 13:46:25 +00:00
|
|
|
License: GPLv3+
|
2017-07-27 13:58:31 +00:00
|
|
|
URL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
|
|
|
|
2017-09-21 12:39:01 +00:00
|
|
|
# Use "--without tests" to disable the testsuite. The default is to run them.
|
|
|
|
%bcond_without tests
|
|
|
|
|
|
|
|
#---------------------------------------------------------------------------------
|
2017-09-21 13:02:09 +00:00
|
|
|
Source: https://nickc.fedorapeople.org/annobin-%{version}.tar.xz
|
2017-07-27 13:58:31 +00:00
|
|
|
|
|
|
|
# This is a gcc plugin, hence gcc is required.
|
|
|
|
Requires: gcc
|
|
|
|
|
|
|
|
BuildRequires: gcc-plugin-devel pkgconfig
|
|
|
|
|
|
|
|
%description
|
|
|
|
A plugin for GCC that records extra information in the files that it compiles.
|
|
|
|
This information can be used to analyze the files, and provide the loader
|
|
|
|
with extra information about the requirements of the loaded file.
|
|
|
|
|
2017-09-21 12:39:01 +00:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
%if %{with tests}
|
|
|
|
|
|
|
|
%package tests
|
|
|
|
Summary: Test scripts and binaries for checking the behaviour and output of the annobin plugin
|
|
|
|
|
|
|
|
%description tests
|
|
|
|
Provides a means to test the generation of annotated binaries and the parsing
|
|
|
|
of the resulting files.
|
|
|
|
# FIXME: Does not actually do this yet...
|
|
|
|
|
|
|
|
%endif
|
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
|
2017-07-27 13:58:31 +00:00
|
|
|
%global ANNOBIN_PLUGIN_DIR %(g++ -print-file-name=plugin)
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p1
|
|
|
|
|
2017-09-26 12:59:20 +00:00
|
|
|
# Touch the configure files so that they are not regenerated.
|
|
|
|
touch configure */configure Makefile.in */Makefile.in
|
|
|
|
|
2017-07-27 13:58:31 +00:00
|
|
|
%build
|
2017-09-21 12:39:01 +00:00
|
|
|
%configure --quiet
|
2017-10-03 13:48:09 +00:00
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
2017-07-27 13:58:31 +00:00
|
|
|
|
2017-09-21 12:39:01 +00:00
|
|
|
%if %{with tests}
|
2017-10-03 13:48:09 +00:00
|
|
|
%check
|
2017-09-21 12:39:01 +00:00
|
|
|
make check
|
|
|
|
%endif
|
|
|
|
|
2017-07-27 13:58:31 +00:00
|
|
|
%files
|
|
|
|
%{ANNOBIN_PLUGIN_DIR}
|
|
|
|
%{_bindir}/built-by.sh
|
|
|
|
%{_bindir}/check-abi.sh
|
|
|
|
%{_bindir}/hardened.sh
|
|
|
|
%license COPYING3 LICENSE
|
|
|
|
%exclude %{_datadir}/doc/annobin-plugin/COPYING3
|
|
|
|
%exclude %{_datadir}/doc/annobin-plugin/LICENSE
|
|
|
|
%doc %{_datadir}/doc/annobin-plugin/annotation.proposal.txt
|
|
|
|
|
2017-09-21 12:39:01 +00:00
|
|
|
#---------------------------------------------------------------------------------
|
|
|
|
|
2017-07-27 13:58:31 +00:00
|
|
|
%changelog
|
2017-10-03 13:49:30 +00:00
|
|
|
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5.1-1
|
2017-09-26 12:59:20 +00:00
|
|
|
- Touch the auto-generated files in order to stop them from being regenerated.
|
|
|
|
|
2017-10-03 13:49:30 +00:00
|
|
|
* Tue Sep 26 2017 Nick Clifton <nickc@redhat.com> - 2.5-2
|
2017-09-26 11:33:04 +00:00
|
|
|
- Stop the plugin complaining about compiler datestamp mismatches.
|
|
|
|
|
2017-10-03 13:49:30 +00:00
|
|
|
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.4-1
|
2017-09-21 13:31:48 +00:00
|
|
|
- Tweak tests so that they will run on older machines.
|
|
|
|
|
2017-10-03 13:49:30 +00:00
|
|
|
* Thu Sep 21 2017 Nick Clifton <nickc@redhat.com> - 2.3-1
|
2017-09-21 12:39:01 +00:00
|
|
|
- Add annobin-tests subpackage containing some preliminary tests.
|
|
|
|
- Remove link-time test for unsuported targets.
|
|
|
|
|
2017-08-02 17:35:45 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-31 06:34:29 +00:00
|
|
|
* Mon Jul 31 2017 Florian Weimer <fweimer@redhat.com> - 2.0-2
|
|
|
|
- Rebuild with binutils fix for ppc64le (#1475636)
|
|
|
|
|
2017-10-03 13:49:30 +00:00
|
|
|
* Wed Jun 28 2017 Nick Clifton <nickc@redhat.com> - 2.0-1
|
2017-07-27 13:58:31 +00:00
|
|
|
- Fixes for problems reported by the package submission review:
|
|
|
|
* Add %%license entry to %%file section.
|
|
|
|
* Update License and BuildRequires tags.
|
|
|
|
* Add Requires tag.
|
|
|
|
* Remove %%clean.
|
|
|
|
* Add %%check.
|
|
|
|
* Clean up the %%changelog.
|
|
|
|
- Update to use version 2 of the specification and sources.
|
|
|
|
|
2017-10-03 13:49:30 +00:00
|
|
|
* Thu May 11 2017 Nick Clifton <nickc@redhat.com> - 1.0-1
|
2017-07-27 13:58:31 +00:00
|
|
|
- Initial submission.
|