Compare commits

5 Commits

6 changed files with 31 additions and 16 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:3d6945ca99a52cb28dd969a10537906e78bd586f988ee68ac8d03bb0f7da63c1
size 658262

View File

@@ -1,6 +1,6 @@
<services>
<service name="go_modules" mode="disabled">
<param name="archive">4e2aa6a12e2bc3d31ec0d01d661fb3a4d65248ff.tar.gz</param>
<param name="archive">v5.0.0-alpha.11.tar.gz</param>
<param name="compression">gz</param>
</service>
</services>

View File

@@ -1,3 +1,10 @@
-------------------------------------------------------------------
Tue Nov 12 15:09:47 UTC 2024 - Bruno Pitrus <brunopitrus@hotmail.com>
- Update to 5.0.0-alpha.11
* add flatten option to node-dep-tree (introduced in 5.0.0-alpha.3)
* see CHANGELOG.md for more changes
-------------------------------------------------------------------
Mon Oct 16 17:53:11 UTC 2023 - Bruno Pitrus <brunopitrus@hotmail.com>

View File

@@ -15,23 +15,24 @@
#macros for Fedora
%global goipath github.com/develar/app-builder
%global commit 4e2aa6a12e2bc3d31ec0d01d661fb3a4d65248ff
%global extractdir0 app-builder-%commit
%global extractdir0 app-builder-5.0.0-alpha.11
Name: app-builder
Version: 3.4.2^20220309g4e2aa6a1
Version: 5.0.0~alpha.11
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
Source0: https://github.com/develar/app-builder/archive/v5.0.0-alpha.11.tar.gz
Source1: vendor.tar.gz
%if 0%{?fedora}
BuildRequires: golang
BuildRequires: go-rpm-macros
BuildRequires: golang-ipath(golang.org/x/sys)
BuildRequires: golang(gopkg.in/alecthomas/kingpin.v2)
%if 0%{fedora} < 41
BuildRequires: golang(github.com/alecthomas/template)
%endif
BuildRequires: golang(github.com/alecthomas/units)
BuildRequires: golang(github.com/aws/aws-sdk-go)
BuildRequires: golang(github.com/disintegration/imaging)
@@ -52,12 +53,15 @@ BuildRequires: golang(go.uber.org/zap)
BuildRequires: golang(go.uber.org/zap/buffer)
BuildRequires: golang(go.uber.org/zap/zapcore)
BuildRequires: golang(howett.net/plist)
%if 0%{fedora} >= 41
BuildRequires: compat-golang-github-imdario-mergo-devel
%endif
%else
BuildRequires: golang(API)
BuildRequires: golang-packaging
%endif
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600
%if 0%{?suse_version} >= 1650 || 0%{?sle_version} >= 150700
# Go source packages are horribly broken on Leap (mismatching compiler versions between libraries and toolchain)
BuildRequires: golang-org-x-sys
%endif
@@ -71,14 +75,14 @@ Used by electron-builder but applicable not only for building Electron applicati
%endif
%prep
%autosetup -n app-builder-%commit -a1
%autosetup -a1 -n app-builder-5.0.0-alpha.11
# remove bundled dependencies
%if 0%{?suse_version} >= 1550 || 0%{?sle_version} >= 150600 || 0%{?fedora}
%if 0%{?suse_version} >= 1650 || 0%{?sle_version} >= 150700 || 0%{?fedora}
rm -rf vendor/golang.org/x/sys
%endif
%if 0%{?fedora}
rm -rf vendor/github.com/{alecthomas,aws,disintegration,dustin,hpcloud,jmespath,json-iterator,mattn,mitchellh,modern-go,onsi,oxtoacart,phayes,pkg,segmentio}
rm -rf vendor/github.com/{alecthomas/kingpin,alecthomas/units,aws,disintegration,dustin,hpcloud,jmespath,json-iterator,mattn,mitchellh,modern-go,onsi,oxtoacart,phayes,pkg,samber,segmentio}
rm -rf vendor/go.uber.org
rm -rf vendor/golang.org
rm -rf vendor/gopkg.in/{fsnotify.v1,tomb.v1,yaml.v2}
@@ -88,6 +92,10 @@ rm -rf vendor/howett.net
rm -rf vendor/github.com/minio
%endif
%if 0%{fedora} < 41
rm -rf vendor/github.com/alecthomas
%endif
grep -FrlZ 'github.com/alecthomas/kingpin' | xargs -tr0 -P$(nproc) -- sed -i 's|github.com/alecthomas/kingpin|gopkg.in/alecthomas/kingpin.v2|g'
%endif
@@ -98,6 +106,7 @@ export CXXFLAGS="%{optflags}"
export CGO_CFLAGS="$CFLAGS -fpie"
export CGO_CXXFLAGS="$CXXFLAGS -fpie"
export CGO_LDFLAGS="%{?build_ldflags}"
%if 0%{?fedora}
%goprep -k -e
%else
@@ -109,7 +118,6 @@ export GO111MODULE=off
export GOFLAGS='-ldflags=-compressdwarf=false' #fix broken debuginfo
%gobuild
%install
install -pvDm755 \
%if 0%{?fedora}
@@ -123,6 +131,6 @@ install -pvDm755 \
%files
%{_bindir}/%{name}
%license LICENSE
%doc readme.md
%doc readme.md CHANGELOG.md
%changelog

3
v5.0.0-alpha.11.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f796fb39ba07ff1f76c14a62d90cc7c1699c1c40b5a21143bb73be8c74e8c688
size 801506

View File

@@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:649aedd613abfc1593878ce7ba35388ae17c724f44def9c8e832bb07c0200f58
size 2894879
oid sha256:2f09aafb768b3fbfc2e3f9c0a8ece9fe3842dba2e123413f0bb49f55392e6040
size 3030534