Richard Biener 2021-09-29 13:53:39 +00:00 committed by Git OBS Bridge
parent e89494725c
commit a9819cffb1

View File

@ -446,8 +446,9 @@ done
for info in cpp gcc gfortran ; do for info in cpp gcc gfortran ; do
ln -sf $info-%{gcc_suffix}.info.gz $RPM_BUILD_ROOT%{_infodir}/$info.info.gz ln -sf $info-%{gcc_suffix}.info.gz $RPM_BUILD_ROOT%{_infodir}/$info.info.gz
done done
# Provide the traditional /usr/lib/cpp that only handles C # Provide the traditional /lib/cpp (as /usr/lib/cpp on usrmerged systems)
%if !0%{?usrmerged} # that only handles C
%if 0%{?suse_version} < 1550
cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/ cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/
chmod 755 $RPM_BUILD_ROOT/lib/cpp chmod 755 $RPM_BUILD_ROOT/lib/cpp
%else %else
@ -506,7 +507,7 @@ fi
%files -n cpp %files -n cpp
%defattr(-,root,root) %defattr(-,root,root)
%if !0%{?usrmerged} %if 0%{?suse_version} < 1550
/lib/cpp /lib/cpp
%else %else
%{_prefix}/lib/cpp %{_prefix}/lib/cpp