You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
update fedora setup to follow conventions of other RPM builders (swiftlang#82)
motivation: consistentcy across RPM builders
changes:
* add docker-compose setup
* update rpmspec to use share metadata
* update Dockerfile to use updated rpmspec
* update build script to use updated Dockerfile and rpmspec
* add readme
then you can run `./build_rpm.sh` to run the build manually inside the docker
19
+
20
+
21
+
* to rebuild the base image
22
+
23
+
```
24
+
docker-compose build --pull
25
+
```
26
+
27
+
note this still uses the docker cache, so will rebuild only if the version of the underlying base image changed upstream
28
+
29
+
30
+
### Open Issues / TODO
31
+
* the list of build requirements (BuildRequires) and especially requirements (Requires) should come from an external file, likely one per swift release version (which we can use it to also drive documentation)
Swift is a general-purpose programming language built using
98
-
a modern approach to safety, performance, and software design
99
-
patterns.
100
-
101
-
The goal of the Swift project is to create the best available
102
-
language for uses ranging from systems programming, to mobile
103
-
and desktop apps, scaling up to cloud services. Most
104
-
importantly, Swift is designed to make writing and maintaining
105
-
correct programs easier for the developer.
73
+
%include description.inc
106
74
107
75
%prep
108
76
%setup -q -c -n %{swift_source_location} -a 0 -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 19 -a 20 -a 21 -a 22 -a 23 -a 24 -a 25 -a 26 -a 27 -a 28 -a 29 -a 30 -a 31 -a 32 -a 33
77
+
109
78
# The Swift build script requires directories to be named
110
79
# in a specific way so renaming the source directories is
then you can run `./build_rpm.sh` to run the build manually inside the docker
19
+
20
+
21
+
* to rebuild the base image
22
+
23
+
```
24
+
docker-compose build --pull
25
+
```
26
+
27
+
note this still uses the docker cache, so will rebuild only if the version of the underlying base image changed upstream
28
+
29
+
30
+
### Open Issues / TODO
31
+
* the list of build requirements (BuildRequires) and especially requirements (Requires) should come from an external file, likely one per swift release version (which we can use it to also drive documentation)
0 commit comments