@@ -59,114 +59,105 @@ Source32: https://github.com/apple/swift-lmdb/archive/swift-%{swift_versio
59
59
Source33: https://github.com/apple/swift-markdown/archive/swift-%{swift_version }.tar.gz#/swift-markdown.tar.gz
60
60
61
61
Patch0: nocyclades.patch
62
- Patch1: unusedvariable.patch
63
-
62
+ Patch1: unusedvariable.patch
63
+
64
64
BuildRequires: clang
65
- BuildRequires: swig
66
- BuildRequires: rsync
67
- BuildRequires: python3
68
- BuildRequires: python3-devel
69
- BuildRequires: python3-setuptools
70
- BuildRequires: python3-distro
71
65
BuildRequires: libbsd-devel
72
- BuildRequires: libxml2-devel
73
- BuildRequires: libsqlite3x-devel
74
- BuildRequires: libdispatch-devel
75
66
BuildRequires: libcurl-devel
76
- BuildRequires: libuuid -devel
67
+ BuildRequires: libdispatch -devel
77
68
BuildRequires: libedit-devel
78
69
BuildRequires: libicu-devel
70
+ BuildRequires: libsqlite3x-devel
71
+ BuildRequires: libuuid-devel
72
+ BuildRequires: libxml2-devel
79
73
BuildRequires: perl-podlators
74
+ BuildRequires: python3
75
+ BuildRequires: python3-devel
76
+ BuildRequires: python3-distro
77
+ BuildRequires: python3-setuptools
80
78
BuildRequires: python3-six
81
- BuildRequires: /usr/bin/pathfix.py
82
- BuildRequires: cmake
79
+ BuildRequires: rsync
80
+ BuildRequires: swig
83
81
%if ! 0%{?el8 }
84
82
BuildRequires: python-unversioned-command
85
83
%endif
84
+ BuildRequires: /usr/bin/pathfix.py
86
85
87
- Requires: glibc-devel
88
86
Requires: binutils-gold
89
87
Requires: gcc
90
- Requires: ncurses -devel
88
+ Requires: glibc -devel
91
89
Requires: ncurses-compat-libs
90
+ Requires: ncurses-devel
92
91
93
- ExclusiveArch: x86_64 aarch64
92
+ ExclusiveArch: x86_64 aarch64
94
93
95
94
Provides: swiftlang = %{version }-%{release }
96
95
97
96
%description
98
- Swift is a general-purpose programming language built using
99
- a modern approach to safety, performance, and software design
97
+ Swift is a general-purpose programming language built using
98
+ a modern approach to safety, performance, and software design
100
99
patterns.
101
100
102
- The goal of the Swift project is to create the best available
103
- language for uses ranging from systems programming, to mobile
104
- and desktop apps, scaling up to cloud services. Most
105
- importantly, Swift is designed to make writing and maintaining
106
- correct programs easier for the developer.
107
-
101
+ The goal of the Swift project is to create the best available
102
+ language for uses ranging from systems programming, to mobile
103
+ and desktop apps, scaling up to cloud services. Most
104
+ importantly, Swift is designed to make writing and maintaining
105
+ correct programs easier for the developer.
108
106
109
107
%prep
110
108
%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
111
109
# The Swift build script requires directories to be named
112
110
# in a specific way so renaming the source directories is
113
111
# necessary
114
- mv swift-cmark-swift-%{swift_version } cmark
115
- mv swift-corelibs-foundation-swift-%{swift_version } swift-corelibs-foundation
116
- mv swift-corelibs-libdispatch-swift-%{swift_version } swift-corelibs-libdispatch
117
- mv swift-corelibs-xctest-swift-%{swift_version } swift-corelibs-xctest
118
- mv swift-integration-tests-swift-%{swift_version } swift-integration-tests
119
- mv swift-llbuild-swift-%{swift_version } llbuild
120
- mv swift-package-manager-swift-%{swift_version } swiftpm
121
- mv swift-swift-%{swift_version } swift
122
- mv swift-xcode-playground-support-swift-%{swift_version } swift-xcode-playground-support
123
- mv sourcekit-lsp-swift-%{swift_version } sourcekit-lsp
112
+ mv CMake-%{cmake_version } cmake
113
+ mv icu-release-%{icu_version } icu
124
114
mv indexstore-db-swift-%{swift_version } indexstore-db
125
115
mv llvm-project-swift-%{swift_version } llvm-project
126
- mv swift-syntax-swift-%{swift_version } swift-syntax
127
- mv swift-tools-support-core-swift-%{swift_version } swift-tools-support-core
128
- mv swift-argument-parser-%{swift_argument_parser_version } swift-argument-parser
129
- mv swift-driver-swift-%{swift_version } swift-driver
130
- mv swift-crypto-%{swift_crypto_version } swift-crypto
131
116
mv ninja-%{ninja_version } ninja
132
- mv CMake-%{cmake_version } cmake
117
+ mv ninja-%{ninja_version } ninja
118
+ mv sourcekit-lsp-swift-%{swift_version } sourcekit-lsp
119
+ mv swift-argument-parser-%{swift_argument_parser_version } swift-argument-parser
133
120
mv swift-atomics-%{swift_atomics_version } swift-atomics
121
+ mv swift-cmark-swift-%{swift_version } cmark
134
122
mv swift-cmark-swift-%{swift_version }-gfm swift-cmark-gfm
135
- mv swift-docc-swift-%{swift_version } swift-docc
123
+ mv swift-collections-%{swift_collections_version } swift-collections
124
+ mv swift-corelibs-foundation-swift-%{swift_version } swift-corelibs-foundation
125
+ mv swift-corelibs-libdispatch-swift-%{swift_version } swift-corelibs-libdispatch
126
+ mv swift-corelibs-xctest-swift-%{swift_version } swift-corelibs-xctest
127
+ mv swift-crypto-%{swift_crypto_version } swift-crypto
136
128
mv swift-docc-render-artifact-swift-%{swift_version } swift-docc-render-artifact
129
+ mv swift-docc-swift-%{swift_version } swift-docc
137
130
mv swift-docc-symbolkit-swift-%{swift_version } swift-docc-symbolkit
138
- mv swift-collections-%{swift_collections_version } swift-collections
139
- mv swift-numerics-%{swift_numerics_version } swift-numerics
140
- mv swift-system-%{swift_system_version } swift-system
141
- mv swift-nio-%{swift_nio_version } swift-nio
142
- mv swift-nio-ssl-%{swift_nio_ssl_version } swift-nio-ssl
131
+ mv swift-driver-swift-%{swift_version } swift-driver
143
132
mv swift-format-swift-%{swift_version } swift-format
133
+ mv swift-integration-tests-swift-%{swift_version } swift-integration-tests
134
+ mv swift-llbuild-swift-%{swift_version } llbuild
144
135
mv swift-lmdb-swift-%{swift_version } swift-lmdb
145
136
mv swift-markdown-swift-%{swift_version } swift-markdown
146
-
147
- # ICU
148
- mv icu-release-%{icu_version } icu
149
-
150
- # Yams
137
+ mv swift-nio-%{swift_nio_version } swift-nio
138
+ mv swift-nio-ssl-%{swift_nio_ssl_version } swift-nio-ssl
139
+ mv swift-numerics-%{swift_numerics_version } swift-numerics
140
+ mv swift-package-manager-swift-%{swift_version } swiftpm
141
+ mv swift-swift-%{swift_version } swift
142
+ mv swift-syntax-swift-%{swift_version } swift-syntax
143
+ mv swift-system-%{swift_system_version } swift-system
144
+ mv swift-tools-support-core-swift-%{swift_version } swift-tools-support-core
145
+ mv swift-xcode-playground-support-swift-%{swift_version } swift-xcode-playground-support
151
146
mv Yams-%{yams_version } yams
152
147
153
- # Ninja
154
- mv ninja-%{ninja_version } ninja
155
-
156
148
# Remove Cyclades as it has been removed from the Linux kernel
157
149
%patch0 -p0
158
150
159
151
# Temp patch to test libdispatch issue with clang 13
160
152
%patch1 -p0
161
153
162
- # Fix python to python3
154
+ # Fix python to python3
163
155
pathfix.py -pni "%{__python3} %{py3_shbang_opts }" swift/utils/api_checker/swift-api-checker.py
164
156
pathfix.py -pni "%{__python3} %{py3_shbang_opts }" llvm-project/compiler-rt/lib/hwasan/scripts/hwasan_symbolize
165
157
166
-
167
158
%build
168
159
export VERBOSE=1
169
- # Before Fedora 34, we may not have /usr/bin/python, so we
160
+ # Before Fedora 34, we may not have /usr/bin/python, so we
170
161
# roll our own because the build script expects there to be one.
171
162
%if 0%{?fedora } < 34 || 0%{?el8 }
172
163
mkdir $PWD /binforpython
@@ -177,7 +168,6 @@ export PATH=$PWD/binforpython:$PATH
177
168
# Here we go!
178
169
swift/utils/build-script --preset= buildbot_linux,no_assertions,no_test install_destdir= %{_builddir } installable_package= %{_builddir }/swift-%{version }-%{linux_version }.tar.gz
179
170
180
-
181
171
%install
182
172
mkdir -p %{buildroot }%{_libexecdir }/swift/%{package_version }
183
173
cp -r %{_builddir }/usr/* %{buildroot }%{_libexecdir }/swift/%{package_version }
@@ -192,7 +182,6 @@ cp %{_builddir}/usr/share/man/man1/swift.1 %{buildroot}%{_mandir}/man1/swift.1
192
182
# how the Swift binaries use RPATH
193
183
export QA_SKIP_RPATHS= 1
194
184
195
-
196
185
%files
197
186
%license swift/LICENSE.txt
198
187
%{_bindir }/swift
@@ -201,9 +190,7 @@ export QA_SKIP_RPATHS=1
201
190
%{_mandir }/man1/swift.1.gz
202
191
%{_libexecdir }/swift/
203
192
204
-
205
193
%post -p /sbin/ldconfig
206
194
%postun -p /sbin/ldconfig
207
195
208
-
209
196
%changelog
0 commit comments