Skip to content

Commit 4544928

Browse files
committed
Adding arch flag to enable building amd64 and 386 packages
- Bumping syncthing version to latest
1 parent 2b4bff4 commit 4544928

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

SPECS/syncthing.spec

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,30 @@
11
Name: syncthing
2-
Version: 0.12.18
2+
Version: 0.13.1
33
Release: 0%{?dist}
44
Summary: Open, trustworthy and decentralized sync
5+
# Set to amd64 or 386
6+
%define arch amd64
57

68
Group: Applications/System
79
License: MPLv2
810
URL: https://github.com/syncthing/syncthing
9-
Source0: https://github.com/syncthing/syncthing/releases/download/v0.12.17/syncthing-linux-386-v%{version}.tar.gz
11+
Source0: https://github.com/syncthing/syncthing/releases/download/v${version}/syncthing-linux-%{arch}-v%{version}.tar.gz
1012

1113
Requires: policycoreutils-python
1214

1315
%description
14-
Syncthing replaces proprietary sync and cloud services with something open,
15-
trustworthy and decentralized. Your data is your data alone and you deserve
16+
Syncthing replaces proprietary sync and cloud services with something open,
17+
trustworthy and decentralized. Your data is your data alone and you deserve
1618
to choose where it is stored, if it is shared with some third party and how
1719
it's transmitted over the Internet.
1820

1921
%prep
2022
tar -zxf %{SOURCE0}
21-
cd syncthing-linux-386-v%{version}/
23+
cd syncthing-linux-%{arch}-v%{version}/
2224

2325
%install
2426
mkdir -p %{buildroot}/usr/bin/
25-
cd syncthing-linux-386-v%{version}/
27+
cd syncthing-linux-%{arch}-v%{version}/
2628
cp syncthing %{buildroot}/usr/bin/
2729

2830
mkdir -p %{buildroot}/etc/systemd/system/

0 commit comments

Comments
 (0)