Alexei Sorokin 2015-08-23 17:10:19 +00:00 committed by Git OBS Bridge
parent 16c09c1c61
commit 94ab6880fa

View File

@ -28,7 +28,7 @@ Source1: %{name}.firewall
BuildRequires: go >= 1.3
BuildRequires: systemd
BuildRequires: systemd-rpm-macros
%go_exclusivearch
%go_provides
%description
Syncthing replaces proprietary sync and cloud services with
@ -48,10 +48,10 @@ sed -i '/^RestartForceExitStatus=/d;s/^\(SuccessExitStatus=\).*$/\12/' \
%build
echo "v%{version}" | tee RELEASE
%goprep github.com/%{name}/%{name}
go run build.go -no-upgrade build
go run build.go $BUILDFLAGS -no-upgrade
%install
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 etc/linux-systemd/system/%{name}@.service \
%{buildroot}%{_unitdir}/%{name}@.service
install -Dm 0644 etc/linux-systemd/user/%{name}.service \