11%include global.inc
22%include metadata.inc
33
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
1111Source7: 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
3941
40- Patch0: patches/hwasan_symbolize.patch
4142
4243BuildRequires: clang
4344BuildRequires: curl-devel
@@ -59,13 +60,16 @@ BuildRequires: python-devel
5960BuildRequires: python-pkgconfig
6061BuildRequires: python-six
6162BuildRequires: python3-devel
63+ BuildRequires: python3-psutil
6264BuildRequires: rsync
6365BuildRequires: sqlite-devel
6466BuildRequires: swig
6567BuildRequires: tzdata
68+ BuildRequires: unzip
6669BuildRequires: uuid-devel
6770BuildRequires: wget
6871BuildRequires: which
72+ BuildRequires: zip
6973
7074Requires: binutils
7175Requires: gcc
@@ -91,7 +95,7 @@ ExclusiveArch: x86_64 aarch64
9195%include description.inc
9296
9397%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
9599
96100# The Swift build script requires directories to be named
97101# in a specific way so renaming the source directories is
@@ -103,9 +107,10 @@ mv llvm-project-swift-%{swift_version} llvm-project
103107mv ninja-%{ninja_version } ninja
104108mv sourcekit-lsp-swift-%{swift_version } sourcekit-lsp
105109mv swift-argument-parser-%{swift_argument_parser_version } swift-argument-parser
110+ mv swift-asn1-%{swift_asn1_version } swift-asn1
106111mv swift-atomics-%{swift_atomics_version } swift-atomics
112+ mv swift-certificates-%{swift_certificates_version } swift-certificates
107113mv swift-cmark-swift-%{swift_version } cmark
108- mv swift-cmark-swift-%{swift_version }-gfm swift-cmark-gfm
109114mv swift-collections-%{swift_collections_version } swift-collections
110115mv swift-corelibs-foundation-swift-%{swift_version } swift-corelibs-foundation
111116mv 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
115120mv swift-docc-swift-%{swift_version } swift-docc
116121mv swift-docc-symbolkit-swift-%{swift_version } swift-docc-symbolkit
117122mv swift-driver-swift-%{swift_version } swift-driver
123+ mv swift-experimental-string-processing-swift-%{swift_version } swift-experimental-string-processing
118124mv swift-format-swift-%{swift_version } swift-format
119125mv swift-integration-tests-swift-%{swift_version } swift-integration-tests
120126mv swift-llbuild-swift-%{swift_version } llbuild
127+ mv swift-llvm-bindings-swift-%{swift_version } swift-llvm-bindings
121128mv swift-lmdb-swift-%{swift_version } swift-lmdb
122129mv swift-markdown-swift-%{swift_version } swift-markdown
123130mv swift-nio-%{swift_nio_version } swift-nio
@@ -130,10 +137,6 @@ mv swift-system-%{swift_system_version} swift-system
130137mv swift-tools-support-core-swift-%{swift_version } swift-tools-support-core
131138mv swift-xcode-playground-support-swift-%{swift_version } swift-xcode-playground-support
132139mv 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
137140
138141%build
139142export VERBOSE=1
0 commit comments