1
1
%include global.inc
2
2
%include metadata.inc
3
3
4
- Source0: https://github.com/apple/swift /archive/swift-%{swift_version }.tar.gz#/swift .tar.gz
5
- Source1: https://github.com/apple/swift-corelibs-libdispatch /archive/swift-%{swift_version }.tar.gz#/corelibs-libdispatch .tar.gz
6
- Source2: https://github.com/apple/swift-corelibs-foundation /archive/swift-%{swift_version }.tar.gz#/corelibs-foundation .tar.gz
7
- Source3: https://github.com/apple/swift-integration-tests /archive/swift-%{ swift_version }.tar.gz#/swift-integration-tests .tar.gz
8
- Source4: https://github.com/apple/swift-corelibs-xctest /archive/swift-%{ swift_version }.tar.gz#/corelibs-xctest .tar.gz
9
- Source5: https://github.com/apple/swift-package-manager /archive/swift-%{ swift_version }.tar.gz#/package-manager .tar.gz
10
- Source6: https://github.com/apple/swift-llbuild /archive/swift-%{ swift_version }.tar.gz#/llbuild .tar.gz
4
+ Source0: https://github.com/apple/indexstore-db /archive/swift-%{swift_version }.tar.gz#/indexstore-db .tar.gz
5
+ Source1: https://github.com/apple/llvm-project /archive/swift-%{swift_version }.tar.gz#/llvm-project .tar.gz
6
+ Source2: https://github.com/apple/sourcekit-lsp /archive/swift-%{swift_version }.tar.gz#/sourcekit-lsp .tar.gz
7
+ Source3: https://github.com/apple/swift-argument-parser /archive/%{ swift_argument_parser_version }.tar.gz#/swift-argument-parser .tar.gz
8
+ Source4: https://github.com/apple/swift-asn1 /archive/%{ swift_asn1_version }.tar.gz#/swift-asn1 .tar.gz
9
+ Source5: https://github.com/apple/swift-atomics /archive/%{ swift_atomics_version }.tar.gz#/swift-atomics .tar.gz
10
+ Source6: https://github.com/apple/swift-certificates /archive/%{ swift_certificates_version }.tar.gz#/swift-certificates .tar.gz
11
11
Source7: https://github.com/apple/swift-cmark/archive/swift-%{swift_version }.tar.gz#/cmark.tar.gz
12
- Source8: https://github.com/apple/swift-xcode-playground-support/archive/swift-%{swift_version }.tar.gz#/swift-xcode-playground-support.tar.gz
13
- Source9: https://github.com/apple/sourcekit-lsp/archive/swift-%{swift_version }.tar.gz#/sourcekit-lsp.tar.gz
14
- Source10: https://github.com/apple/indexstore-db/archive/swift-%{swift_version }.tar.gz#/indexstore-db.tar.gz
15
- Source11: https://github.com/apple/llvm-project/archive/swift-%{swift_version }.tar.gz#/llvm-project.tar.gz
16
- Source12: https://github.com/apple/swift-tools-support-core/archive/swift-%{swift_version }.tar.gz#/swift-tools-support-core.tar.gz
17
- Source13: https://github.com/apple/swift-argument-parser/archive/%{swift_argument_parser_version }.tar.gz#/swift-argument-parser.tar.gz
18
- Source14: https://github.com/apple/swift-driver/archive/swift-%{swift_version }.tar.gz#/swift-driver.tar.gz
19
- Source15: https://github.com/unicode-org/icu/archive/release-%{icu_version }.tar.gz#/icu.tar.gz
20
- Source16: https://github.com/apple/swift-syntax/archive/swift-%{swift_version }.zip#/swift-syntax.tar.gz
21
- Source17: https://github.com/jpsim/Yams/archive/%{yams_version }.tar.gz#/yams.tar.gz
22
- Source18: https://github.com/apple/swift-crypto/archive/refs/tags/%{swift_crypto_version }.tar.gz#/swift-crypto.tar.gz
23
- Source19: https://github.com/ninja-build/ninja/archive/refs/tags/v%{ninja_version }.tar.gz#/ninja.tar.gz
24
- Source20: https://github.com/KitWare/CMake/archive/refs/tags/v%{cmake_version }.tar.gz#/cmake.tar.gz
25
- Source21: https://github.com/apple/swift-atomics/archive/%{swift_atomics_version }.tar.gz#/swift-atomics.tar.gz
26
- Source22: https://github.com/apple/swift-cmark/archive/swift-%{swift_version }-gfm.tar.gz#/swift-cmark-gfm.tar.gz
27
- Source23: https://github.com/apple/swift-docc/archive/swift-%{swift_version }.tar.gz#/swift-docc.tar.gz
28
- Source24: https://github.com/apple/swift-docc-render-artifact/archive/swift-%{swift_version }.tar.gz#/swift-docc-render-artifact.tar.gz
29
- Source25: https://github.com/apple/swift-docc-symbolkit/archive/swift-%{swift_version }.tar.gz#/swift-docc-symbolkit.tar.gz
30
- Source26: https://github.com/apple/swift-collections/archive/%{swift_collections_version }.tar.gz#/swift-collections.tar.gz
31
- Source27: https://github.com/apple/swift-numerics/archive/%{swift_numerics_version }.tar.gz#/swift-numerics.tar.gz
32
- Source28: https://github.com/apple/swift-system/archive/%{swift_system_version }.tar.gz#/swift-system.tar.gz
33
- Source29: https://github.com/apple/swift-nio/archive/%{swift_nio_version }.tar.gz#/swift-nio.tar.gz
34
- Source30: https://github.com/apple/swift-nio-ssl/archive/%{swift_nio_ssl_version }.tar.gz#/swift-nio-ssl.tar.gz
35
- Source31: https://github.com/apple/swift-format/archive/swift-%{swift_version }.tar.gz#/swift-format.tar.gz
36
- Source32: https://github.com/apple/swift-lmdb/archive/swift-%{swift_version }.tar.gz#/swift-lmdb.tar.gz
37
- Source33: https://github.com/apple/swift-markdown/archive/swift-%{swift_version }.tar.gz#/swift-markdown.tar.gz
38
- Source34: https://github.com/apple/swift-experimental-string-processing/archive/swift-%{swift_version }.tar.gz#/swift-experimental-string-processing.tar.gz
12
+ Source8: https://github.com/apple/swift-collections/archive/%{swift_collections_version }.tar.gz#/swift-collections.tar.gz
13
+ Source9: https://github.com/apple/swift-corelibs-foundation/archive/swift-%{swift_version }.tar.gz#/corelibs-foundation.tar.gz
14
+ Source10: https://github.com/apple/swift-corelibs-libdispatch/archive/swift-%{swift_version }.tar.gz#/corelibs-libdispatch.tar.gz
15
+ Source11: https://github.com/apple/swift-corelibs-xctest/archive/swift-%{swift_version }.tar.gz#/corelibs-xctest.tar.gz
16
+ Source12: https://github.com/apple/swift-crypto/archive/refs/tags/%{swift_crypto_version }.tar.gz#/swift-crypto.tar.gz
17
+ Source13: https://github.com/apple/swift-docc-render-artifact/archive/swift-%{swift_version }.tar.gz#/swift-docc-render-artifact.tar.gz
18
+ Source14: https://github.com/apple/swift-docc-symbolkit/archive/swift-%{swift_version }.tar.gz#/swift-docc-symbolkit.tar.gz
19
+ Source15: https://github.com/apple/swift-docc/archive/swift-%{swift_version }.tar.gz#/swift-docc.tar.gz
20
+ Source16: https://github.com/apple/swift-driver/archive/swift-%{swift_version }.tar.gz#/swift-driver.tar.gz
21
+ Source17: https://github.com/apple/swift-experimental-string-processing/archive/swift-%{swift_version }.tar.gz#/swift-experimental-string-proce
22
+ Source18: https://github.com/apple/swift-format/archive/swift-%{swift_version }.tar.gz#/swift-format.tar.gz
23
+ Source19: https://github.com/apple/swift-integration-tests/archive/swift-%{swift_version }.tar.gz#/swift-integration-tests.tar.gz
24
+ Source20: https://github.com/apple/swift-llbuild/archive/swift-%{swift_version }.tar.gz#/llbuild.tar.gz
25
+ Source21: https://github.com/apple/swift-llvm-bindings/archive/swift-%{swift_version }.tar.gz#/swift-llvm-bindings.tar.gz
26
+ Source22: https://github.com/apple/swift-lmdb/archive/swift-%{swift_version }.tar.gz#/swift-lmdb.tar.gz
27
+ Source23: https://github.com/apple/swift-markdown/archive/swift-%{swift_version }.tar.gz#/swift-markdown.tar.gz
28
+ Source24: https://github.com/apple/swift-nio-ssl/archive/%{swift_nio_ssl_version }.tar.gz#/swift-nio-ssl.tar.gz
29
+ Source25: https://github.com/apple/swift-nio/archive/%{swift_nio_version }.tar.gz#/swift-nio.tar.gz
30
+ Source26: https://github.com/apple/swift-numerics/archive/%{swift_numerics_version }.tar.gz#/swift-numerics.tar.gz
31
+ Source27: https://github.com/apple/swift-package-manager/archive/swift-%{swift_version }.tar.gz#/package-manager.tar.gz
32
+ Source28: https://github.com/apple/swift-syntax/archive/swift-%{swift_version }.zip#/swift-syntax.tar.gz
33
+ Source29: https://github.com/apple/swift-system/archive/%{swift_system_version }.tar.gz#/swift-system.tar.gz
34
+ Source30: https://github.com/apple/swift-tools-support-core/archive/swift-%{swift_version }.tar.gz#/swift-tools-support-core.tar.gz
35
+ Source31: https://github.com/apple/swift-xcode-playground-support/archive/swift-%{swift_version }.tar.gz#/swift-xcode-playground-support.tar.gz
36
+ Source32: https://github.com/apple/swift/archive/swift-%{swift_version }.tar.gz#/swift.tar.gz
37
+ Source33: https://github.com/jpsim/Yams/archive/%{yams_version }.tar.gz#/yams.tar.gz
38
+ Source34: https://github.com/KitWare/CMake/archive/refs/tags/v%{cmake_version }.tar.gz#/cmake.tar.gz
39
+ Source35: https://github.com/ninja-build/ninja/archive/refs/tags/v%{ninja_version }.tar.gz#/ninja.tar.gz
40
+ Source36: https://github.com/unicode-org/icu/archive/release-%{icu_version }.tar.gz#/icu.tar.gz
39
41
40
- Patch0: patches/hwasan_symbolize.patch
41
42
42
43
BuildRequires: clang
43
44
BuildRequires: curl-devel
@@ -59,13 +60,16 @@ BuildRequires: python-devel
59
60
BuildRequires: python-pkgconfig
60
61
BuildRequires: python-six
61
62
BuildRequires: python3-devel
63
+ BuildRequires: python3-psutil
62
64
BuildRequires: rsync
63
65
BuildRequires: sqlite-devel
64
66
BuildRequires: swig
65
67
BuildRequires: tzdata
68
+ BuildRequires: unzip
66
69
BuildRequires: uuid-devel
67
70
BuildRequires: wget
68
71
BuildRequires: which
72
+ BuildRequires: zip
69
73
70
74
Requires: binutils
71
75
Requires: gcc
@@ -91,7 +95,7 @@ ExclusiveArch: x86_64 aarch64
91
95
%include description.inc
92
96
93
97
%prep
94
- %setup -q -c -n %{swift_source_location } -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 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27 -a 28 -a 29 -a 30 -a 31 -a 32 -a 33 -a 34
98
+ %setup -q -c -n %{swift_source_location } -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 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27 -a 28 -a 29 -a 30 -a 31 -a 32 -a 33 -a 34 -a 35 -a 36
95
99
96
100
# The Swift build script requires directories to be named
97
101
# in a specific way so renaming the source directories is
@@ -103,9 +107,10 @@ mv llvm-project-swift-%{swift_version} llvm-project
103
107
mv ninja-%{ninja_version } ninja
104
108
mv sourcekit-lsp-swift-%{swift_version } sourcekit-lsp
105
109
mv swift-argument-parser-%{swift_argument_parser_version } swift-argument-parser
110
+ mv swift-asn1-%{swift_asn1_version } swift-asn1
106
111
mv swift-atomics-%{swift_atomics_version } swift-atomics
112
+ mv swift-certificates-%{swift_certificates_version } swift-certificates
107
113
mv swift-cmark-swift-%{swift_version } cmark
108
- mv swift-cmark-swift-%{swift_version }-gfm swift-cmark-gfm
109
114
mv swift-collections-%{swift_collections_version } swift-collections
110
115
mv swift-corelibs-foundation-swift-%{swift_version } swift-corelibs-foundation
111
116
mv swift-corelibs-libdispatch-swift-%{swift_version } swift-corelibs-libdispatch
@@ -115,9 +120,11 @@ mv swift-docc-render-artifact-swift-%{swift_version} swift-docc-render-artifact
115
120
mv swift-docc-swift-%{swift_version } swift-docc
116
121
mv swift-docc-symbolkit-swift-%{swift_version } swift-docc-symbolkit
117
122
mv swift-driver-swift-%{swift_version } swift-driver
123
+ mv swift-experimental-string-processing-swift-%{swift_version } swift-experimental-string-processing
118
124
mv swift-format-swift-%{swift_version } swift-format
119
125
mv swift-integration-tests-swift-%{swift_version } swift-integration-tests
120
126
mv swift-llbuild-swift-%{swift_version } llbuild
127
+ mv swift-llvm-bindings-swift-%{swift_version } swift-llvm-bindings
121
128
mv swift-lmdb-swift-%{swift_version } swift-lmdb
122
129
mv swift-markdown-swift-%{swift_version } swift-markdown
123
130
mv swift-nio-%{swift_nio_version } swift-nio
@@ -130,10 +137,6 @@ mv swift-system-%{swift_system_version} swift-system
130
137
mv swift-tools-support-core-swift-%{swift_version } swift-tools-support-core
131
138
mv swift-xcode-playground-support-swift-%{swift_version } swift-xcode-playground-support
132
139
mv Yams-%{yams_version } yams
133
- mv swift-experimental-string-processing-swift-%{swift_version } swift-experimental-string-processing
134
-
135
- # Adjust python version hwasan_symbolize
136
- %patch0 -p1
137
140
138
141
%build
139
142
export VERBOSE=1
0 commit comments