11.0.0-0.7
This commit is contained in:
parent
230cd6b217
commit
42f8421576
68
gcc.spec
68
gcc.spec
@ -293,7 +293,7 @@ Patch11: gcc11-d-shared-libphobos.patch
|
||||
%if %{build_go}
|
||||
# Avoid stripping these libraries and binaries.
|
||||
%global __os_install_post \
|
||||
chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.17.* \
|
||||
chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.18.* \
|
||||
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc \
|
||||
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc \
|
||||
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
|
||||
@ -301,7 +301,7 @@ chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}
|
||||
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/test2json \
|
||||
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/vet \
|
||||
%__os_install_post \
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.17.* \
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgo.so.18.* \
|
||||
chmod 755 %{buildroot}%{_prefix}/bin/go.gcc \
|
||||
chmod 755 %{buildroot}%{_prefix}/bin/gofmt.gcc \
|
||||
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo \
|
||||
@ -1386,14 +1386,14 @@ ln -sf ../../../libstdc++.so.6.*[0-9] libstdc++.so
|
||||
ln -sf ../../../libgfortran.so.5.* libgfortran.so
|
||||
ln -sf ../../../libgomp.so.1.* libgomp.so
|
||||
%if %{build_go}
|
||||
ln -sf ../../../libgo.so.17.* libgo.so
|
||||
ln -sf ../../../libgo.so.18.* libgo.so
|
||||
%endif
|
||||
%if %{build_libquadmath}
|
||||
ln -sf ../../../libquadmath.so.0.* libquadmath.so
|
||||
%endif
|
||||
%if %{build_d}
|
||||
ln -sf ../../../libgdruntime.so.1.* libgdruntime.so
|
||||
ln -sf ../../../libgphobos.so.1.* libgphobos.so
|
||||
ln -sf ../../../libgdruntime.so.2.* libgdruntime.so
|
||||
ln -sf ../../../libgphobos.so.2.* libgphobos.so
|
||||
%endif
|
||||
%if %{build_libitm}
|
||||
ln -sf ../../../libitm.so.1.* libitm.so
|
||||
@ -1416,14 +1416,14 @@ ln -sf ../../../../%{_lib}/libstdc++.so.6.*[0-9] libstdc++.so
|
||||
ln -sf ../../../../%{_lib}/libgfortran.so.5.* libgfortran.so
|
||||
ln -sf ../../../../%{_lib}/libgomp.so.1.* libgomp.so
|
||||
%if %{build_go}
|
||||
ln -sf ../../../../%{_lib}/libgo.so.17.* libgo.so
|
||||
ln -sf ../../../../%{_lib}/libgo.so.18.* libgo.so
|
||||
%endif
|
||||
%if %{build_libquadmath}
|
||||
ln -sf ../../../../%{_lib}/libquadmath.so.0.* libquadmath.so
|
||||
%endif
|
||||
%if %{build_d}
|
||||
ln -sf ../../../../%{_lib}/libgdruntime.so.1.* libgdruntime.so
|
||||
ln -sf ../../../../%{_lib}/libgphobos.so.1.* libgphobos.so
|
||||
ln -sf ../../../../%{_lib}/libgdruntime.so.2.* libgdruntime.so
|
||||
ln -sf ../../../../%{_lib}/libgphobos.so.2.* libgphobos.so
|
||||
%endif
|
||||
%if %{build_libitm}
|
||||
ln -sf ../../../../%{_lib}/libitm.so.1.* libitm.so
|
||||
@ -1500,28 +1500,28 @@ mv -f $FULLPATH/ada{include,lib} $FULLLPATH/
|
||||
pushd $FULLLPATH/adalib
|
||||
if [ "%{_lib}" = "lib" ]; then
|
||||
ln -sf ../../../../../libgnarl-*.so libgnarl.so
|
||||
ln -sf ../../../../../libgnarl-*.so libgnarl-9.so
|
||||
ln -sf ../../../../../libgnarl-*.so libgnarl-11.so
|
||||
ln -sf ../../../../../libgnat-*.so libgnat.so
|
||||
ln -sf ../../../../../libgnat-*.so libgnat-9.so
|
||||
ln -sf ../../../../../libgnat-*.so libgnat-11.so
|
||||
else
|
||||
ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl.so
|
||||
ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-9.so
|
||||
ln -sf ../../../../../../%{_lib}/libgnarl-*.so libgnarl-11.so
|
||||
ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat.so
|
||||
ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-9.so
|
||||
ln -sf ../../../../../../%{_lib}/libgnat-*.so libgnat-11.so
|
||||
fi
|
||||
popd
|
||||
else
|
||||
pushd $FULLPATH/adalib
|
||||
if [ "%{_lib}" = "lib" ]; then
|
||||
ln -sf ../../../../libgnarl-*.so libgnarl.so
|
||||
ln -sf ../../../../libgnarl-*.so libgnarl-9.so
|
||||
ln -sf ../../../../libgnarl-*.so libgnarl-11.so
|
||||
ln -sf ../../../../libgnat-*.so libgnat.so
|
||||
ln -sf ../../../../libgnat-*.so libgnat-9.so
|
||||
ln -sf ../../../../libgnat-*.so libgnat-11.so
|
||||
else
|
||||
ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl.so
|
||||
ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-9.so
|
||||
ln -sf ../../../../../%{_lib}/libgnarl-*.so libgnarl-11.so
|
||||
ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat.so
|
||||
ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-9.so
|
||||
ln -sf ../../../../../%{_lib}/libgnat-*.so libgnat-11.so
|
||||
fi
|
||||
popd
|
||||
fi
|
||||
@ -1536,8 +1536,8 @@ ln -sf ../`echo ../../../../lib/libgfortran.so.5.* | sed s~/lib/~/lib64/~` 64/li
|
||||
ln -sf ../`echo ../../../../lib/libgomp.so.1.* | sed s~/lib/~/lib64/~` 64/libgomp.so
|
||||
%if %{build_go}
|
||||
rm -f libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.17.* | sed 's,^.*libg,libg,'`' )' > libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.17.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgo.so.18.* | sed 's,^.*libg,libg,'`' )' > libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgo.so.18.* | sed 's,^.*libg,libg,'`' )' > 64/libgo.so
|
||||
%endif
|
||||
%if %{build_libquadmath}
|
||||
rm -f libquadmath.so
|
||||
@ -1546,10 +1546,10 @@ echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libquadmath.so.0.* | sed '
|
||||
%endif
|
||||
%if %{build_d}
|
||||
rm -f libgdruntime.so libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > 64/libgphobos.so
|
||||
%endif
|
||||
%if %{build_libitm}
|
||||
rm -f libitm.so
|
||||
@ -1635,8 +1635,8 @@ ln -sf ../`echo ../../../../lib64/libgfortran.so.5.* | sed s~/../lib64/~/~` 32/l
|
||||
ln -sf ../`echo ../../../../lib64/libgomp.so.1.* | sed s~/../lib64/~/~` 32/libgomp.so
|
||||
%if %{build_go}
|
||||
rm -f libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.17.* | sed 's,^.*libg,libg,'`' )' > libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.17.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgo.so.18.* | sed 's,^.*libg,libg,'`' )' > libgo.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgo.so.18.* | sed 's,^.*libg,libg,'`' )' > 32/libgo.so
|
||||
%endif
|
||||
%if %{build_libquadmath}
|
||||
rm -f libquadmath.so
|
||||
@ -1645,10 +1645,10 @@ echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libquadmath.so.0.* | sed '
|
||||
%endif
|
||||
%if %{build_d}
|
||||
rm -f libgdruntime.so libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.1.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.1.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgdruntime.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libgdruntime.so
|
||||
echo 'INPUT ( %{_prefix}/lib64/'`echo ../../../../lib64/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > libgphobos.so
|
||||
echo 'INPUT ( %{_prefix}/lib/'`echo ../../../../lib64/libgphobos.so.2.* | sed 's,^.*libg,libg,'`' )' > 32/libgphobos.so
|
||||
%endif
|
||||
%if %{build_libitm}
|
||||
rm -f libitm.so
|
||||
@ -1800,8 +1800,8 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/libcc1.so.0.*
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libquadmath.so.0.*
|
||||
%endif
|
||||
%if %{build_d}
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.1.*
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.1.*
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgdruntime.so.2.*
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libgphobos.so.2.*
|
||||
%endif
|
||||
%if %{build_libitm}
|
||||
chmod 755 %{buildroot}%{_prefix}/%{_lib}/libitm.so.1.*
|
||||
@ -1823,7 +1823,7 @@ chmod 755 %{buildroot}%{_prefix}/%{_lib}/liblsan.so.0.*
|
||||
%endif
|
||||
%if %{build_go}
|
||||
# Avoid stripping these libraries and binaries.
|
||||
chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.17.*
|
||||
chmod 644 %{buildroot}%{_prefix}/%{_lib}/libgo.so.18.*
|
||||
chmod 644 %{buildroot}%{_prefix}/bin/go.gcc
|
||||
chmod 644 %{buildroot}%{_prefix}/bin/gofmt.gcc
|
||||
chmod 644 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_major}/cgo
|
||||
@ -2632,8 +2632,8 @@ end
|
||||
%doc rpm.doc/gdc/*
|
||||
|
||||
%files -n libgphobos
|
||||
%{_prefix}/%{_lib}/libgdruntime.so.1*
|
||||
%{_prefix}/%{_lib}/libgphobos.so.1*
|
||||
%{_prefix}/%{_lib}/libgdruntime.so.2*
|
||||
%{_prefix}/%{_lib}/libgphobos.so.2*
|
||||
%doc rpm.doc/libphobos/*
|
||||
|
||||
%files -n libgphobos-static
|
||||
@ -2958,7 +2958,7 @@ end
|
||||
%doc rpm.doc/go/*
|
||||
|
||||
%files -n libgo
|
||||
%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.17*
|
||||
%attr(755,root,root) %{_prefix}/%{_lib}/libgo.so.18*
|
||||
%doc rpm.doc/libgo/*
|
||||
|
||||
%files -n libgo-devel
|
||||
|
Loading…
Reference in New Issue
Block a user