forked from Imagelibrary/rtems
Refactor patching.
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
# cygwin patches can't be directly applied through rpm
|
# cygwin patches can't be directly applied through rpm
|
||||||
cd gcc-%{gcc_pkgvers}
|
cd gcc-%{gcc_pkgvers}
|
||||||
patch -p1 -t < %{SOURCE70} || true
|
%if "%{gcc_version}" < "4.0"
|
||||||
|
patch -p1 -t < %{PATCH70} || true
|
||||||
|
%else
|
||||||
|
patch -p2 -t < %{PATCH70} || true
|
||||||
|
%endif
|
||||||
|
%{?PATCH71:patch -p1 < %{PATCH71}}
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
@@ -32,7 +32,17 @@ Source5: ftp://ftp.gnu.org/gnu/gcc/gcc-%{gcc_version}/gcc-objc-%{gcc_pkgvers}.ta
|
|||||||
%{?_without_sources:NoSource: 5}
|
%{?_without_sources:NoSource: 5}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Cygwin patch from
|
%if "%{gcc_version}" == "3.4.4"
|
||||||
# ftp://cygwin.com/pub/cygwin/release/gcc/gcc-core/gcc-core-3.4.4-3-src.tar.bz2
|
# Cygwin patch extracted from
|
||||||
Source70: gcc-3.4.4-3.patch
|
# ftp://sourceware.org/pub/cygwin/release/gcc/gcc-3.4.4-3-src.tar.bz2
|
||||||
|
Patch70: gcc-3.4.4-3.patch
|
||||||
|
|
||||||
|
Patch71: cygwin-gcc-3.4.4-3.diff
|
||||||
|
%endif
|
||||||
|
%if "%{gcc_version}" == "4.3.4"
|
||||||
|
# Cygwin patch extracted from
|
||||||
|
# ftp://sourceware.org/pub/cygwin/release/gcc4/gcc4-4.3.4-3-src.tar.bz2
|
||||||
|
Patch70: gcc4-4.3.4-3.src.patch
|
||||||
|
|
||||||
|
Patch71: cygwin-gcc4-4.3.4-3.diff
|
||||||
|
%endif
|
||||||
|
|||||||
Reference in New Issue
Block a user