- Fix update-alternatives.

OBS-URL: https://build.opensuse.org/package/show/devel:gcc/gcc7?expand=0&rev=47
This commit is contained in:
Richard Biener 2017-04-21 12:19:08 +00:00 committed by Git OBS Bridge
parent 4ad4a6fca9
commit 62c3e313ac
39 changed files with 58 additions and 38 deletions

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -648,7 +648,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -663,7 +663,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -648,7 +648,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -663,7 +663,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -647,7 +647,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} 7 \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -662,7 +662,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -241,7 +241,7 @@ rm -r env
%endif
%post
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
%{_sbindir}/update-alternatives \
--install %{_bindir}/%{gcc_target_arch}-gcc %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} @base_ver@ \
--slave %{_bindir}/%{gcc_target_arch}-c++ %{gcc_target_arch}-c++ %{_bindir}/%{gcc_target_arch}-c++%{binsuffix} \
@ -256,7 +256,7 @@ rm -r env
%endif
%postun
%if 0%{?gcc_accel}
%if 0%{!?gcc_accel:1}
if [ ! -f %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix} ] ; then
%{_sbindir}/update-alternatives --remove %{gcc_target_arch}-gcc %{_bindir}/%{gcc_target_arch}-gcc%{binsuffix}
fi

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz

View File

@ -6,6 +6,7 @@ Thu Apr 20 11:17:21 UTC 2017 - rguenther@suse.com
- Fix libada provides/conflicts.
- Package gcov.h.
- Add #!BuildIgnore: gcc-PIE.
- Fix update-alternatives.
-------------------------------------------------------------------
Tue Apr 4 14:44:52 UTC 2017 - mliska@suse.cz