3
3
%global swiftbuild swift-source
4
4
%global icu_version 65-1
5
5
%global yams_version 4.0.2
6
- %global sap_version 0.4.3
6
+ %global swift_argument_parser_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
@@ -26,16 +27,16 @@ Source9: https://github.com/apple/sourcekit-lsp/archive/swift-%{swifttag}
26
27
Source10: https://github.com/apple/indexstore-db/archive/swift-%{swifttag }.tar.gz#/indexstore-db.tar.gz
27
28
Source11: https://github.com/apple/llvm-project/archive/swift-%{swifttag }.tar.gz#/llvm-project.tar.gz
28
29
Source12: https://github.com/apple/swift-tools-support-core/archive/swift-%{swifttag }.tar.gz#/swift-tools-support-core.tar.gz
29
- Source13: https://github.com/apple/swift-argument-parser/archive/%{sap_version } .tar.gz
30
+ Source13: https://github.com/apple/swift-argument-parser/archive/%{swift_argument_parser_version }.tar.gz# /swift-argument-parser .tar.gz
30
31
Source14: https://github.com/apple/swift-driver/archive/swift-%{swifttag }.tar.gz#/swift-driver.tar.gz
31
- Source15: https://github.com/unicode-org/icu/archive/release-%{icu_version }.tar.gz
32
+ Source15: https://github.com/unicode-org/icu/archive/release-%{icu_version }.tar.gz# /icu.tar.gz
32
33
Source16: https://github.com/apple/swift-syntax/archive/swift-%{swifttag }.zip#/swift-syntax.tar.gz
33
- Source17: https://github.com/jpsim/Yams/archive/%{yams_version }.zip
34
- Source18: https://github.com/apple/swift-crypto/archive/refs/tags/%{swift_crypto_version }.tar.gz
34
+ Source17: https://github.com/jpsim/Yams/archive/%{yams_version }.zip#/yams.tar.gz
35
+ Source18: https://github.com/apple/swift-crypto/archive/refs/tags/%{swift_crypto_version }.tar.gz#/swift-crypto.tar.gz
36
+ Source19: https://github.com/ninja-build/ninja/archive/refs/tags/v%{ninja_version }.tar.gz#/ninja.tar.gz
35
37
36
- Patch0: patches/build-presets.patch
37
- Patch1: patches/swift-api-checker.patch
38
- Patch2: patches/hwasan_symbolize.patch
38
+ Patch0: patches/swift-api-checker.patch
39
+ Patch1: patches/hwasan_symbolize.patch
39
40
40
41
BuildRequires: autoconf
41
42
BuildRequires: clang
@@ -53,7 +54,6 @@ BuildRequires: libuuid-devel
53
54
BuildRequires: libxml2-devel
54
55
BuildRequires: make
55
56
BuildRequires: ncurses-devel
56
- BuildRequires: ninja-build
57
57
BuildRequires: pcre-devel
58
58
BuildRequires: python2
59
59
BuildRequires: python2-devel
@@ -96,7 +96,7 @@ importantly, Swift is designed to make writing and maintaining
96
96
correct programs easier for the developer.
97
97
98
98
%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
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 -a 19
100
100
# The Swift build script requires directories to be named
101
101
# in a specific way so renaming the source directories is
102
102
# necessary
@@ -114,24 +114,22 @@ mv indexstore-db-swift-%{swifttag} indexstore-db
114
114
mv llvm-project-swift-%{swifttag } llvm-project
115
115
mv swift-syntax-swift-%{swifttag } swift-syntax
116
116
mv swift-tools-support-core-swift-%{swifttag } swift-tools-support-core
117
- mv swift-argument-parser-%{sap_version } swift-argument-parser
117
+ mv swift-argument-parser-%{swift_argument_parser_version } swift-argument-parser
118
118
mv swift-driver-swift-%{swifttag } swift-driver
119
119
mv swift-crypto-%{swift_crypto_version } swift-crypto
120
+ mv ninja-%{ninja_version } ninja
120
121
121
122
# ICU
122
123
mv icu-release-%{icu_version } icu
123
124
124
125
# Yams
125
126
mv Yams-%{yams_version } yams
126
127
127
- # Adjust presets
128
- %patch0 -p0
129
-
130
128
# Adjust python version swift-api-checker
131
- %patch1 -p1
129
+ %patch0 -p1
132
130
133
131
# Adjust python version hwasan_symbolize
134
- %patch2 -p1
132
+ %patch1 -p1
135
133
136
134
# Fix python to python3
137
135
ln -s /usr/bin/python3 /usr/bin/python
@@ -163,5 +161,4 @@ cp %{_builddir}/usr/share/man/man1/swift.1 %{buildroot}%{_mandir}/man1/swift.1
163
161
%post -p /sbin/ldconfig
164
162
%postun -p /sbin/ldconfig
165
163
166
-
167
164
%changelog
0 commit comments