Skip to content

Commit

Permalink
Adding arch flag to enable building amd64 and 386 packages
Browse files Browse the repository at this point in the history
- Bumping syncthing version to latest
  • Loading branch information
mlazarov committed May 20, 2016
1 parent 2b4bff4 commit 4544928
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions SPECS/syncthing.spec
Original file line number Diff line number Diff line change
@@ -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/
Expand Down

0 comments on commit 4544928

Please sign in to comment.