generated from pool/new_package
944 B
944 B
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.