From d895623061d7e75735415d4c50f69db93595eae6 Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Tue, 29 Jan 2019 06:28:14 +0100 Subject: [PATCH] Remove obsolete scriptlets References: https://fedoraproject.org/wiki/Changes/RemoveObsoleteScriptlets Signed-off-by: Igor Gnatenko --- gcc.spec | 57 +++----------------------------------------------------- 1 file changed, 3 insertions(+), 54 deletions(-) diff --git a/gcc.spec b/gcc.spec index 8b461d3..1b7cbc5 100644 --- a/gcc.spec +++ b/gcc.spec @@ -1935,66 +1935,15 @@ end %ldconfig_scriptlets -n libgnat -%post -n libgomp -/sbin/ldconfig -if [ -f %{_infodir}/libgomp.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libgomp.info.gz || : -fi - -%preun -n libgomp -if [ $1 = 0 -a -f %{_infodir}/libgomp.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libgomp.info.gz || : -fi - -%postun -n libgomp -p /sbin/ldconfig +%ldconfig_scriptlets -n libgomp %ldconfig_scriptlets gdb-plugin %ldconfig_scriptlets -n libgccjit -%post -n libgccjit-devel -if [ -f %{_infodir}/libgccjit.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || : -fi +%ldconfig_scriptlets -n libgquadmath -%preun -n libgccjit-devel -if [ $1 = 0 -a -f %{_infodir}/libgccjit.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libgccjit.info.gz || : -fi - -%post -n libquadmath -/sbin/ldconfig -if [ -f %{_infodir}/libquadmath.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || : -fi - -%preun -n libquadmath -if [ $1 = 0 -a -f %{_infodir}/libquadmath.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libquadmath.info.gz || : -fi - -%postun -n libquadmath -p /sbin/ldconfig - -%post -n libitm -/sbin/ldconfig -if [ -f %{_infodir}/libitm.info.gz ]; then - /sbin/install-info \ - --info-dir=%{_infodir} %{_infodir}/libitm.info.gz || : -fi - -%preun -n libitm -if [ $1 = 0 -a -f %{_infodir}/libitm.info.gz ]; then - /sbin/install-info --delete \ - --info-dir=%{_infodir} %{_infodir}/libitm.info.gz || : -fi - -%postun -n libitm -p /sbin/ldconfig +%ldconfig_scriptlets -n libitm %ldconfig_scriptlets -n libatomic