This commit is contained in:
parent
16c09c1c61
commit
94ab6880fa
@ -28,7 +28,7 @@ Source1: %{name}.firewall
|
|||||||
BuildRequires: go >= 1.3
|
BuildRequires: go >= 1.3
|
||||||
BuildRequires: systemd
|
BuildRequires: systemd
|
||||||
BuildRequires: systemd-rpm-macros
|
BuildRequires: systemd-rpm-macros
|
||||||
%go_exclusivearch
|
%go_provides
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Syncthing replaces proprietary sync and cloud services with
|
Syncthing replaces proprietary sync and cloud services with
|
||||||
@ -48,10 +48,10 @@ sed -i '/^RestartForceExitStatus=/d;s/^\(SuccessExitStatus=\).*$/\12/' \
|
|||||||
%build
|
%build
|
||||||
echo "v%{version}" | tee RELEASE
|
echo "v%{version}" | tee RELEASE
|
||||||
%goprep github.com/%{name}/%{name}
|
%goprep github.com/%{name}/%{name}
|
||||||
go run build.go -no-upgrade build
|
go run build.go $BUILDFLAGS -no-upgrade
|
||||||
|
|
||||||
%install
|
%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 \
|
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…
x
Reference in New Issue
Block a user