The swift-lang package
| .gitignore | ||
| changelog | ||
| cmake.patch | ||
| cmark.patch | ||
| fedora-presets.ini | ||
| llbuild.patch | ||
| llvm-project.patch | ||
| ninja.patch | ||
| README.md | ||
| sources | ||
| swift-corelibs-foundation.patch | ||
| swift-corelibs-libdispatch.patch | ||
| swift-foundation.patch | ||
| swift-lang.spec | ||
| swift.patch | ||
| swiftlang.conf | ||
| swiftpm.patch | ||
| update-swift-version.sh | ||
Swift Language Fedora Package
update-swift-version.sh
A script to update the Swift language package to a new version by automatically downloading the official Swift configuration and updating the RPM spec file.
Usage
./update-swift-version.sh <swift-version>
Example
./update-swift-version.sh 6.1.3
What it does
- Downloads the Swift release configuration from the official Swift repository
- Parses the repository versions for all Swift components
- Updates the
swift-lang.specfile with new source URLs and version information - Removes old forge sources and adds new ones based on the Swift release configuration
Requirements
curl- for downloading configuration filesjq- for parsing JSON configurationsed- for updating the spec file
After running
Review the changes to swift-lang.spec and remove any patches that are no longer needed for the new version.