Mageia Bugzilla – Attachment 12718 Details for
Bug 28957
syncthing, NEW RPM REQUEST
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file
syncthing.spec (text/x-matlab), 15.63 KB, created by
Kristoffer Grundström
on 2021-05-22 06:53:00 CEST
(
hide
)
Description:
Proposal spec file
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2021-05-22 06:53:00 CEST
Size:
15.63 KB
patch
obsolete
>%bcond_with devel > >Name: syncthing >Summary: Continuous File Synchronization >Version: 1.16.1 >Release: %mkrel 1 > >%global goipath github.com/syncthing/syncthing > >%gometa > ># syncthing (MPLv2.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 CC0 and ISC) >License: MPLv2.0 and MIT and OFL and CC-BY and BSD and ASL 2.0 and CC0 and ISC > >URL: https://syncthing.net ># use official release tarball (contains vendored dependencies) >Source0: %{gourl}/releases/download/%{tag}/%{name}-source-v%{version}.tar.gz > ># rejected patch to fix tests running out of memory on 32 bit arches ># See: https://github.com/syncthing/syncthing/issues/6209 >Patch0: https://github.com/imsodin/syncthing/commit/0d64427.patch > >BuildRequires: desktop-file-utils >BuildRequires: systemd > >%{?systemd_requires} > ># assets in gui/default/vendor/* >Provides: bundled(angular) = 1.3.20 >Provides: bundled(angular-dirPagination) = 759009c >Provides: bundled(angular-sanitize) = 1.3.20 >Provides: bundled(angular-translate) = 2.9.0.1 >Provides: bundled(angular-translate-loader-static-files) = 2.11.0 >Provides: bundled(bootstrap) = 3.3.6 >Provides: bundled(daterangepicker) = 3.0.0 >Provides: bundled(ForkAwesome) = 1.1.2 >Provides: bundled(jquery) = 2.2.2 >Provides: bundled(jquery-fancytree) = 2.28.1 >Provides: bundled(jquery-ui) = 1.12.1 >Provides: bundled(moment) = 2.19.4 > ># automatically generated Provides for bundled go dependencies ># 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)) = 7468b85 ># github.com/AudriusButkevicius/recli : MPLv2.0 >Provides: bundled(golang(github.com/AudriusButkevicius/recli)) = 0.0.5 ># github.com/Azure/go-ntlmssp : MIT >Provides: bundled(golang(github.com/Azure/go-ntlmssp)) = 6637195 ># github.com/StackExchange/wmi : MIT >Provides: bundled(golang(github.com/StackExchange/wmi)) = cbe6696 ># github.com/alecthomas/kong : MIT >Provides: bundled(golang(github.com/alecthomas/kong)) = 0.2.12 ># github.com/beorn7/perks : MIT >Provides: bundled(golang(github.com/beorn7/perks)) = 1.0.1 ># github.com/bkaradzic/go-lz4 : BSD >Provides: bundled(golang(github.com/bkaradzic/go-lz4)) = 7224d8d ># github.com/calmh/xdr : MIT >Provides: bundled(golang(github.com/calmh/xdr)) = 1.1.0 ># github.com/ccding/go-stun : ASL 2.0 >Provides: bundled(golang(github.com/ccding/go-stun)) = 0.1.3 ># github.com/certifi/gocertifi : MPLv2.0 >Provides: bundled(golang(github.com/certifi/gocertifi)) = 2c3bb06 ># github.com/cespare/xxhash : MIT >Provides: bundled(golang(github.com/cespare/xxhash/v2)) = 2.1.1 ># github.com/cheekybits/genny : MIT >Provides: bundled(golang(github.com/cheekybits/genny)) = 1.0.0 ># github.com/chmduquesne/rollinghash : MIT >Provides: bundled(golang(github.com/chmduquesne/rollinghash)) = a60f8e7 ># github.com/cpuguy83/go-md2man : MIT >Provides: bundled(golang(github.com/cpuguy83/go-md2man/v2)) = f79a8a8 ># github.com/d4l3k/messagediff : MIT >Provides: bundled(golang(github.com/d4l3k/messagediff)) = 1.2.1 ># github.com/dchest/siphash : CC0 >Provides: bundled(golang(github.com/dchest/siphash)) = 1.2.2 ># github.com/flynn-archive/go-shlex : ASL 2.0 >Provides: bundled(golang(github.com/flynn-archive/go-shlex)) = 3f9db97 ># github.com/getsentry/raven-go : BSD >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.1 ># github.com/go-ldap/ldap : MIT >Provides: bundled(golang(github.com/go-ldap/ldap/v3)) = 3.2.4 ># github.com/go-ole/go-ole : MIT >Provides: bundled(golang(github.com/go-ole/go-ole)) = 1.2.4 ># github.com/gobwas/glob : MIT >Provides: bundled(golang(github.com/gobwas/glob)) = 0.2.3 ># github.com/gogo/protobuf : BSD >Provides: bundled(golang(github.com/gogo/protobuf)) = 1.3.1 ># github.com/golang/groupcache : ASL 2.0 >Provides: bundled(golang(github.com/golang/groupcache)) = 8c9f03a ># github.com/golang/protobuf : BSD >Provides: bundled(golang(github.com/golang/protobuf)) = 1.4.3 ># github.com/golang/snappy : BSD >Provides: bundled(golang(github.com/golang/snappy)) = 0.0.1 ># github.com/greatroar/blobloom : ASL 2.0 >Provides: bundled(golang(github.com/greatroar/blobloom)) = 0.5.0 ># github.com/hashicorp/golang-lru : MPLv2.0 >Provides: bundled(golang(github.com/hashicorp/golang-lru)) = 0.5.1 ># github.com/jackpal/gateway : BSD >Provides: bundled(golang(github.com/jackpal/gateway)) = 1.0.6 ># github.com/jackpal/go-nat-pmp : ASL 2.0 >Provides: bundled(golang(github.com/jackpal/go-nat-pmp)) = 1.0.2 ># github.com/julienschmidt/httprouter : BSD >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/lib/pq : MIT >Provides: bundled(golang(github.com/lib/pq)) = 1.8.0 ># github.com/lucas-clemente/quic-go : MIT >Provides: bundled(golang(github.com/lucas-clemente/quic-go)) = 0.19.3 ># github.com/marten-seemann/qtls : BSD >Provides: bundled(golang(github.com/marten-seemann/qtls)) = 0.10.0 ># github.com/marten-seemann/qtls-go1-15 : BSD >Provides: bundled(golang(github.com/marten-seemann/qtls-go1-15)) = 0.1.1 ># github.com/maruel/panicparse : ASL 2.0 >Provides: bundled(golang(github.com/maruel/panicparse)) = 1.5.1 ># github.com/mattn/go-isatty : MIT >Provides: bundled(golang(github.com/mattn/go-isatty)) = 0.0.12 ># github.com/matttproud/golang_protobuf_extensions : ASL 2.0 >Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = 1.0.1 ># github.com/maxbrunsfeld/counterfeiter : MIT >Provides: bundled(golang(github.com/maxbrunsfeld/counterfeiter/v6)) = 6.3.0 ># github.com/minio/sha256-simd : ASL 2.0 >Provides: bundled(golang(github.com/minio/sha256-simd)) = 0.1.1 ># github.com/miscreant/miscreant.go : MIT >Provides: bundled(golang(github.com/miscreant/miscreant.go)) = 26d3763 ># github.com/niemeyer/pretty : MIT >Provides: bundled(golang(github.com/niemeyer/pretty)) = a10e7ca ># github.com/onsi/gomega : MIT >Provides: bundled(golang(github.com/onsi/gomega)) = 1.10.3 ># github.com/oschwald/geoip2-golang : ISC >Provides: bundled(golang(github.com/oschwald/geoip2-golang)) = 1.4.0 ># github.com/oschwald/maxminddb-golang : ISC >Provides: bundled(golang(github.com/oschwald/maxminddb-golang)) = 1.6.0 ># github.com/petermattis/goid : ASL 2.0 >Provides: bundled(golang(github.com/petermattis/goid)) = b0b1615 ># github.com/pkg/errors : BSD >Provides: bundled(golang(github.com/pkg/errors)) = 0.9.1 ># github.com/prometheus/client_golang : ASL 2.0 >Provides: bundled(golang(github.com/prometheus/client_golang)) = 1.8.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.14.0 ># github.com/prometheus/procfs : ASL 2.0 >Provides: bundled(golang(github.com/prometheus/procfs)) = 0.2.0 ># github.com/rcrowley/go-metrics : BSD >Provides: bundled(golang(github.com/rcrowley/go-metrics)) = 10cdbea ># github.com/russross/blackfriday : BSD >Provides: bundled(golang(github.com/russross/blackfriday/v2)) = 2.0.1 ># github.com/sasha-s/go-deadlock : ASL 2.0 >Provides: bundled(golang(github.com/sasha-s/go-deadlock)) = 0.2.0 ># github.com/shirou/gopsutil : BSD >Provides: bundled(golang(github.com/shirou/gopsutil/v3)) = 3.20.11 ># github.com/shurcooL/sanitized_anchor_name : MIT >Provides: bundled(golang(github.com/shurcooL/sanitized_anchor_name)) = 1.0.0 ># github.com/syncthing/notify : MIT >Provides: bundled(golang(github.com/syncthing/notify)) = f45149b ># github.com/syndtr/goleveldb : BSD >Provides: bundled(golang(github.com/syndtr/goleveldb)) = d9e9293 ># github.com/thejerf/suture : MIT >Provides: bundled(golang(github.com/thejerf/suture/v4)) = 4.0.0 ># github.com/urfave/cli : MIT >Provides: bundled(golang(github.com/urfave/cli)) = 1.22.4 ># github.com/vitrun/qart : ASL 2.0 and BSD >Provides: bundled(golang(github.com/vitrun/qart)) = bf64b92 ># golang.org/x/crypto : BSD >Provides: bundled(golang(golang.org/x/crypto)) = 9e8e0b3 ># golang.org/x/net : BSD >Provides: bundled(golang(golang.org/x/net)) = ff519b6 ># golang.org/x/sys : BSD >Provides: bundled(golang(golang.org/x/sys)) = b64e53b ># golang.org/x/text: BSD >Provides: bundled(golang(golang.org/x/text)) = 0.3.4 ># golang.org/x/time : BSD >Provides: bundled(golang(golang.org/x/time)) = 3af7569 ># golang.org/x/tools : BSD >Provides: bundled(golang(golang.org/x/tools)) = 0.1.0 ># google.golang.org/protobuf : BSD >Provides: bundled(golang(google.golang.org/protobuf)) = 1.23.0 ># github.com/go-check/check : BSD >Provides: bundled(golang(gopkg.in/check.v1)) = 038fdea > ># an inotify filesystem watcher is integrated with syncthing now >Provides: syncthing-inotify = 0.8.7-5 >Obsoletes: syncthing-inotify < 0.8.7-5 > ># command line interface for syncthing was merged into main binary >Obsoletes: syncthing-cli < 1.15.1-1 > >%description >Syncthing replaces other file synchronization services with something >open, trustworthy and decentralized. Your data is your data alone and >you deserve to choose where it is stored, if it is shared with some >third party and how it's transmitted over the Internet. Using syncthing, >that control is returned to you. > >This package contains the syncthing client binary and systemd services. > >%if %{with devel} >%package devel >Summary: Continuous File Synchronization (development files) >BuildArch: noarch > >%description devel >Syncthing replaces other file synchronization services with something >open, trustworthy and decentralized. Your data is your data alone and >you deserve to choose where it is stored, if it is shared with some >third party and how it's transmitted over the Internet. Using syncthing, >that control is returned to you. > >This package contains the syncthing sources, which are needed as >dependency for building packages using syncthing. >%endif > >%package tools >Summary: Continuous File Synchronization (server tools) > >%description tools >Syncthing replaces other file synchronization services with something >open, trustworthy and decentralized. Your data is your data alone and >you deserve to choose where it is stored, if it is shared with some >third party and how it's transmitted over the Internet. Using syncthing, >that control is returned to you. > >This package contains the main syncthing server tools: > >* strelaysrv / strelaypoolsrv, the syncthing relay server for indirect > file transfers between client nodes, and >* stdiscosrv, the syncthing discovery server for discovering nodes > to connect to indirectly over the internet. > >%prep >%autosetup -n %{name} -p1 > >%build >export GO111MODULE=off > ># remove bundled libraries >#rm -r vendor > ># prepare build environment >mkdir -p ./_build/src/github.com/syncthing > >TOP=$(pwd) >pushd _build/src/github.com/syncthing >ln -s $TOP syncthing >popd > >export GOPATH=$(pwd)/_build:%{gopath} >export BUILDDIR=$(pwd)/_build/src/%{goipath} > ># compile assets used by the build process >pushd _build/src/%{goipath} >go run build.go assets >rm build.go >popd > ># set variables expected by syncthing binaries as additional FOOFLAGS >export BUILD_HOST=fedora-koji >export COMMON_LDFLAGS="-X %{goipath}/lib/build.Version=%{tag} -X %{goipath}/lib/build.Stamp=$SOURCE_DATE_EPOCH -X %{goipath}/lib/build.User=$USER -X %{goipath}/lib/build.Host=$BUILD_HOST" >export BUILDTAGS="noupgrade" > >export LDFLAGS="-X %{goipath}/lib/build.Program=syncthing $COMMON_LDFLAGS" >%gobuild -o _bin/syncthing %{goipath}/cmd/syncthing > >export LDFLAGS="-X %{goipath}/lib/build.Program=stdiscosrv $COMMON_LDFLAGS" >%gobuild -o _bin/stdiscosrv %{goipath}/cmd/stdiscosrv > >export LDFLAGS="-X %{goipath}/lib/build.Program=strelaysrv $COMMON_LDFLAGS" >%gobuild -o _bin/strelaysrv %{goipath}/cmd/strelaysrv > >export LDFLAGS="-X %{goipath}/lib/build.Program=strelaypoolsrv $COMMON_LDFLAGS" >%gobuild -o _bin/strelaypoolsrv %{goipath}/cmd/strelaypoolsrv > >%install >export GO111MODULE=off > ># install binaries >mkdir -p %{buildroot}/%{_bindir} > >cp -pav _bin/syncthing %{buildroot}/%{_bindir}/ >cp -pav _bin/stdiscosrv %{buildroot}/%{_bindir}/ >cp -pav _bin/strelaysrv %{buildroot}/%{_bindir}/ >cp -pav _bin/strelaypoolsrv %{buildroot}/%{_bindir}/ > ># install man pages >mkdir -p %{buildroot}/%{_mandir}/man1 >mkdir -p %{buildroot}/%{_mandir}/man5 >mkdir -p %{buildroot}/%{_mandir}/man7 > >cp -pav ./man/syncthing.1 %{buildroot}/%{_mandir}/man1/ >cp -pav ./man/*.5 %{buildroot}/%{_mandir}/man5/ >cp -pav ./man/*.7 %{buildroot}/%{_mandir}/man7/ >cp -pav ./man/stdiscosrv.1 %{buildroot}/%{_mandir}/man1/ >cp -pav ./man/strelaysrv.1 %{buildroot}/%{_mandir}/man1/ > ># install systemd units >mkdir -p %{buildroot}/%{_unitdir} >mkdir -p %{buildroot}/%{_userunitdir} > >cp -pav etc/linux-systemd/system/syncthing@.service %{buildroot}/%{_unitdir}/ >cp -pav etc/linux-systemd/system/syncthing-resume.service %{buildroot}/%{_unitdir}/ >cp -pav etc/linux-systemd/user/syncthing.service %{buildroot}/%{_userunitdir}/ > ># unmark source files as executable >for i in $(find -name "*.go" -type f -executable -print); do > chmod a-x $i; >done > >%if %{with devel} >%goinstall >%endif > >%check >export LANG=C.utf8 >export GOPATH=$(pwd)/_build:%{gopath} >export GO111MODULE=off > >%gotest %{goipath}/cmd/stdiscosrv >%gotest %{goipath}/cmd/strelaypoolsrv >%gotest %{goipath}/cmd/syncthing > >%gotest %{goipath}/lib/api >%gotest %{goipath}/lib/beacon >%gotest %{goipath}/lib/config >%gotest %{goipath}/lib/connections >%gotest %{goipath}/lib/db >%gotest %{goipath}/lib/dialer >%gotest %{goipath}/lib/discover >%gotest %{goipath}/lib/events >%gotest %{goipath}/lib/fs >%gotest %{goipath}/lib/ignore >%gotest %{goipath}/lib/logger > ># This test sometimes fails dependent on load on some architectures: ># https://github.com/syncthing/syncthing/issues/4370 >%gotest %{goipath}/lib/model || : > >%gotest %{goipath}/lib/nat >%gotest %{goipath}/lib/osutil >%gotest %{goipath}/lib/pmp >%gotest %{goipath}/lib/protocol >%gotest %{goipath}/lib/rand >%gotest %{goipath}/lib/relay/client >%gotest %{goipath}/lib/relay/protocol >%gotest %{goipath}/lib/scanner >%gotest %{goipath}/lib/signature >%gotest %{goipath}/lib/stats >%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 >%gotest %{goipath}/lib/versioner || : > >%gotest %{goipath}/lib/watchaggregator >%gotest %{goipath}/lib/weakhash > >%post >%systemd_post 'syncthing@.service' >%systemd_user_post syncthing.service > >%preun >%systemd_preun 'syncthing@*.service' >%systemd_user_preun syncthing.service > >%postun >%systemd_postun_with_restart 'syncthing@*.service' >%systemd_user_postun_with_restart syncthing.service > >%files >%license LICENSE >%doc README.md AUTHORS > >%{_bindir}/syncthing > >%{_mandir}/*/syncthing* > >%{_unitdir}/syncthing@.service >%{_unitdir}/syncthing-resume.service >%{_userunitdir}/syncthing.service > > >%files tools >%license LICENSE >%doc README.md AUTHORS > >%{_bindir}/stdiscosrv >%{_bindir}/strelaysrv >%{_bindir}/strelaypoolsrv > >%{_mandir}/man1/stdiscosrv* >%{_mandir}/man1/strelaysrv* > >%if %{with devel} >%files devel -f devel.file-list >%license LICENSE >%doc README.md AUTHORS >%endif
%bcond_with devel Name: syncthing Summary: Continuous File Synchronization Version: 1.16.1 Release: %mkrel 1 %global goipath github.com/syncthing/syncthing %gometa # syncthing (MPLv2.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 CC0 and ISC) License: MPLv2.0 and MIT and OFL and CC-BY and BSD and ASL 2.0 and CC0 and ISC URL: https://syncthing.net # use official release tarball (contains vendored dependencies) Source0: %{gourl}/releases/download/%{tag}/%{name}-source-v%{version}.tar.gz # rejected patch to fix tests running out of memory on 32 bit arches # See: https://github.com/syncthing/syncthing/issues/6209 Patch0: https://github.com/imsodin/syncthing/commit/0d64427.patch BuildRequires: desktop-file-utils BuildRequires: systemd %{?systemd_requires} # assets in gui/default/vendor/* Provides: bundled(angular) = 1.3.20 Provides: bundled(angular-dirPagination) = 759009c Provides: bundled(angular-sanitize) = 1.3.20 Provides: bundled(angular-translate) = 2.9.0.1 Provides: bundled(angular-translate-loader-static-files) = 2.11.0 Provides: bundled(bootstrap) = 3.3.6 Provides: bundled(daterangepicker) = 3.0.0 Provides: bundled(ForkAwesome) = 1.1.2 Provides: bundled(jquery) = 2.2.2 Provides: bundled(jquery-fancytree) = 2.28.1 Provides: bundled(jquery-ui) = 1.12.1 Provides: bundled(moment) = 2.19.4 # automatically generated Provides for bundled go dependencies # 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)) = 7468b85 # github.com/AudriusButkevicius/recli : MPLv2.0 Provides: bundled(golang(github.com/AudriusButkevicius/recli)) = 0.0.5 # github.com/Azure/go-ntlmssp : MIT Provides: bundled(golang(github.com/Azure/go-ntlmssp)) = 6637195 # github.com/StackExchange/wmi : MIT Provides: bundled(golang(github.com/StackExchange/wmi)) = cbe6696 # github.com/alecthomas/kong : MIT Provides: bundled(golang(github.com/alecthomas/kong)) = 0.2.12 # github.com/beorn7/perks : MIT Provides: bundled(golang(github.com/beorn7/perks)) = 1.0.1 # github.com/bkaradzic/go-lz4 : BSD Provides: bundled(golang(github.com/bkaradzic/go-lz4)) = 7224d8d # github.com/calmh/xdr : MIT Provides: bundled(golang(github.com/calmh/xdr)) = 1.1.0 # github.com/ccding/go-stun : ASL 2.0 Provides: bundled(golang(github.com/ccding/go-stun)) = 0.1.3 # github.com/certifi/gocertifi : MPLv2.0 Provides: bundled(golang(github.com/certifi/gocertifi)) = 2c3bb06 # github.com/cespare/xxhash : MIT Provides: bundled(golang(github.com/cespare/xxhash/v2)) = 2.1.1 # github.com/cheekybits/genny : MIT Provides: bundled(golang(github.com/cheekybits/genny)) = 1.0.0 # github.com/chmduquesne/rollinghash : MIT Provides: bundled(golang(github.com/chmduquesne/rollinghash)) = a60f8e7 # github.com/cpuguy83/go-md2man : MIT Provides: bundled(golang(github.com/cpuguy83/go-md2man/v2)) = f79a8a8 # github.com/d4l3k/messagediff : MIT Provides: bundled(golang(github.com/d4l3k/messagediff)) = 1.2.1 # github.com/dchest/siphash : CC0 Provides: bundled(golang(github.com/dchest/siphash)) = 1.2.2 # github.com/flynn-archive/go-shlex : ASL 2.0 Provides: bundled(golang(github.com/flynn-archive/go-shlex)) = 3f9db97 # github.com/getsentry/raven-go : BSD 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.1 # github.com/go-ldap/ldap : MIT Provides: bundled(golang(github.com/go-ldap/ldap/v3)) = 3.2.4 # github.com/go-ole/go-ole : MIT Provides: bundled(golang(github.com/go-ole/go-ole)) = 1.2.4 # github.com/gobwas/glob : MIT Provides: bundled(golang(github.com/gobwas/glob)) = 0.2.3 # github.com/gogo/protobuf : BSD Provides: bundled(golang(github.com/gogo/protobuf)) = 1.3.1 # github.com/golang/groupcache : ASL 2.0 Provides: bundled(golang(github.com/golang/groupcache)) = 8c9f03a # github.com/golang/protobuf : BSD Provides: bundled(golang(github.com/golang/protobuf)) = 1.4.3 # github.com/golang/snappy : BSD Provides: bundled(golang(github.com/golang/snappy)) = 0.0.1 # github.com/greatroar/blobloom : ASL 2.0 Provides: bundled(golang(github.com/greatroar/blobloom)) = 0.5.0 # github.com/hashicorp/golang-lru : MPLv2.0 Provides: bundled(golang(github.com/hashicorp/golang-lru)) = 0.5.1 # github.com/jackpal/gateway : BSD Provides: bundled(golang(github.com/jackpal/gateway)) = 1.0.6 # github.com/jackpal/go-nat-pmp : ASL 2.0 Provides: bundled(golang(github.com/jackpal/go-nat-pmp)) = 1.0.2 # github.com/julienschmidt/httprouter : BSD 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/lib/pq : MIT Provides: bundled(golang(github.com/lib/pq)) = 1.8.0 # github.com/lucas-clemente/quic-go : MIT Provides: bundled(golang(github.com/lucas-clemente/quic-go)) = 0.19.3 # github.com/marten-seemann/qtls : BSD Provides: bundled(golang(github.com/marten-seemann/qtls)) = 0.10.0 # github.com/marten-seemann/qtls-go1-15 : BSD Provides: bundled(golang(github.com/marten-seemann/qtls-go1-15)) = 0.1.1 # github.com/maruel/panicparse : ASL 2.0 Provides: bundled(golang(github.com/maruel/panicparse)) = 1.5.1 # github.com/mattn/go-isatty : MIT Provides: bundled(golang(github.com/mattn/go-isatty)) = 0.0.12 # github.com/matttproud/golang_protobuf_extensions : ASL 2.0 Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = 1.0.1 # github.com/maxbrunsfeld/counterfeiter : MIT Provides: bundled(golang(github.com/maxbrunsfeld/counterfeiter/v6)) = 6.3.0 # github.com/minio/sha256-simd : ASL 2.0 Provides: bundled(golang(github.com/minio/sha256-simd)) = 0.1.1 # github.com/miscreant/miscreant.go : MIT Provides: bundled(golang(github.com/miscreant/miscreant.go)) = 26d3763 # github.com/niemeyer/pretty : MIT Provides: bundled(golang(github.com/niemeyer/pretty)) = a10e7ca # github.com/onsi/gomega : MIT Provides: bundled(golang(github.com/onsi/gomega)) = 1.10.3 # github.com/oschwald/geoip2-golang : ISC Provides: bundled(golang(github.com/oschwald/geoip2-golang)) = 1.4.0 # github.com/oschwald/maxminddb-golang : ISC Provides: bundled(golang(github.com/oschwald/maxminddb-golang)) = 1.6.0 # github.com/petermattis/goid : ASL 2.0 Provides: bundled(golang(github.com/petermattis/goid)) = b0b1615 # github.com/pkg/errors : BSD Provides: bundled(golang(github.com/pkg/errors)) = 0.9.1 # github.com/prometheus/client_golang : ASL 2.0 Provides: bundled(golang(github.com/prometheus/client_golang)) = 1.8.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.14.0 # github.com/prometheus/procfs : ASL 2.0 Provides: bundled(golang(github.com/prometheus/procfs)) = 0.2.0 # github.com/rcrowley/go-metrics : BSD Provides: bundled(golang(github.com/rcrowley/go-metrics)) = 10cdbea # github.com/russross/blackfriday : BSD Provides: bundled(golang(github.com/russross/blackfriday/v2)) = 2.0.1 # github.com/sasha-s/go-deadlock : ASL 2.0 Provides: bundled(golang(github.com/sasha-s/go-deadlock)) = 0.2.0 # github.com/shirou/gopsutil : BSD Provides: bundled(golang(github.com/shirou/gopsutil/v3)) = 3.20.11 # github.com/shurcooL/sanitized_anchor_name : MIT Provides: bundled(golang(github.com/shurcooL/sanitized_anchor_name)) = 1.0.0 # github.com/syncthing/notify : MIT Provides: bundled(golang(github.com/syncthing/notify)) = f45149b # github.com/syndtr/goleveldb : BSD Provides: bundled(golang(github.com/syndtr/goleveldb)) = d9e9293 # github.com/thejerf/suture : MIT Provides: bundled(golang(github.com/thejerf/suture/v4)) = 4.0.0 # github.com/urfave/cli : MIT Provides: bundled(golang(github.com/urfave/cli)) = 1.22.4 # github.com/vitrun/qart : ASL 2.0 and BSD Provides: bundled(golang(github.com/vitrun/qart)) = bf64b92 # golang.org/x/crypto : BSD Provides: bundled(golang(golang.org/x/crypto)) = 9e8e0b3 # golang.org/x/net : BSD Provides: bundled(golang(golang.org/x/net)) = ff519b6 # golang.org/x/sys : BSD Provides: bundled(golang(golang.org/x/sys)) = b64e53b # golang.org/x/text: BSD Provides: bundled(golang(golang.org/x/text)) = 0.3.4 # golang.org/x/time : BSD Provides: bundled(golang(golang.org/x/time)) = 3af7569 # golang.org/x/tools : BSD Provides: bundled(golang(golang.org/x/tools)) = 0.1.0 # google.golang.org/protobuf : BSD Provides: bundled(golang(google.golang.org/protobuf)) = 1.23.0 # github.com/go-check/check : BSD Provides: bundled(golang(gopkg.in/check.v1)) = 038fdea # an inotify filesystem watcher is integrated with syncthing now Provides: syncthing-inotify = 0.8.7-5 Obsoletes: syncthing-inotify < 0.8.7-5 # command line interface for syncthing was merged into main binary Obsoletes: syncthing-cli < 1.15.1-1 %description Syncthing replaces other file synchronization services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet. Using syncthing, that control is returned to you. This package contains the syncthing client binary and systemd services. %if %{with devel} %package devel Summary: Continuous File Synchronization (development files) BuildArch: noarch %description devel Syncthing replaces other file synchronization services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet. Using syncthing, that control is returned to you. This package contains the syncthing sources, which are needed as dependency for building packages using syncthing. %endif %package tools Summary: Continuous File Synchronization (server tools) %description tools Syncthing replaces other file synchronization services with something open, trustworthy and decentralized. Your data is your data alone and you deserve to choose where it is stored, if it is shared with some third party and how it's transmitted over the Internet. Using syncthing, that control is returned to you. This package contains the main syncthing server tools: * strelaysrv / strelaypoolsrv, the syncthing relay server for indirect file transfers between client nodes, and * stdiscosrv, the syncthing discovery server for discovering nodes to connect to indirectly over the internet. %prep %autosetup -n %{name} -p1 %build export GO111MODULE=off # remove bundled libraries #rm -r vendor # prepare build environment mkdir -p ./_build/src/github.com/syncthing TOP=$(pwd) pushd _build/src/github.com/syncthing ln -s $TOP syncthing popd export GOPATH=$(pwd)/_build:%{gopath} export BUILDDIR=$(pwd)/_build/src/%{goipath} # compile assets used by the build process pushd _build/src/%{goipath} go run build.go assets rm build.go popd # set variables expected by syncthing binaries as additional FOOFLAGS export BUILD_HOST=fedora-koji export COMMON_LDFLAGS="-X %{goipath}/lib/build.Version=%{tag} -X %{goipath}/lib/build.Stamp=$SOURCE_DATE_EPOCH -X %{goipath}/lib/build.User=$USER -X %{goipath}/lib/build.Host=$BUILD_HOST" export BUILDTAGS="noupgrade" export LDFLAGS="-X %{goipath}/lib/build.Program=syncthing $COMMON_LDFLAGS" %gobuild -o _bin/syncthing %{goipath}/cmd/syncthing export LDFLAGS="-X %{goipath}/lib/build.Program=stdiscosrv $COMMON_LDFLAGS" %gobuild -o _bin/stdiscosrv %{goipath}/cmd/stdiscosrv export LDFLAGS="-X %{goipath}/lib/build.Program=strelaysrv $COMMON_LDFLAGS" %gobuild -o _bin/strelaysrv %{goipath}/cmd/strelaysrv export LDFLAGS="-X %{goipath}/lib/build.Program=strelaypoolsrv $COMMON_LDFLAGS" %gobuild -o _bin/strelaypoolsrv %{goipath}/cmd/strelaypoolsrv %install export GO111MODULE=off # install binaries mkdir -p %{buildroot}/%{_bindir} cp -pav _bin/syncthing %{buildroot}/%{_bindir}/ cp -pav _bin/stdiscosrv %{buildroot}/%{_bindir}/ cp -pav _bin/strelaysrv %{buildroot}/%{_bindir}/ cp -pav _bin/strelaypoolsrv %{buildroot}/%{_bindir}/ # install man pages mkdir -p %{buildroot}/%{_mandir}/man1 mkdir -p %{buildroot}/%{_mandir}/man5 mkdir -p %{buildroot}/%{_mandir}/man7 cp -pav ./man/syncthing.1 %{buildroot}/%{_mandir}/man1/ cp -pav ./man/*.5 %{buildroot}/%{_mandir}/man5/ cp -pav ./man/*.7 %{buildroot}/%{_mandir}/man7/ cp -pav ./man/stdiscosrv.1 %{buildroot}/%{_mandir}/man1/ cp -pav ./man/strelaysrv.1 %{buildroot}/%{_mandir}/man1/ # install systemd units mkdir -p %{buildroot}/%{_unitdir} mkdir -p %{buildroot}/%{_userunitdir} cp -pav etc/linux-systemd/system/syncthing@.service %{buildroot}/%{_unitdir}/ cp -pav etc/linux-systemd/system/syncthing-resume.service %{buildroot}/%{_unitdir}/ cp -pav etc/linux-systemd/user/syncthing.service %{buildroot}/%{_userunitdir}/ # unmark source files as executable for i in $(find -name "*.go" -type f -executable -print); do chmod a-x $i; done %if %{with devel} %goinstall %endif %check export LANG=C.utf8 export GOPATH=$(pwd)/_build:%{gopath} export GO111MODULE=off %gotest %{goipath}/cmd/stdiscosrv %gotest %{goipath}/cmd/strelaypoolsrv %gotest %{goipath}/cmd/syncthing %gotest %{goipath}/lib/api %gotest %{goipath}/lib/beacon %gotest %{goipath}/lib/config %gotest %{goipath}/lib/connections %gotest %{goipath}/lib/db %gotest %{goipath}/lib/dialer %gotest %{goipath}/lib/discover %gotest %{goipath}/lib/events %gotest %{goipath}/lib/fs %gotest %{goipath}/lib/ignore %gotest %{goipath}/lib/logger # This test sometimes fails dependent on load on some architectures: # https://github.com/syncthing/syncthing/issues/4370 %gotest %{goipath}/lib/model || : %gotest %{goipath}/lib/nat %gotest %{goipath}/lib/osutil %gotest %{goipath}/lib/pmp %gotest %{goipath}/lib/protocol %gotest %{goipath}/lib/rand %gotest %{goipath}/lib/relay/client %gotest %{goipath}/lib/relay/protocol %gotest %{goipath}/lib/scanner %gotest %{goipath}/lib/signature %gotest %{goipath}/lib/stats %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 %gotest %{goipath}/lib/versioner || : %gotest %{goipath}/lib/watchaggregator %gotest %{goipath}/lib/weakhash %post %systemd_post 'syncthing@.service' %systemd_user_post syncthing.service %preun %systemd_preun 'syncthing@*.service' %systemd_user_preun syncthing.service %postun %systemd_postun_with_restart 'syncthing@*.service' %systemd_user_postun_with_restart syncthing.service %files %license LICENSE %doc README.md AUTHORS %{_bindir}/syncthing %{_mandir}/*/syncthing* %{_unitdir}/syncthing@.service %{_unitdir}/syncthing-resume.service %{_userunitdir}/syncthing.service %files tools %license LICENSE %doc README.md AUTHORS %{_bindir}/stdiscosrv %{_bindir}/strelaysrv %{_bindir}/strelaypoolsrv %{_mandir}/man1/stdiscosrv* %{_mandir}/man1/strelaysrv* %if %{with devel} %files devel -f devel.file-list %license LICENSE %doc README.md AUTHORS %endif
View Attachment As Raw
Actions:
View
Attachments on
bug 28957
: 12718