-
Notifications
You must be signed in to change notification settings - Fork 188
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build and validate SLES package (#1278)
Build a separate package for SUSE Linux Enterprise Server (SLES), where `libfuse.so.2` is delivered by `libfuse2` rpm package (as compared to `fuse-libs` for AL2). ### Does this change impact existing behavior? No. ### Does this change need a changelog entry? Does it require a version change? May be? Added. --- By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and I agree to the terms of the [Developer Certificate of Origin (DCO)](https://developercertificate.org/). --------- Signed-off-by: Vlad Volodkin <[email protected]> Co-authored-by: Vlad Volodkin <[email protected]>
- Loading branch information
Showing
6 changed files
with
124 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
Name: mount-s3 | ||
Version: %{MOUNTPOINT_VERSION} | ||
Release: 1 | ||
Summary: Mountpoint for Amazon S3 | ||
|
||
License: Apache-2.0 | ||
URL: https://github.com/awslabs/mountpoint-s3 | ||
Source0: mount-s3.tar.gz | ||
|
||
Requires: ca-certificates | ||
Requires: fuse | ||
Requires: libfuse2 | ||
|
||
%description | ||
Mountpoint for Amazon S3 is a simple, high-throughput file client for | ||
mounting an Amazon S3 bucket as a local file system. With Mountpoint for Amazon | ||
S3, your applications can access objects stored in Amazon S3 through file | ||
operations like open and read. Mountpoint for Amazon S3 automatically | ||
translates these operations into S3 object API calls, giving your applications | ||
access to the elastic storage and throughput of Amazon S3 through a file | ||
interface. | ||
|
||
%prep | ||
%setup -c %{name}-%{version} | ||
|
||
%install | ||
rm -rf %{buildroot}/* | ||
cp -r %{_builddir}/%{name}-%{version}/* %{buildroot}/ | ||
mkdir -p %{buildroot}/%{_bindir} | ||
ln -f -s /opt/aws/mountpoint-s3/bin/mount-s3 %{buildroot}/%{_bindir}/mount-s3 | ||
|
||
%files | ||
%dir /opt/aws/mountpoint-s3 | ||
%dir /opt/aws/mountpoint-s3/bin | ||
/opt/aws/mountpoint-s3/bin/mount-s3 | ||
%doc /opt/aws/mountpoint-s3/NOTICE | ||
%license /opt/aws/mountpoint-s3/LICENSE | ||
/opt/aws/mountpoint-s3/THIRD_PARTY_LICENSES | ||
/opt/aws/mountpoint-s3/VERSION | ||
%{_bindir}/mount-s3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#! /bin/sh | ||
set -e | ||
|
||
cat /etc/os-release | ||
|
||
zypper refresh && zypper install -y wget | ||
cd /tmp | ||
|
||
wget https://s3.amazonaws.com/mountpoint-s3-release/$VERSION/$ARCH/mount-s3-$VERSION-$ARCH.suse.rpm | ||
wget https://s3.amazonaws.com/mountpoint-s3-release/$VERSION/$ARCH/mount-s3-$VERSION-$ARCH.suse.rpm.asc | ||
|
||
wget https://s3.amazonaws.com/mountpoint-s3-release/public_keys/KEYS | ||
gpg --import KEYS | ||
gpg --verify mount-s3-$VERSION-$ARCH.suse.rpm.asc mount-s3-$VERSION-$ARCH.suse.rpm | ||
|
||
zypper --no-gpg-checks install -y mount-s3-$VERSION-$ARCH.suse.rpm | ||
|
||
. $(dirname "$0")/test-mount-s3.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters