Skip to content

Commit 314e83c

Browse files
committed
Add RPM naming convention info to the README
1 parent 9c7ad47 commit 314e83c

File tree

1 file changed

+23
-4
lines changed

1 file changed

+23
-4
lines changed

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,27 @@ importantly, Swift is designed to make writing and maintaining
6262
correct programs easier for the developer.
6363
```
6464

65+
### RPM Naming Convention:
66+
67+
Package naming convention: `swiftlang-<VERSION>-<RELEASE>.<DIST>.<ARCH>.rpm`
68+
Pakcage structure: `/repo/<OS>/releases/<OS_VERSION>/<ARCH>/`
69+
Repository configuration: `/repo/<OS>/releases/<OS_VERSION>/swiftlang.repo`
70+
71+
72+
#### Example
73+
74+
**Package structure:**
75+
```
76+
/repo/centos/releases/8/x86_64/swiftlang-5.5.0-1.el8.x86_64.rpm
77+
/repo/centos/releases/8/aarch64/swiftlang-5.5.0-1.el8.aarch64.rpm
78+
```
79+
80+
**Package URL:**
81+
https://download.swift.org/repo/centos/releases/8/aarch64/swiftlang-5.5.0-1.el8.aarch64.rpm
82+
83+
**Repository configuration file URL:**
84+
https://download.swift.org/repo/centos/releases/8/swiftlang.repo
85+
6586
## Tasks
6687

6788
### RPM Package Manager (RPM)*
@@ -96,13 +117,11 @@ correct programs easier for the developer.
96117
* Option 1: Diverge the install location between platform to best fit the platform requirements.
97118
* symlink the toolchain into /usr/ to avoid conflicting with llvm.org binaries.
98119
* Option 2: Install in /usr and rename llvm-project binaries (example: swift-lldb/lldb-swift ...)
99-
* [GitHub discussion](https://github.com/apple/swift-installer-scripts/pull/37#discussion_r726707320)
120+
* [GitHub discussion](https://github.com/apple/swift-installer-scripts/pull/37#discussion_r726707320)
100121
* Should we support multiple swiftlang versions on the system?
101122
* Multiple packages:
102123
* swiftlang
103-
* swiftlang-runtime
104-
105-
124+
* swiftlang-runtime
106125

107126
## Contributing
108127

0 commit comments

Comments
 (0)