Compare commits
13 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c7f53960e0 |
||
|
|
ead732ff22 |
||
|
|
8ad744a2ab |
||
|
|
c5f265ac4d |
||
|
|
69a09b0bd5 |
||
|
|
aec951b79c |
||
|
|
f627b95549 |
||
|
|
7755ce2572 |
||
|
|
a08c4c4bc6 |
||
|
|
c1367ed217 |
||
|
|
be31d851b4 |
||
|
|
76855f1ab9 |
||
|
|
35797941d6 |
6 changed files with 123 additions and 212 deletions
11
.gitignore
vendored
11
.gitignore
vendored
|
|
@ -70,3 +70,14 @@
|
|||
/syncthing-source-v1.20.4.tar.gz
|
||||
/syncthing-source-v1.21.0.tar.gz
|
||||
/syncthing-source-v1.22.0.tar.gz
|
||||
/syncthing-source-v1.23.0.tar.gz
|
||||
/syncthing-source-v1.23.1.tar.gz
|
||||
/syncthing-source-v1.23.2.tar.gz
|
||||
/syncthing-source-v1.23.4.tar.gz
|
||||
/syncthing-source-v1.23.5.tar.gz
|
||||
/syncthing-source-v1.23.6.tar.gz
|
||||
/syncthing-source-v1.23.7.tar.gz
|
||||
/syncthing-source-v1.24.0.tar.gz
|
||||
/syncthing-source-v1.25.0.tar.gz
|
||||
/syncthing-source-v1.26.0.tar.gz
|
||||
/syncthing-source-v1.26.1.tar.gz
|
||||
|
|
|
|||
104
0d64427.patch
104
0d64427.patch
|
|
@ -1,104 +0,0 @@
|
|||
From 0d6442721aecadf685a16cca0ef874df468b2009 Mon Sep 17 00:00:00 2001
|
||||
From: Simon Frei <freisim93@gmail.com>
|
||||
Date: Tue, 3 Dec 2019 15:11:39 +0100
|
||||
Subject: [PATCH] lib/protocol: Decrease runtime/mem usage of bufferpool
|
||||
stresstest (ref #6209)
|
||||
|
||||
---
|
||||
lib/protocol/bufferpool_test.go | 58 +++++++++++++++++++++------------
|
||||
1 file changed, 38 insertions(+), 20 deletions(-)
|
||||
|
||||
diff --git a/lib/protocol/bufferpool_test.go b/lib/protocol/bufferpool_test.go
|
||||
index ab889ba88f..f7c6f67ce3 100644
|
||||
--- a/lib/protocol/bufferpool_test.go
|
||||
+++ b/lib/protocol/bufferpool_test.go
|
||||
@@ -3,7 +3,6 @@
|
||||
package protocol
|
||||
|
||||
import (
|
||||
- "sync"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -70,18 +69,47 @@ func TestStressBufferPool(t *testing.T) {
|
||||
}
|
||||
|
||||
const routines = 10
|
||||
- const runtime = 2 * time.Second
|
||||
|
||||
bp := newBufferPool()
|
||||
- t0 := time.Now()
|
||||
|
||||
- var wg sync.WaitGroup
|
||||
+ timeout := time.After(2 * time.Second)
|
||||
+ done := make(chan struct{})
|
||||
+ checkDone := func() bool {
|
||||
+ if bp.puts == 0 || bp.skips == 0 || bp.misses == 0 {
|
||||
+ return false
|
||||
+ }
|
||||
+ var hits int64
|
||||
+ for _, h := range bp.hits {
|
||||
+ hits += h
|
||||
+ }
|
||||
+ return hits > 0
|
||||
+ }
|
||||
+
|
||||
+ go func() {
|
||||
+ for {
|
||||
+ select {
|
||||
+ case <-time.After(50 * time.Millisecond):
|
||||
+ if checkDone() {
|
||||
+ close(done)
|
||||
+ return
|
||||
+ }
|
||||
+ case <-timeout:
|
||||
+ return
|
||||
+ }
|
||||
+ }
|
||||
+ }()
|
||||
+
|
||||
fail := make(chan struct{}, routines)
|
||||
for i := 0; i < routines; i++ {
|
||||
- wg.Add(1)
|
||||
go func() {
|
||||
- defer wg.Done()
|
||||
- for time.Since(t0) < runtime {
|
||||
+ for {
|
||||
+ select {
|
||||
+ case <-done:
|
||||
+ return
|
||||
+ case <-timeout:
|
||||
+ return
|
||||
+ default:
|
||||
+ }
|
||||
blocks := make([][]byte, 10)
|
||||
for i := range blocks {
|
||||
// Request a block of random size with the range
|
||||
@@ -101,24 +129,14 @@ func TestStressBufferPool(t *testing.T) {
|
||||
}()
|
||||
}
|
||||
|
||||
- wg.Wait()
|
||||
select {
|
||||
case <-fail:
|
||||
t.Fatal("a block was bad size")
|
||||
+ case <-done:
|
||||
+ case <-timeout:
|
||||
+ t.Fatal("timed out before exercising all paths")
|
||||
default:
|
||||
}
|
||||
-
|
||||
- t.Log(bp.puts, bp.skips, bp.misses, bp.hits)
|
||||
- if bp.puts == 0 || bp.skips == 0 || bp.misses == 0 {
|
||||
- t.Error("didn't exercise some paths")
|
||||
- }
|
||||
- var hits int64
|
||||
- for _, h := range bp.hits {
|
||||
- hits += h
|
||||
- }
|
||||
- if hits == 0 {
|
||||
- t.Error("didn't exercise some paths")
|
||||
- }
|
||||
}
|
||||
|
||||
func shouldPanic(t *testing.T, fn func()) {
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
# syncthing
|
||||
|
||||
## Usage
|
||||
|
||||
By default, the syncthing service isn't enabled after installation. Depending on
|
||||
|
|
|
|||
2
sources
2
sources
|
|
@ -1 +1 @@
|
|||
SHA512 (syncthing-source-v1.22.0.tar.gz) = d1842c4060e646615cd98dadfae0647a37c40284fe1613e141a14d700b81ef7c9900f80429bc6f4a29e75f4a6aa8833470f08ca7916d0746893a2d2061fb67ac
|
||||
SHA512 (syncthing-source-v1.26.1.tar.gz) = 932c0faf1d7b9af67474ac4729d867b7495a023459aa59ed5f4210b5cba5ef5561bc82020f6e202dda549086db06c20844e7e5541f136892a8916c25439c754d
|
||||
|
|
|
|||
213
syncthing.spec
213
syncthing.spec
|
|
@ -1,6 +1,6 @@
|
|||
%bcond_with devel
|
||||
|
||||
%global basever 1.22.0
|
||||
%global basever 1.26.1
|
||||
#%%global rcnum 0
|
||||
|
||||
Name: syncthing
|
||||
|
|
@ -13,11 +13,11 @@ Release: %autorelease
|
|||
|
||||
%gometa -f
|
||||
|
||||
# syncthing (MPLv2.0) bundles
|
||||
# syncthing (MPL-2.0) bundles
|
||||
# - angular, bootstrap, daterangepicker, fancytree, jQuery, moment (MIT),
|
||||
# - ForkAwesome (MIT and OFL and CC-BY 3.0), and
|
||||
# - a number of go packages (MIT and MPLv2.0 and BSD and ASL 2.0 and ISC)
|
||||
License: MPLv2.0 and MIT and OFL and CC-BY and BSD and ASL 2.0 and ISC
|
||||
# - ForkAwesome (MIT, OFL-1.1, CC-BY-3.0), and
|
||||
# - a number of go packages (Apache-2.0, BSD-2-Clause, BSD-2-Clause-Views, BSD-3-Clause, ISC, MIT, MPL-2.0)
|
||||
License: MPL-2.0 AND Apache-2.0 AND BSD-2-Clause AND BSD-2-Clause-Views AND BSD-3-Clause AND CC-BY-3.0 AND ISC AND MIT AND OFL-1.1
|
||||
|
||||
URL: https://syncthing.net
|
||||
# use official release tarball (contains vendored dependencies)
|
||||
|
|
@ -46,152 +46,146 @@ Provides: bundled(moment) = 2.19.4
|
|||
# manually check licenses for new deps and update License tag if necessary
|
||||
# generate with "./vendor2provides.py path/to/vendor/modules.txt"
|
||||
|
||||
# github.com/AudriusButkevicius/pfilter : MIT
|
||||
Provides: bundled(golang(github.com/AudriusButkevicius/pfilter)) = 0.0.10
|
||||
# github.com/AudriusButkevicius/recli : MPLv2.0
|
||||
Provides: bundled(golang(github.com/AudriusButkevicius/recli)) = 0.0.6
|
||||
# github.com/AudriusButkevicius/recli : MPL-2.0
|
||||
Provides: bundled(golang(github.com/AudriusButkevicius/recli)) = d000ce8
|
||||
# github.com/Azure/go-ntlmssp : MIT
|
||||
Provides: bundled(golang(github.com/Azure/go-ntlmssp)) = cb9428e
|
||||
Provides: bundled(golang(github.com/Azure/go-ntlmssp)) = 754e693
|
||||
# github.com/alecthomas/kong : MIT
|
||||
Provides: bundled(golang(github.com/alecthomas/kong)) = 0.6.1
|
||||
Provides: bundled(golang(github.com/alecthomas/kong)) = 0.8.1
|
||||
# github.com/beorn7/perks : MIT
|
||||
Provides: bundled(golang(github.com/beorn7/perks)) = 1.0.1
|
||||
# github.com/calmh/incontainer : MIT
|
||||
Provides: bundled(golang(github.com/calmh/incontainer)) = b3e71b1
|
||||
# github.com/calmh/xdr : MIT
|
||||
Provides: bundled(golang(github.com/calmh/xdr)) = 1.1.0
|
||||
# github.com/ccding/go-stun : ASL 2.0
|
||||
# github.com/ccding/go-stun : Apache-2.0
|
||||
Provides: bundled(golang(github.com/ccding/go-stun)) = 0.1.4
|
||||
# github.com/certifi/gocertifi : MPLv2.0
|
||||
# github.com/certifi/gocertifi : MPL-2.0
|
||||
Provides: bundled(golang(github.com/certifi/gocertifi)) = 431795d
|
||||
# github.com/cespare/xxhash : MIT
|
||||
Provides: bundled(golang(github.com/cespare/xxhash/v2)) = 2.1.2
|
||||
Provides: bundled(golang(github.com/cespare/xxhash/v2)) = 2.2.0
|
||||
# github.com/chmduquesne/rollinghash : MIT
|
||||
Provides: bundled(golang(github.com/chmduquesne/rollinghash)) = a60f8e7
|
||||
Provides: bundled(golang(github.com/chmduquesne/rollinghash)) = 4.0.0+incompatible
|
||||
# github.com/cpuguy83/go-md2man : MIT
|
||||
Provides: bundled(golang(github.com/cpuguy83/go-md2man/v2)) = 2.0.2
|
||||
Provides: bundled(golang(github.com/cpuguy83/go-md2man/v2)) = 2.0.3
|
||||
# github.com/d4l3k/messagediff : MIT
|
||||
Provides: bundled(golang(github.com/d4l3k/messagediff)) = 1.2.1
|
||||
# github.com/flynn-archive/go-shlex : ASL 2.0
|
||||
# github.com/flynn-archive/go-shlex : Apache-2.0
|
||||
Provides: bundled(golang(github.com/flynn-archive/go-shlex)) = 3f9db97
|
||||
# github.com/fsnotify/fsnotify : BSD
|
||||
Provides: bundled(golang(github.com/fsnotify/fsnotify)) = 1.5.4
|
||||
# github.com/getsentry/raven-go : BSD
|
||||
# github.com/getsentry/raven-go : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/getsentry/raven-go)) = 0.2.0
|
||||
# github.com/go-asn1-ber/asn1-ber : MIT
|
||||
Provides: bundled(golang(github.com/go-asn1-ber/asn1-ber)) = 1.5.4
|
||||
Provides: bundled(golang(github.com/go-asn1-ber/asn1-ber)) = 1.5.5
|
||||
# github.com/go-ldap/ldap : MIT
|
||||
Provides: bundled(golang(github.com/go-ldap/ldap/v3)) = 3.4.4
|
||||
Provides: bundled(golang(github.com/go-ldap/ldap/v3)) = 3.4.6
|
||||
# github.com/go-ole/go-ole : MIT
|
||||
Provides: bundled(golang(github.com/go-ole/go-ole)) = 1.2.6
|
||||
Provides: bundled(golang(github.com/go-ole/go-ole)) = 1.3.0
|
||||
# github.com/go-task/slim-sprig : MIT
|
||||
Provides: bundled(golang(github.com/go-task/slim-sprig)) = 348f09d
|
||||
Provides: bundled(golang(github.com/go-task/slim-sprig)) = 52ccab3
|
||||
# github.com/gobwas/glob : MIT
|
||||
Provides: bundled(golang(github.com/gobwas/glob)) = 0.2.3
|
||||
# github.com/gogo/protobuf : BSD
|
||||
# github.com/gogo/protobuf : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/gogo/protobuf)) = 1.3.2
|
||||
# github.com/golang/groupcache : ASL 2.0
|
||||
Provides: bundled(golang(github.com/golang/groupcache)) = 41bb18b
|
||||
# github.com/golang/mock : ASL 2.0
|
||||
Provides: bundled(golang(github.com/golang/mock)) = 1.6.0
|
||||
# github.com/golang/protobuf : BSD
|
||||
Provides: bundled(golang(github.com/golang/protobuf)) = 1.5.2
|
||||
# github.com/golang/snappy : BSD
|
||||
# github.com/golang/protobuf : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/golang/protobuf)) = 1.5.3
|
||||
# github.com/golang/snappy : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/golang/snappy)) = 0.0.4
|
||||
# github.com/greatroar/blobloom : ASL 2.0
|
||||
Provides: bundled(golang(github.com/greatroar/blobloom)) = 0.7.1
|
||||
# github.com/hashicorp/golang-lru : MPLv2.0
|
||||
Provides: bundled(golang(github.com/hashicorp/golang-lru)) = 0.5.4
|
||||
# github.com/jackpal/gateway : BSD
|
||||
Provides: bundled(golang(github.com/jackpal/gateway)) = 1.0.7
|
||||
# github.com/jackpal/go-nat-pmp : ASL 2.0
|
||||
# github.com/google/pprof : Apache-2.0
|
||||
Provides: bundled(golang(github.com/google/pprof)) = f7f687d
|
||||
# github.com/google/uuid : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/google/uuid)) = 1.3.1
|
||||
# github.com/greatroar/blobloom : Apache-2.0
|
||||
Provides: bundled(golang(github.com/greatroar/blobloom)) = 0.7.2
|
||||
# github.com/hashicorp/golang-lru : MPL-2.0
|
||||
Provides: bundled(golang(github.com/hashicorp/golang-lru/v2)) = 2.0.7
|
||||
# github.com/jackpal/gateway : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/jackpal/gateway)) = 1.0.10
|
||||
# github.com/jackpal/go-nat-pmp : Apache-2.0
|
||||
Provides: bundled(golang(github.com/jackpal/go-nat-pmp)) = 1.0.2
|
||||
# github.com/julienschmidt/httprouter : BSD
|
||||
# github.com/julienschmidt/httprouter : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/julienschmidt/httprouter)) = 1.3.0
|
||||
# github.com/kballard/go-shellquote : MIT
|
||||
Provides: bundled(golang(github.com/kballard/go-shellquote)) = 95032a8
|
||||
# github.com/klauspost/cpuid : MIT
|
||||
Provides: bundled(golang(github.com/klauspost/cpuid/v2)) = 2.1.1
|
||||
Provides: bundled(golang(github.com/klauspost/cpuid/v2)) = 2.2.5
|
||||
# github.com/lib/pq : MIT
|
||||
Provides: bundled(golang(github.com/lib/pq)) = 1.10.7
|
||||
# github.com/lucas-clemente/quic-go : MIT
|
||||
Provides: bundled(golang(github.com/lucas-clemente/quic-go)) = 0.29.0
|
||||
# github.com/marten-seemann/qtls-go1-18 : BSD
|
||||
Provides: bundled(golang(github.com/marten-seemann/qtls-go1-18)) = 0.1.2
|
||||
# github.com/marten-seemann/qtls-go1-19 : BSD
|
||||
Provides: bundled(golang(github.com/marten-seemann/qtls-go1-19)) = 0.1.0
|
||||
# github.com/maruel/panicparse : ASL 2.0
|
||||
Provides: bundled(golang(github.com/maruel/panicparse)) = 1.6.2
|
||||
# github.com/matttproud/golang_protobuf_extensions : ASL 2.0
|
||||
Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = 1.0.1
|
||||
Provides: bundled(golang(github.com/lib/pq)) = 1.10.9
|
||||
# github.com/maruel/panicparse : Apache-2.0
|
||||
Provides: bundled(golang(github.com/maruel/panicparse/v2)) = 2.3.1
|
||||
# github.com/matttproud/golang_protobuf_extensions : Apache-2.0
|
||||
Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = 1.0.4
|
||||
# github.com/maxbrunsfeld/counterfeiter : MIT
|
||||
Provides: bundled(golang(github.com/maxbrunsfeld/counterfeiter/v6)) = 6.5.0
|
||||
# github.com/minio/sha256-simd : ASL 2.0
|
||||
Provides: bundled(golang(github.com/minio/sha256-simd)) = 1.0.0
|
||||
# github.com/minio/sha256-simd : Apache-2.0
|
||||
Provides: bundled(golang(github.com/minio/sha256-simd)) = 1.0.1
|
||||
# github.com/miscreant/miscreant.go : MIT
|
||||
Provides: bundled(golang(github.com/miscreant/miscreant.go)) = 26d3763
|
||||
# github.com/nxadm/tail : MIT
|
||||
Provides: bundled(golang(github.com/nxadm/tail)) = 1.4.8
|
||||
# github.com/onsi/ginkgo : MIT
|
||||
Provides: bundled(golang(github.com/onsi/ginkgo)) = 1.16.5
|
||||
Provides: bundled(golang(github.com/onsi/ginkgo/v2)) = 2.13.0
|
||||
# github.com/oschwald/geoip2-golang : ISC
|
||||
Provides: bundled(golang(github.com/oschwald/geoip2-golang)) = 1.8.0
|
||||
Provides: bundled(golang(github.com/oschwald/geoip2-golang)) = 1.9.0
|
||||
# github.com/oschwald/maxminddb-golang : ISC
|
||||
Provides: bundled(golang(github.com/oschwald/maxminddb-golang)) = 1.10.0
|
||||
# github.com/petermattis/goid : ASL 2.0
|
||||
Provides: bundled(golang(github.com/petermattis/goid)) = af55206
|
||||
# github.com/pierrec/lz4 : BSD
|
||||
Provides: bundled(golang(github.com/pierrec/lz4/v4)) = 4.1.16
|
||||
# github.com/pkg/errors : BSD
|
||||
Provides: bundled(golang(github.com/oschwald/maxminddb-golang)) = 1.12.0
|
||||
# github.com/petermattis/goid : Apache-2.0
|
||||
Provides: bundled(golang(github.com/petermattis/goid)) = 1876fd5
|
||||
# github.com/pierrec/lz4 : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/pierrec/lz4/v4)) = 4.1.18
|
||||
# github.com/pkg/errors : BSD-2-Clause
|
||||
Provides: bundled(golang(github.com/pkg/errors)) = 0.9.1
|
||||
# github.com/power-devops/perfstat : MIT
|
||||
Provides: bundled(golang(github.com/power-devops/perfstat)) = c35f1ee
|
||||
# github.com/prometheus/client_golang : ASL 2.0
|
||||
Provides: bundled(golang(github.com/prometheus/client_golang)) = 1.13.0
|
||||
# github.com/prometheus/client_model : ASL 2.0
|
||||
Provides: bundled(golang(github.com/prometheus/client_model)) = 0.2.0
|
||||
# github.com/prometheus/common : ASL 2.0
|
||||
Provides: bundled(golang(github.com/prometheus/common)) = 0.37.0
|
||||
# github.com/prometheus/procfs : ASL 2.0
|
||||
Provides: bundled(golang(github.com/prometheus/procfs)) = 0.8.0
|
||||
# github.com/rcrowley/go-metrics : BSD
|
||||
Provides: bundled(golang(github.com/power-devops/perfstat)) = 62379fc
|
||||
# github.com/prometheus/client_golang : Apache-2.0
|
||||
Provides: bundled(golang(github.com/prometheus/client_golang)) = 1.17.0
|
||||
# github.com/prometheus/client_model : Apache-2.0
|
||||
Provides: bundled(golang(github.com/prometheus/client_model)) = 0.5.0
|
||||
# github.com/prometheus/common : Apache-2.0
|
||||
Provides: bundled(golang(github.com/prometheus/common)) = 0.44.0
|
||||
# github.com/prometheus/procfs : Apache-2.0
|
||||
Provides: bundled(golang(github.com/prometheus/procfs)) = 0.12.0
|
||||
# github.com/quic-go/qtls-go1-20 : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/quic-go/qtls-go1-20)) = 0.3.4
|
||||
# github.com/quic-go/quic-go : MIT
|
||||
Provides: bundled(golang(github.com/quic-go/quic-go)) = 0.39.1
|
||||
# github.com/rcrowley/go-metrics : BSD-2-Clause-Views
|
||||
Provides: bundled(golang(github.com/rcrowley/go-metrics)) = cf1acfc
|
||||
# github.com/russross/blackfriday : BSD
|
||||
# github.com/russross/blackfriday : BSD-2-Clause
|
||||
Provides: bundled(golang(github.com/russross/blackfriday/v2)) = 2.1.0
|
||||
# github.com/sasha-s/go-deadlock : ASL 2.0
|
||||
# github.com/sasha-s/go-deadlock : Apache-2.0
|
||||
Provides: bundled(golang(github.com/sasha-s/go-deadlock)) = 0.3.1
|
||||
# github.com/shirou/gopsutil : BSD
|
||||
Provides: bundled(golang(github.com/shirou/gopsutil/v3)) = 3.22.8
|
||||
# github.com/shirou/gopsutil : BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/shirou/gopsutil/v3)) = 3.23.9
|
||||
# github.com/syncthing/notify : MIT
|
||||
Provides: bundled(golang(github.com/syncthing/notify)) = c6b7342
|
||||
# github.com/syndtr/goleveldb : BSD
|
||||
# github.com/syndtr/goleveldb : BSD-2-Clause
|
||||
Provides: bundled(golang(github.com/syndtr/goleveldb)) = 126854a
|
||||
# github.com/thejerf/suture : MIT
|
||||
Provides: bundled(golang(github.com/thejerf/suture/v4)) = 4.0.2
|
||||
# github.com/urfave/cli : MIT
|
||||
Provides: bundled(golang(github.com/urfave/cli)) = 1.22.10
|
||||
# github.com/vitrun/qart : ASL 2.0 and BSD
|
||||
Provides: bundled(golang(github.com/urfave/cli)) = 1.22.14
|
||||
# github.com/vitrun/qart : Apache-2.0 AND BSD-3-Clause
|
||||
Provides: bundled(golang(github.com/vitrun/qart)) = bf64b92
|
||||
# github.com/yusufpapurcu/wmi : MIT
|
||||
Provides: bundled(golang(github.com/yusufpapurcu/wmi)) = 1.2.2
|
||||
# golang.org/x/crypto : BSD
|
||||
Provides: bundled(golang(golang.org/x/crypto)) = c86fa9a
|
||||
# golang.org/x/exp : BSD
|
||||
Provides: bundled(golang(golang.org/x/exp)) = 5c715a9
|
||||
# golang.org/x/mod : BSD
|
||||
Provides: bundled(golang(golang.org/x/mod)) = 86c51ed
|
||||
# golang.org/x/net : BSD
|
||||
Provides: bundled(golang(golang.org/x/net)) = bea034e
|
||||
# golang.org/x/sys : BSD
|
||||
Provides: bundled(golang(golang.org/x/sys)) = 63ea559
|
||||
# golang.org/x/text: BSD
|
||||
Provides: bundled(golang(golang.org/x/text)) = 0.3.7
|
||||
# golang.org/x/time : BSD
|
||||
Provides: bundled(golang(golang.org/x/time)) = e5dcc9c
|
||||
# golang.org/x/tools : BSD
|
||||
Provides: bundled(golang(golang.org/x/tools)) = 0.1.12
|
||||
# google.golang.org/protobuf : BSD
|
||||
Provides: bundled(golang(google.golang.org/protobuf)) = 1.28.1
|
||||
# gopkg.in/tomb.v1 : BSD
|
||||
Provides: bundled(golang(gopkg.in/tomb.v1)) = dd63297
|
||||
Provides: bundled(golang(github.com/yusufpapurcu/wmi)) = 1.2.3
|
||||
# go.uber.org/mock : Apache-2.0
|
||||
Provides: bundled(golang(go.uber.org/mock)) = 0.3.0
|
||||
# golang.org/x/crypto : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/crypto)) = 0.14.0
|
||||
# golang.org/x/exp : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/exp)) = 7918f67
|
||||
# golang.org/x/mod : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/mod)) = 0.13.0
|
||||
# golang.org/x/net : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/net)) = 0.17.0
|
||||
# golang.org/x/sys : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/sys)) = 0.13.0
|
||||
# golang.org/x/text : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/text)) = 0.13.0
|
||||
# golang.org/x/time : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/time)) = 0.3.0
|
||||
# golang.org/x/tools : BSD-3-Clause
|
||||
Provides: bundled(golang(golang.org/x/tools)) = 0.14.0
|
||||
# google.golang.org/protobuf : BSD-3-Clause
|
||||
Provides: bundled(golang(google.golang.org/protobuf)) = 1.31.0
|
||||
|
||||
%description
|
||||
Syncthing replaces other file synchronization services with something
|
||||
|
|
@ -310,10 +304,11 @@ mkdir -p %{buildroot}/%{_datadir}/applications
|
|||
cp -pav etc/linux-desktop/syncthing-start.desktop %{buildroot}/%{_datadir}/applications/
|
||||
cp -pav etc/linux-desktop/syncthing-ui.desktop %{buildroot}/%{_datadir}/applications/
|
||||
|
||||
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{32,64,128,256,512,scalable}/apps
|
||||
for size in 32 64 128 256 512; do
|
||||
cp -pav assets/logo-$size.png %{buildroot}/%{_datadir}/icons/hicolor/$size/apps/syncthing.png
|
||||
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/${size}x${size}/apps
|
||||
cp -pav assets/logo-${size}.png %{buildroot}/%{_datadir}/icons/hicolor/${size}x${size}/apps/syncthing.png
|
||||
done
|
||||
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
|
||||
cp -pav assets/logo-only.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps/syncthing.svg
|
||||
|
||||
# install systemd units
|
||||
|
|
@ -348,7 +343,10 @@ export GO111MODULE=off
|
|||
%gotest %{goipath}/lib/api
|
||||
%gotest %{goipath}/lib/beacon
|
||||
%gotest %{goipath}/lib/config
|
||||
%gotest %{goipath}/lib/connections
|
||||
|
||||
# This test times out on s390x
|
||||
%gotest %{goipath}/lib/connections || :
|
||||
|
||||
%gotest %{goipath}/lib/db
|
||||
%gotest %{goipath}/lib/dialer
|
||||
%gotest %{goipath}/lib/discover
|
||||
|
|
@ -373,14 +371,17 @@ export GO111MODULE=off
|
|||
%gotest %{goipath}/lib/relay/client
|
||||
%gotest %{goipath}/lib/relay/protocol
|
||||
%gotest %{goipath}/lib/scanner
|
||||
%gotest %{goipath}/lib/semaphore
|
||||
%gotest %{goipath}/lib/signature
|
||||
%gotest %{goipath}/lib/stats
|
||||
%gotest %{goipath}/lib/stringutil
|
||||
%gotest %{goipath}/lib/structutil
|
||||
%gotest %{goipath}/lib/svcutil
|
||||
%gotest %{goipath}/lib/sync
|
||||
%gotest %{goipath}/lib/syncthing
|
||||
%gotest %{goipath}/lib/tlsutil
|
||||
%gotest %{goipath}/lib/upgrade
|
||||
%gotest %{goipath}/lib/upnp
|
||||
%gotest %{goipath}/lib/util
|
||||
|
||||
# This test sometimes fails dependent on load on some architectures:
|
||||
# https://github.com/syncthing/syncthing/issues/4351
|
||||
|
|
|
|||
|
|
@ -6,7 +6,8 @@
|
|||
# Parse modules.txt files into rpm .spec file Provides for bundled dependencies.
|
||||
# Written by Fabio "decathorpe" Valentini <decathorpe@fedoraproject.org> for
|
||||
# the fedora syncthing package: https://src.fedoraproject.org/rpms/syncthing
|
||||
# SPDX-License-Identifier: CC0-1.0 OR Unlicense
|
||||
#
|
||||
# SPDX-License-Identifier: Unlicense
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue