forked from pool/syncthing
Accepting request 353066 from home:MargueriteSu:branches:devel:languages:go
OBS-URL: https://build.opensuse.org/request/show/353066 OBS-URL: https://build.opensuse.org/package/show/network/syncthing?expand=0&rev=50
This commit is contained in:
parent
235f7752b7
commit
5a4b5de5b7
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Jan 11 11:28:00 UTC 2016 - i@marguerite.su
|
||||||
|
|
||||||
|
- fix build w/ latest go/golang-packaging
|
||||||
|
- add missing buildrequires
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jan 11 07:46:12 UTC 2016 - sor.alexei@meowr.ru
|
Mon Jan 11 07:46:12 UTC 2016 - sor.alexei@meowr.ru
|
||||||
|
|
||||||
|
@ -25,9 +25,22 @@ Group: Productivity/Networking/File-Sharing
|
|||||||
Url: https://syncthing.net/
|
Url: https://syncthing.net/
|
||||||
Source: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-source-v%{version}.tar.gz
|
Source: https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-source-v%{version}.tar.gz
|
||||||
Source1: %{name}.firewall
|
Source1: %{name}.firewall
|
||||||
BuildRequires: go >= 1.3
|
BuildRequires: golang-packaging
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
|
BuildRequires: golang(github.com/bkaradzic/go-lz4)
|
||||||
|
BuildRequires: golang(github.com/calmh/du)
|
||||||
|
BuildRequires: golang(github.com/calmh/luhn)
|
||||||
|
BuildRequires: golang(github.com/calmh/xdr)
|
||||||
|
BuildRequires: golang(github.com/juju/ratelimit)
|
||||||
|
BuildRequires: golang(github.com/kardianos/osext)
|
||||||
|
BuildRequires: golang(github.com/rcrowley/go-metrics)
|
||||||
|
BuildRequires: golang(github.com/syndtr/goleveldb)
|
||||||
|
BuildRequires: golang(github.com/thejerf/suture)
|
||||||
|
BuildRequires: golang(github.com/vitrun/qart)
|
||||||
|
BuildRequires: golang(golang.org/x/crypto)
|
||||||
|
BuildRequires: golang(golang.org/x/net)
|
||||||
|
BuildRequires: golang(golang.org/x/text)
|
||||||
%go_provides
|
%go_provides
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -46,13 +59,13 @@ sed -i '/^RestartForceExitStatus=/d;s/^\(SuccessExitStatus=\).*$/\12/' \
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export GOPATH="$PWD/build"
|
%goprep github.com/syncthing/syncthing
|
||||||
mkdir -p build/src/github.com/%{name}/%{name}
|
# go install -v -ldflags -w -tags noupgrade ./cmd/...
|
||||||
ls | sed '/^build$/d' | xargs cp -at build/src/github.com/%{name}/%{name}
|
%gobuild -tags "noupgrade" ...
|
||||||
go run build.go -no-upgrade
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -Dm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
|
# go is statically build, so syncthing binary is enough
|
||||||
|
install -Dm 0755 %{_builddir}/go/bin/%{name} %{buildroot}%{_bindir}/%{name}
|
||||||
install -Dm 0644 etc/linux-systemd/system/%{name}@.service \
|
install -Dm 0644 etc/linux-systemd/system/%{name}@.service \
|
||||||
%{buildroot}%{_unitdir}/%{name}@.service
|
%{buildroot}%{_unitdir}/%{name}@.service
|
||||||
install -Dm 0644 etc/linux-systemd/user/%{name}.service \
|
install -Dm 0644 etc/linux-systemd/user/%{name}.service \
|
||||||
|
Loading…
Reference in New Issue
Block a user