Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:josegomezr
saml2aws
saml2aws.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File saml2aws.spec of Package saml2aws
# # spec file for package saml2aws # # nodebuginfo %define goproject github.com/Versent/saml2aws %define build_timestamp %(date +"%Y%m%d%H%M") Name: saml2aws Version: 2.36.4 Release: 0 Summary: CLI tool for retrieving AWS temporary credentials using a SAML IDP License: MIT Group: Development/Tools/Other URL: https://github.com/Versent/saml2aws Source0: %{name}-%{version}.tar.gz Source1: vendor.tar.gz BuildRequires: golang-packaging BuildRequires: golang(API) >= 1.16 BuildRequires: systemd-devel %description CLI tool which enables you to login and retrieve AWS temporary credentials using with ADFS or PingFederate Identity Providers. %prep %setup -q -n %{name}-%{version} %setup -q -T -D -a 1 %build # patch the version of the cli to return the current release instead. sed -Ei "s/(Version)\s+=\s+\".+\"$/\1 = \"%{version}-%{build_timestamp}\"/" ./cmd/saml2aws/main.go %goprep %{goproject} export CGO_ENABLED=1 # this is a hack to make gobuild work. It needs to execute # > go install $BUILD_FLAGS -mod vendor ... # and not # > go install $BUILD_FLAGS -mod vendor {goproject macro value...}... echo " " > /tmp/importpath.txt go build -buildmode=pie -x -tags=hidraw -mod vendor ... %install go install -x -tags=hidraw -mod vendor ./cmd/saml2aws install -D -m 0755 ${HOME}/go/bin/%{name} %{buildroot}/%{_bindir}/%{name} %files %{_bindir}/%{name} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor