Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15-SP5
app-builder
app-builder.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File app-builder.spec of Package app-builder
# # Copyright (c) 2021 SUSE LLC # # 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 https://bugs.opensuse.org/ # #macros for Fedora %global goipath github.com/develar/app-builder %global commit 4e2aa6a12e2bc3d31ec0d01d661fb3a4d65248ff %global extractdir0 app-builder-%commit Name: app-builder Version: 3.4.2^20220309g4e2aa6a1 Release: 0 License: MIT Summary: Generic helper tool to build app in a distributable format Url: https://github.com/develar/app-builder Source0: https://github.com/develar/app-builder/archive/%{commit}.tar.gz Source1: vendor.tar.gz %if 0%{?fedora} BuildRequires: golang BuildRequires: go-rpm-macros BuildRequires: golang-ipath(golang.org/x/sys) BuildRequires: golang(github.com/alecthomas/template) BuildRequires: golang(github.com/alecthomas/units) BuildRequires: golang(github.com/aws/aws-sdk-go) BuildRequires: golang(github.com/disintegration/imaging) BuildRequires: golang(github.com/dustin/go-humanize) BuildRequires: golang(github.com/json-iterator/go) BuildRequires: golang(github.com/mattn/go-colorable) BuildRequires: golang(github.com/mattn/go-isatty) BuildRequires: golang(github.com/minio/blake2b-simd) BuildRequires: golang(github.com/mitchellh/go-homedir) BuildRequires: golang(github.com/oxtoacart/bpool) BuildRequires: golang(github.com/phayes/permbits) BuildRequires: golang(github.com/pkg/errors) BuildRequires: golang(github.com/pkg/xattr) BuildRequires: golang(github.com/segmentio/ksuid) BuildRequires: golang(go.uber.org/zap) BuildRequires: golang(go.uber.org/zap/buffer) BuildRequires: golang(go.uber.org/zap/zapcore) %else BuildRequires: golang(API) BuildRequires: golang-packaging %endif %if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500 # Go source packages are horribly broken on Leap (mismatching compiler versions between libraries and toolchain) BuildRequires: golang-org-x-sys %endif %description Generic helper tool to build app in a distributable formats. Used by electron-builder but applicable not only for building Electron applications. %if 0%{?fedora} %gopkg %endif %prep %autosetup -n app-builder-%commit -a1 # remove bundled dependencies %if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150500 || 0%{?fedora} rm -rf vendor/golang.org/x/sys %endif %if 0%{?fedora} rm -rf vendor/github.com/{alecthomas/{template,units},aws,disintegration,dustin,hpcloud,jmespath,json-iterator,mattn,minio,mitchellh,modern-go,onsi,oxtoacart,phayes,pkg,segmentio} rm -rf vendor/go.uber.org rm -rf vendor/golang.org rm -rf vendor/gopkg.in/{fsnotify.v1,tomb.v1,yaml.v2} %endif %build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" %if 0%{?fedora} %goprep -k -e %else %goprep %goipath export GO111MODULE=off %endif %gobuild %install install -pvDm755 \ %if 0%{?fedora} %name \ %else %{_builddir}/go/bin/%{name} \ %endif "%{buildroot}/%{_bindir}/%{name}" %files %{_bindir}/%{name} %license LICENSE %doc readme.md %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