5
5
%global yams_version 4.0.2
6
6
%global sap_version 0.4.3
7
7
%global swift_crypto_version 1.1.5
8
+ %global ninja_version 1.10.2
8
9
9
10
Name: swift-lang
10
11
Version: 5.5
@@ -32,10 +33,7 @@ Source15: https://github.com/unicode-org/icu/archive/release-%{icu_version
32
33
Source16: https://github.com/apple/swift-syntax/archive/swift-%{swifttag }.zip#/swift-syntax.tar.gz
33
34
Source17: https://github.com/jpsim/Yams/archive/%{yams_version }.zip
34
35
Source18: https://github.com/apple/swift-crypto/archive/refs/tags/%{swift_crypto_version }.tar.gz
35
-
36
- Patch0: patches/build-presets.patch
37
- Patch1: patches/swift-api-checker.patch
38
- Patch2: patches/hwasan_symbolize.patch
36
+ Source19: https://github.com/ninja-build/ninja/archive/refs/tags/v%{ninja_version }.tar.gz
39
37
40
38
BuildRequires: autoconf
41
39
BuildRequires: clang
@@ -53,7 +51,6 @@ BuildRequires: libuuid-devel
53
51
BuildRequires: libxml2-devel
54
52
BuildRequires: make
55
53
BuildRequires: ncurses-devel
56
- BuildRequires: ninja-build
57
54
BuildRequires: pcre-devel
58
55
BuildRequires: python2
59
56
BuildRequires: python2-devel
@@ -96,7 +93,7 @@ importantly, Swift is designed to make writing and maintaining
96
93
correct programs easier for the developer.
97
94
98
95
%prep
99
- %setup -q -c -n %{swiftbuild } -a 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18
96
+ %setup -q -c -n %{swiftbuild } -a 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19
100
97
# The Swift build script requires directories to be named
101
98
# in a specific way so renaming the source directories is
102
99
# necessary
@@ -124,14 +121,8 @@ mv icu-release-%{icu_version} icu
124
121
# Yams
125
122
mv Yams-%{yams_version } yams
126
123
127
- # Adjust presets
128
- %patch0 -p0
129
-
130
- # Adjust python version swift-api-checker
131
- %patch1 -p1
132
-
133
- # Adjust python version hwasan_symbolize
134
- %patch2 -p1
124
+ # Ninja
125
+ mv ninja-%{ninja_version } ninja
135
126
136
127
# Fix python to python3
137
128
ln -s /usr/bin/python3 /usr/bin/python
0 commit comments