SHA256
1
0
forked from pool/syncthing
Alexei Sorokin 2016-01-12 08:23:33 +00:00 committed by Git OBS Bridge
parent 5a4b5de5b7
commit a73390ee4f
2 changed files with 6 additions and 26 deletions

View File

@ -1,9 +1,3 @@
-------------------------------------------------------------------
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

View File

@ -25,23 +25,9 @@ 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: golang-packaging BuildRequires: go >= 1.3
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
%description %description
Syncthing replaces proprietary sync and cloud services with Syncthing replaces proprietary sync and cloud services with
@ -59,13 +45,13 @@ sed -i '/^RestartForceExitStatus=/d;s/^\(SuccessExitStatus=\).*$/\12/' \
%endif %endif
%build %build
%goprep github.com/syncthing/syncthing export GOPATH="$PWD/build"
# go install -v -ldflags -w -tags noupgrade ./cmd/... mkdir -p build/src/github.com/%{name}/%{name}
%gobuild -tags "noupgrade" ... ls | sed '/^build$/d' | xargs cp -at build/src/github.com/%{name}/%{name}
go run build.go -no-upgrade
%install %install
# go is statically build, so syncthing binary is enough install -Dm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
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 \