@@ -23,7 +23,7 @@ Builds the container image
2323### ` patches/*.patch `
2424Any post-release patches that have not yet been merged upstream that are
2525temporarily necessary to build Swift.
26- ### ` swift-lang .spec`
26+ ### ` swiftlang .spec`
2727The "recipe" the RPM packaging tools use to build Swift.
2828
2929## Building Swift Via Linux Containers
@@ -54,17 +54,17 @@ locally
5454RPMs are built in the ` $HOME/rpmbuild ` directory, which has several subdirectories
5555for specific purposes.
56561 . ` 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 `
58583 . ` 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
6464The RPM tools perform both building and packaging. _ This process may take several
6565hours 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
6969If 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
7575If 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
7878of 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.
8585To install the Swift RPM, change to the directory that contains the RPM file and
8686run ` 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
0 commit comments