[RPM] Remove hard code 'openEuler' in spec file
Remove hard code 'openEuler' with %{vendor} in spec file
This commit is contained in:
parent
c65c01bb4d
commit
6ef7dfd48c
@ -1,4 +1,5 @@
|
||||
%global scl 1
|
||||
%global vendor %{?_vendor:%{_vendor}}%{!?_vendor:openEuler}
|
||||
|
||||
%global gcc_major 12
|
||||
|
||||
@ -11,7 +12,7 @@
|
||||
|
||||
%if 0%{?scl:1}
|
||||
%global scl_prefix gcc-toolset-12-
|
||||
%global _prefix /opt/openEuler/gcc-toolset-12/root/usr
|
||||
%global _prefix /opt/%{vendor}/gcc-toolset-12/root/usr
|
||||
%global gcc_ver %{nil}
|
||||
%define binsuffix %{nil}
|
||||
%define __provides_exclude ^lib.*$
|
||||
@ -599,7 +600,7 @@ not stable, so plugins must be rebuilt any time GCC is updated.
|
||||
%patch2 -p1
|
||||
%patch3 -p1
|
||||
|
||||
echo 'openEuler %{version}-%{release}' > gcc/DEV-PHASE
|
||||
echo '%{vendor} %{version}-%{release}' > gcc/DEV-PHASE
|
||||
|
||||
cp -a libstdc++-v3/config/cpu/i{4,3}86/atomicity.h
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user