From 4544928e5b884f7fb507f21a7a49f90298afb525 Mon Sep 17 00:00:00 2001 From: Martin Lazarov Date: Fri, 20 May 2016 17:07:33 +0300 Subject: [PATCH] Adding arch flag to enable building amd64 and 386 packages - Bumping syncthing version to latest --- SPECS/syncthing.spec | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/SPECS/syncthing.spec b/SPECS/syncthing.spec index a9dd408..d03bbe4 100644 --- a/SPECS/syncthing.spec +++ b/SPECS/syncthing.spec @@ -1,28 +1,30 @@ Name: syncthing -Version: 0.12.18 +Version: 0.13.1 Release: 0%{?dist} Summary: Open, trustworthy and decentralized sync +# Set to amd64 or 386 +%define arch amd64 Group: Applications/System License: MPLv2 URL: https://github.com/syncthing/syncthing -Source0: https://github.com/syncthing/syncthing/releases/download/v0.12.17/syncthing-linux-386-v%{version}.tar.gz +Source0: https://github.com/syncthing/syncthing/releases/download/v${version}/syncthing-linux-%{arch}-v%{version}.tar.gz Requires: policycoreutils-python %description -Syncthing replaces proprietary sync and cloud services with something open, -trustworthy and decentralized. Your data is your data alone and you deserve +Syncthing replaces proprietary sync and cloud 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. %prep tar -zxf %{SOURCE0} -cd syncthing-linux-386-v%{version}/ +cd syncthing-linux-%{arch}-v%{version}/ %install mkdir -p %{buildroot}/usr/bin/ -cd syncthing-linux-386-v%{version}/ +cd syncthing-linux-%{arch}-v%{version}/ cp syncthing %{buildroot}/usr/bin/ mkdir -p %{buildroot}/etc/systemd/system/