Version number bump so that the plugin can be rebuilt with the latest version of GCC.
This commit is contained in:
parent
f45ff6be28
commit
967f47d659
23
annobin.spec
23
annobin.spec
@ -12,7 +12,7 @@
|
|||||||
Name: annobin
|
Name: annobin
|
||||||
Summary: Binary annotation plugin for GCC
|
Summary: Binary annotation plugin for GCC
|
||||||
Version: 5.6
|
Version: 5.6
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
|
|
||||||
License: GPLv3+
|
License: GPLv3+
|
||||||
URL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
URL: https://fedoraproject.org/wiki/Toolchain/Watermark
|
||||||
@ -115,6 +115,8 @@ BuildRequires: gcc == %{gcc_vr}
|
|||||||
Requires: gcc
|
Requires: gcc
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -p1
|
%autosetup -p1
|
||||||
|
|
||||||
@ -126,6 +128,8 @@ touch configure */configure Makefile.in */Makefile.in
|
|||||||
# Similarly we do not want to rebuild the documentation.
|
# Similarly we do not want to rebuild the documentation.
|
||||||
touch doc/annobin.info
|
touch doc/annobin.info
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --quiet --with-gcc-plugin-dir=%{ANNOBIN_PLUGIN_DIR}
|
%configure --quiet --with-gcc-plugin-dir=%{ANNOBIN_PLUGIN_DIR}
|
||||||
%make_build
|
%make_build
|
||||||
@ -133,33 +137,42 @@ touch doc/annobin.info
|
|||||||
# ensures that the plugin works, and that it contains annotations
|
# ensures that the plugin works, and that it contains annotations
|
||||||
# of its own. This could mean that we end up with a plugin with
|
# of its own. This could mean that we end up with a plugin with
|
||||||
# double annotations in it. (If the build system enables annotations
|
# double annotations in it. (If the build system enables annotations
|
||||||
# for plugins by default). I have not tested this, but I think that
|
# for plugins by default). I have not tested this yet, but I think
|
||||||
# it should be OK.
|
# that it should be OK.
|
||||||
cp plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp-annobin.so
|
cp plugin/.libs/annobin.so.0.0.0 %{_tmppath}/tmp-annobin.so
|
||||||
make -C plugin clean
|
make -C plugin clean
|
||||||
make -C plugin CXXFLAGS="%{optflags} -fplugin=%{_tmppath}/tmp-annobin.so"
|
make -C plugin CXXFLAGS="%{optflags} -fplugin=%{_tmppath}/tmp-annobin.so"
|
||||||
rm %{_tmppath}/tmp-annobin.so
|
rm %{_tmppath}/tmp-annobin.so
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%make_install
|
%make_install
|
||||||
%{__rm} -f %{buildroot}%{_infodir}/dir
|
%{__rm} -f %{buildroot}%{_infodir}/dir
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%if %{with tests}
|
%if %{with tests}
|
||||||
%check
|
%check
|
||||||
make check
|
make check
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%post
|
%post
|
||||||
/sbin/install-info %{_infodir}/annobin.info.gz %{_infodir} >/dev/null 2>&1 || :
|
/sbin/install-info %{_infodir}/annobin.info.gz %{_infodir} >/dev/null 2>&1 || :
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%preun
|
%preun
|
||||||
if [ $1 = 0 ]; then
|
if [ $1 = 0 ]; then
|
||||||
/sbin/install-info --delete %{_infodir}/annobin.info.gz %{_infodir} >/dev/null 2>&1|| :
|
/sbin/install-info --delete %{_infodir}/annobin.info.gz %{_infodir} >/dev/null 2>&1|| :
|
||||||
fi
|
fi
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%{ANNOBIN_PLUGIN_DIR}
|
%{ANNOBIN_PLUGIN_DIR}
|
||||||
%{_bindir}/built-by.sh
|
%{_bindir}/built-by.sh
|
||||||
@ -178,7 +191,11 @@ exit 0
|
|||||||
%doc %{_mandir}/man1/run-on-binaries.1.gz
|
%doc %{_mandir}/man1/run-on-binaries.1.gz
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 03 2018 Nick Clifton <nickc@redhat.com> - 5.6-3
|
||||||
|
- Version number bump so that the plugin can be rebuilt with the latest version of GCC.
|
||||||
|
|
||||||
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-2
|
* Mon Apr 30 2018 Nick Clifton <nickc@redhat.com> - 5.6-2
|
||||||
- Rebuild the plugin with the newly created plugin enabled. (#1573082)
|
- Rebuild the plugin with the newly created plugin enabled. (#1573082)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user