Skip to content

Commit e790ff1

Browse files
committed
fixup
1 parent cd17a56 commit e790ff1

32 files changed

+6
-5
lines changed

platforms/Linux/centos/8/Dockerfile renamed to platforms/Linux/RPM/centos/8/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,11 @@ RUN yum -y update
1414
# RPM and yum development tools
1515
RUN yum install -y rpmdevtools yum-utils
1616

17-
# Configure powertools
17+
# Configure epel and powertools
1818
RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
1919
RUN yum config-manager --set-enabled powertools
2020

2121
# Optimization: Install all the dependencies needed to build Swift from the spec file itself
2222
ADD swift-lang.spec /tmp/swift-lang.spec
23-
RUN yum-builddep -y /tmp/swift-lang.spec
23+
RUN touch /tmp/metadata.inc # fake metadata is okay for this optimization
24+
RUN cd /tmp && yum-builddep -y swift-lang.spec

platforms/Linux/centos/8/build_rpm.sh renamed to platforms/Linux/RPM/centos/8/build_rpm.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ mkdir -p $HOME/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
3131
# Add the spec
3232
cp swift-lang.spec $HOME/rpmbuild/SPECS/
3333
# Add the metadata for this swift version
34-
cp /metadata/rpm/$SWIFT_VERSION/metadata.inc $HOME/rpmbuild/SPECS/
34+
cp /metadata/$SWIFT_VERSION/metadata.inc $HOME/rpmbuild/SPECS/
3535
# Add any patches
3636
cp patches/*.patch $HOME/rpmbuild/SOURCES/
3737

platforms/Linux/centos/8/docker-compose.yaml renamed to platforms/Linux/RPM/centos/8/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ services:
2121
depends_on: [docker-setup]
2222
volumes:
2323
- .:/code:z
24-
- ../../../../metadata:/metadata:ro
24+
- ../../shared/metadata:/metadata:ro
2525
- ./.output:/output:z
2626
working_dir: /code
2727
cap_drop:

platforms/Linux/RPM/readme.md

Whitespace-only changes.

metadata/rpm/5.5.0/metadata.inc renamed to platforms/Linux/RPM/shared/metadata/5.5.0/metadata.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
%global package_name swiftlang
44
%global package_version 5.5.0
5-
%global package_summary The Swift programming language"
5+
%global package_summary The Swift programming language
66
%global package_license Apache 2.0
77
%global package_url https://swift.org
88

0 commit comments

Comments
 (0)