This commit is contained in:
Sergey Zhemoytel 2024-07-02 22:24:33 +00:00
parent bbc0deca1a
commit 705468c21a
2 changed files with 25 additions and 4 deletions

View file

@ -1,3 +1,3 @@
sources:
syncthing-1.27.7.tar.gz: 8eb947e890b41ca18d96f9ad7152bedd017f0947
syncthing-1.27.9.tar.gz: 5ad5fc5fa0a63a362550308f55facc692674149d
syncthing-source-v1.3.0.tar.gz: 3034b64191fc6fca6ad407551ca5ce6c1a50d579

View file

@ -9,9 +9,11 @@
%ifarch %{arm}
%global altarch armv7
%endif
%define secscan 1
Name: syncthing
Version: 1.27.7
Version: 1.27.9
Release: 1
Summary: Syncthing
License: MIT
@ -22,9 +24,14 @@ Group: Networking/Other
BuildRequires: systemd
BuildRequires: procps
BuildRequires: go >= 1.10
BuildRequires: git
BuildRequires: git-core
BuildRequires: upx
%if %{secscan}
BuildRequires: clamav
BuildRequires: trivy
%endif
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
@ -40,9 +47,14 @@ Using syncthing, that control is returned to you.
%prep
%setup -q
%if %{secscan}
clamscan -ir .
trivy fs --scanners vuln --format cosign-vuln .
%endif
%build
export GOPROXY=direct
export GOPROXY=https://proxy.golang.org/cached-only
go run build.go -version v%{version}
#./build.sh -version v%{version}
upx bin/%{name}
@ -75,4 +87,13 @@ install -Dm0644 man/* %{buildroot}%{_mandir}/man1/%{name}
%{_unitdir}/%{name}@.service
%{_mandir}/man1/%{name}
%check
export GOPROXY=https://proxy.golang.org/cached-only
#go test ./...
%if %{secscan}
clamscan -ir %{buildroot}
%endif
%changelog