diff --git a/gcc.changes b/gcc.changes index 9ee4b5b..5f8a2cd 100644 --- a/gcc.changes +++ b/gcc.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 29 13:02:30 UTC 2021 - Richard Biener + +- Move /lib/cpp to /usr/lib/cpp for the usr merge. [bsc#1191060] + ------------------------------------------------------------------- Fri Aug 27 17:41:23 UTC 2021 - Andreas Schwab diff --git a/gcc.spec b/gcc.spec index 4f5efa6..a69f456 100644 --- a/gcc.spec +++ b/gcc.spec @@ -446,9 +446,16 @@ done for info in cpp gcc gfortran ; do ln -sf $info-%{gcc_suffix}.info.gz $RPM_BUILD_ROOT%{_infodir}/$info.info.gz done -# Provide the traditional /lib/cpp that only handles C +# Provide the traditional /lib/cpp (as /usr/lib/cpp on usrmerged systems) +# that only handles C +%if 0%{?suse_version} < 1550 cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT/lib/ chmod 755 $RPM_BUILD_ROOT/lib/cpp +%else +mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib +cp $RPM_SOURCE_DIR/cpp $RPM_BUILD_ROOT%{_prefix}/lib/ +chmod 755 $RPM_BUILD_ROOT%{_prefix}/lib/cpp +%endif # Provide extra symlinks ln -sf g++-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/c++ ln -sf gcc-%{gcc_suffix} $RPM_BUILD_ROOT%{_prefix}/bin/cc @@ -500,7 +507,11 @@ fi %files -n cpp %defattr(-,root,root) +%if 0%{?suse_version} < 1550 /lib/cpp +%else +%{_prefix}/lib/cpp +%endif %{_prefix}/bin/cpp %doc %{_mandir}/man1/cpp.1.gz