Skip to content

Commit f0e3df6

Browse files
authored
Merge pull request swiftlang#42 from apple/replace-swift-lang-with-swiftlang
Update the filename from swift-lang to swiftlang
2 parents ff05603 + 6f21c38 commit f0e3df6

19 files changed

+41
-41
lines changed

platforms/Linux/Fedora/34/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ RUN yum install -y rpmdevtools yum-utils
1010

1111
# Add the spec
1212
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
13-
ADD swift-lang.spec /root/rpmbuild/SPECS/swift-lang.spec
13+
ADD swiftlang.spec /root/rpmbuild/SPECS/swiftlang.spec
1414

1515

1616
# Install all the dependencies needed to build Swift from the spec file itself
17-
RUN yum-builddep -y /root/rpmbuild/SPECS/swift-lang.spec
17+
RUN yum-builddep -y /root/rpmbuild/SPECS/swiftlang.spec
1818

1919
# Get the sources for Swift as defined in the spec file
20-
RUN spectool -g -R /root/rpmbuild/SPECS/swift-lang.spec
20+
RUN spectool -g -R /root/rpmbuild/SPECS/swiftlang.spec
2121

2222
# Add the patches
2323
ADD patches/*.patch /root/rpmbuild/SOURCES/

platforms/Linux/Fedora/34/build_rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yum -y update
1919
# will have two files: a SRPM file which contains the source files
2020
# as well as a regular RPM file that can be installed via `dnf' or `yum'
2121
pushd $HOME/rpmbuild/SPECS
22-
rpmbuild -ba ./swift-lang.spec 2>&1 | tee $HOME/build-output.txt
22+
rpmbuild -ba ./swiftlang.spec 2>&1 | tee $HOME/build-output.txt
2323
popd
2424

2525
# Include the build log which can be used to determine what went

platforms/Linux/Fedora/34/swift-lang.spec renamed to platforms/Linux/Fedora/34/swiftlang.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%global swift_crypto_version 1.1.5
99
%global ninja_version 1.10.2
1010

11-
Name: swift-lang
11+
Name: swiftlang
1212
Version: 5.5
1313
Release: 1%{?dist}
1414
Summary: Apple's Swift programming language

platforms/Linux/Fedora/35/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ RUN yum install -y rpmdevtools yum-utils
1010

1111
# Add the spec
1212
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
13-
ADD swift-lang.spec /root/rpmbuild/SPECS/swift-lang.spec
13+
ADD swiftlang.spec /root/rpmbuild/SPECS/swiftlang.spec
1414

1515

1616
# Install all the dependencies needed to build Swift from the spec file itself
17-
RUN yum-builddep -y /root/rpmbuild/SPECS/swift-lang.spec
17+
RUN yum-builddep -y /root/rpmbuild/SPECS/swiftlang.spec
1818

1919
# Get the sources for Swift as defined in the spec file
20-
RUN spectool -g -R /root/rpmbuild/SPECS/swift-lang.spec
20+
RUN spectool -g -R /root/rpmbuild/SPECS/swiftlang.spec
2121

2222
# Add the patches
2323
ADD patches/*.patch /root/rpmbuild/SOURCES/

platforms/Linux/Fedora/35/build_rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yum -y update
1919
# will have two files: a SRPM file which contains the source files
2020
# as well as a regular RPM file that can be installed via `dnf' or `yum'
2121
pushd $HOME/rpmbuild/SPECS
22-
rpmbuild -ba ./swift-lang.spec 2>&1 | tee $HOME/build-output.txt
22+
rpmbuild -ba ./swiftlang.spec 2>&1 | tee $HOME/build-output.txt
2323
popd
2424

2525
# Include the build log which can be used to determine what went

platforms/Linux/Fedora/35/swift-lang.spec renamed to platforms/Linux/Fedora/35/swiftlang.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%global swift_crypto_version 1.1.5
99
%global ninja_version 1.10.2
1010

11-
Name: swift-lang
11+
Name: swiftlang
1212
Version: 5.5
1313
Release: 1%{?dist}
1414
Summary: Apple's Swift programming language

platforms/Linux/Fedora/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Builds the container image
2323
### `patches/*.patch`
2424
Any post-release patches that have not yet been merged upstream that are
2525
temporarily necessary to build Swift.
26-
### `swift-lang.spec`
26+
### `swiftlang.spec`
2727
The "recipe" the RPM packaging tools use to build Swift.
2828

2929
## Building Swift Via Linux Containers
@@ -54,17 +54,17 @@ locally
5454
RPMs are built in the `$HOME/rpmbuild` directory, which has several subdirectories
5555
for specific purposes.
5656
1. `mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}`
57-
2. `cp swift-lang.spec $HOME/rpmbuild/SPECS`
57+
2. `cp swiftlang.spec $HOME/rpmbuild/SPECS`
5858
3. `cp *.patch $HOME/rpmbuild/SOURCES`
5959
#### Install all the dependencies necessary to build Swift:
60-
4. `sudo dnf builddep -y $HOME/rpmbuild/SPECS/swift-lang.spec`
60+
4. `sudo dnf builddep -y $HOME/rpmbuild/SPECS/swiftlang.spec`
6161
#### Download the Swift source tarballs:
62-
5. `spectool -g -R $HOME/rpmbuild/SPECS/swift-lang.spec`
62+
5. `spectool -g -R $HOME/rpmbuild/SPECS/swiftlang.spec`
6363
### Building Swift
6464
The RPM tools perform both building and packaging. _This process may take several
6565
hours depending on the hardware Fedora is running on._
6666

67-
`rpmbuild -ba $HOME/rpmbuild/SPECS/swift-lang.spec 2>&1 | tee $HOME/build-output.txt`
67+
`rpmbuild -ba $HOME/rpmbuild/SPECS/swiftlang.spec 2>&1 | tee $HOME/build-output.txt`
6868

6969
If there were no errors, the resulting Swift RPM file will be located in
7070
`$HOME/rpmbuild/RPMS/` in a subdirectory for the current processor architecture
@@ -73,8 +73,8 @@ If there were no errors, the resulting Swift RPM file will be located in
7373
## Installing Swift
7474
### Name format
7575
If Swift was built successfully there should
76-
be a file with the name format similar to `swift-lang-5.5-1.fc34.x86_64.rpm` where
77-
`5.5` is the version of Swift specified in `swift-lang.spec`, `fc34` is the version
76+
be a file with the name format similar to `swiftlang-5.5-1.fc34.x86_64.rpm` where
77+
`5.5` is the version of Swift specified in `swiftlang.spec`, `fc34` is the version
7878
of Fedora that was used to build Swift, and `x86_64` is the processor architecture.
7979

8080
### Note about Fedora versions
@@ -85,6 +85,6 @@ a Swift RPM built for Fedora 34 can only be installed on Fedora 34.
8585
To install the Swift RPM, change to the directory that contains the RPM file and
8686
run `sudo dnf install` _the Swift RPM file_ e.g.
8787

88-
`sudo dnf install ./swift-lang-5.5-1.fc34.x86_64.rpm`
88+
`sudo dnf install ./swiftlang-5.5-1.fc34.x86_64.rpm`
8989

9090

platforms/Linux/Fedora/rawhide/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ RUN yum install -y rpmdevtools yum-utils
1010

1111
# Add the spec
1212
RUN mkdir -p /root/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
13-
ADD swift-lang.spec /root/rpmbuild/SPECS/swift-lang.spec
13+
ADD swiftlang.spec /root/rpmbuild/SPECS/swiftlang.spec
1414

1515

1616
# Install all the dependencies needed to build Swift from the spec file itself
17-
RUN yum-builddep -y /root/rpmbuild/SPECS/swift-lang.spec
17+
RUN yum-builddep -y /root/rpmbuild/SPECS/swiftlang.spec
1818

1919
# Get the sources for Swift as defined in the spec file
20-
RUN spectool -g -R /root/rpmbuild/SPECS/swift-lang.spec
20+
RUN spectool -g -R /root/rpmbuild/SPECS/swiftlang.spec
2121

2222
# Add the patches
2323
ADD patches/*.patch /root/rpmbuild/SOURCES/

platforms/Linux/Fedora/rawhide/build_rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ yum -y update
1919
# will have two files: a SRPM file which contains the source files
2020
# as well as a regular RPM file that can be installed via `dnf' or `yum'
2121
pushd $HOME/rpmbuild/SPECS
22-
rpmbuild -ba ./swift-lang.spec 2>&1 | tee $HOME/build-output.txt
22+
rpmbuild -ba ./swiftlang.spec 2>&1 | tee $HOME/build-output.txt
2323
popd
2424

2525
# Include the build log which can be used to determine what went

platforms/Linux/Fedora/rawhide/swift-lang.spec renamed to platforms/Linux/Fedora/rawhide/swiftlang.spec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%global swift_crypto_version 1.1.5
99
%global ninja_version 1.10.2
1010

11-
Name: swift-lang
11+
Name: swiftlang
1212
Version: 5.5
1313
Release: 1%{?dist}
1414
Summary: Apple's Swift programming language

platforms/Linux/amazonlinux/2/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ RUN yum install -y rpmdevtools yum-utils createrepo
1818
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
1919

2020
# Optimization: Install all the dependencies needed to build Swift from the spec file itself
21-
ADD swift-lang.spec /tmp/swift-lang.spec
21+
ADD swiftlang.spec /tmp/swiftlang.spec
2222
RUN touch /tmp/metadata.inc # fake metadata is okay for this optimization
23-
RUN cd /tmp && yum-builddep -y swift-lang.spec
23+
RUN cd /tmp && yum-builddep -y swiftlang.spec

platforms/Linux/amazonlinux/2/build_rpm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ yum update -y
2323
mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
2424

2525
# Add the spec
26-
cp swift-lang.spec $HOME/rpmbuild/SPECS/
26+
cp swiftlang.spec $HOME/rpmbuild/SPECS/
2727
# Add the metadata for this swift version
2828
cp /shared/metadata.inc $HOME/rpmbuild/SPECS/
2929
# Add any patches
3030
cp patches/*.patch $HOME/rpmbuild/SOURCES/
3131

3232
pushd $HOME/rpmbuild/SPECS
3333
# install all the dependencies needed to build Swift from the spec file itself
34-
yum-builddep -y ./swift-lang.spec
34+
yum-builddep -y ./swiftlang.spec
3535
# get the sources for Swift as defined in the spec file
36-
spectool -g -R ./swift-lang.spec
36+
spectool -g -R ./swiftlang.spec
3737
# Now we proceed to build Swift. If this is successful, we
3838
# will have two files: a SRPM file which contains the source files
3939
# as well as a regular RPM file that can be installed via `dnf' or `yum'
40-
rpmbuild -ba ./swift-lang.spec 2>&1 | tee /root/build-output.txt
40+
rpmbuild -ba ./swiftlang.spec 2>&1 | tee /root/build-output.txt
4141
popd
4242

4343
# Include the build log which can be used to determine what went

platforms/Linux/centos/7/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@ RUN yum install -y rpmdevtools yum-utils createrepo
1818
RUN yum install -y epel-release centos-release-scl
1919

2020
# Optimization: Install all the dependencies needed to build Swift from the spec file itself
21-
ADD swift-lang.spec /tmp/swift-lang.spec
21+
ADD swiftlang.spec /tmp/swiftlang.spec
2222
RUN touch /tmp/metadata.inc # fake metadata is okay for this optimization
23-
RUN cd /tmp && yum-builddep -y swift-lang.spec
23+
RUN cd /tmp && yum-builddep -y swiftlang.spec

platforms/Linux/centos/7/build_rpm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@ yum update -y
2323
mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
2424

2525
# Add the spec
26-
cp swift-lang.spec $HOME/rpmbuild/SPECS/
26+
cp swiftlang.spec $HOME/rpmbuild/SPECS/
2727
# Add the metadata for this swift version
2828
cp /shared/metadata.inc $HOME/rpmbuild/SPECS/
2929
# Add any patches
3030
cp patches/*.patch $HOME/rpmbuild/SOURCES/
3131

3232
pushd $HOME/rpmbuild/SPECS
3333
# install all the dependencies needed to build Swift from the spec file itself
34-
yum-builddep -y ./swift-lang.spec
34+
yum-builddep -y ./swiftlang.spec
3535
# Workaround to support clang-3.5 or a later version
3636
echo -e ". /opt/rh/sclo-git25/enable\n. /opt/rh/llvm-toolset-7/enable\n. /opt/rh/devtoolset-8/enable\n" >> $HOME/.bashrc
3737
source $HOME/.bashrc
3838
sed -i -e 's/\*__block/\*__libc_block/g' /usr/include/unistd.h
3939
# get the sources for Swift as defined in the spec file
40-
spectool -g -R ./swift-lang.spec
40+
spectool -g -R ./swiftlang.spec
4141
# Now we proceed to build Swift. If this is successful, we
4242
# will have two files: a SRPM file which contains the source files
4343
# as well as a regular RPM file that can be installed via `dnf' or `yum'
44-
rpmbuild -ba ./swift-lang.spec 2>&1 | tee /root/build-output.txt
44+
rpmbuild -ba ./swiftlang.spec 2>&1 | tee /root/build-output.txt
4545
popd
4646

4747
# Include the build log which can be used to determine what went

platforms/Linux/centos/8/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.n
1919
RUN yum config-manager --set-enabled powertools
2020

2121
# Optimization: Install all the dependencies needed to build Swift from the spec file itself
22-
ADD swift-lang.spec /tmp/swift-lang.spec
22+
ADD swiftlang.spec /tmp/swiftlang.spec
2323
RUN touch /tmp/metadata.inc # fake metadata is okay for this optimization
24-
RUN cd /tmp && yum-builddep -y swift-lang.spec
24+
RUN cd /tmp && yum-builddep -y swiftlang.spec

platforms/Linux/centos/8/build_rpm.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ yum update -y
2323
mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
2424

2525
# Add the spec
26-
cp swift-lang.spec $HOME/rpmbuild/SPECS/
26+
cp swiftlang.spec $HOME/rpmbuild/SPECS/
2727
# Add the metadata for this swift version
2828
cp /shared/metadata.inc $HOME/rpmbuild/SPECS/
2929
# Add any patches
3030
cp patches/*.patch $HOME/rpmbuild/SOURCES/
3131

3232
pushd $HOME/rpmbuild/SPECS
3333
# install all the dependencies needed to build Swift from the spec file itself
34-
yum-builddep -y ./swift-lang.spec
34+
yum-builddep -y ./swiftlang.spec
3535
# get the sources for Swift as defined in the spec file
36-
spectool -g -R ./swift-lang.spec
36+
spectool -g -R ./swiftlang.spec
3737
# Now we proceed to build Swift. If this is successful, we
3838
# will have two files: a SRPM file which contains the source files
3939
# as well as a regular RPM file that can be installed via `dnf' or `yum'
40-
rpmbuild -ba ./swift-lang.spec 2>&1 | tee /root/build-output.txt
40+
rpmbuild -ba ./swiftlang.spec 2>&1 | tee /root/build-output.txt
4141
popd
4242

4343
# Include the build log which can be used to determine what went

0 commit comments

Comments
 (0)