Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:saurabhsuranasuse:helm-certgen
helm-certgen
helm-certgen.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File helm-certgen.spec of Package helm-certgen
# # spec file for package certgen # # Copyright (c) 2017 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define localgopath %{_builddir}/go %define susegopath %{localgopath}/src/github.com/SUSE Name: helm-certgen Version: 1497637090.b50391b Release: 0 License: Apache 2.0 Summary: Certgen Plugin for helm CLI Url: https://github.com/SUSE/helm-certgen Group: Development/Languages/Other Source: %{name}-%{version}.tar.xz BuildRequires: go BuildRequires: golang-packaging %{go_nostrip} %{go_provides} Provides: certgen = %{version} %description certgen is a plugin for Kubernetes Helm CLI. %prep export GOPATH="%{localgopath}" %setup -q # this will setup helm-certgen project at correct location # inside GOPATH %{__mkdir_p} %{susegopath} %{__ln_s} %{_sourcedir}/%{name}-%{version} %{susegopath}/%{name} %{goprep} %{name}-%{version} %build # reading the base version information from the version file VERSION_FROM_FILE=`cat version` export GOPATH="%{_builddir}/go:$GOPATH" export VERSION=${VERSION_FROM_FILE}-%{version} make build-all %install mkdir -p %{buildroot}/opt/helm-certgen cp -r build/linux-amd64/certgen/* %{buildroot}/opt/helm-certgen/ chmod 755 %{buildroot}/opt/helm-certgen/certgen if [ -d /.build.packages/ ] then mkdir -p /.build.packages/OTHER # linux-amd64 cp dist/certgen-linux-amd64*.* /.build.packages/OTHER/ # windows-amd64 cp dist/certgen-windows-amd64*.* /.build.packages/OTHER/ # build is currently failing for darwin # darwin-amd64 #cp dist/certgen-darwin-amd64*.* /.build.packages/OTHER/ fi %files %defattr(-,root,root,-) %doc README.md LICENSE /opt/helm-certgen %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