forked from onuralpszr/syncthing_rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
syncthing.spec
97 lines (71 loc) · 2.6 KB
/
syncthing.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
%global debug_package %{nil}
%ifarch x86_64
%global altarch amd64
%endif
%ifarch %{ix86}
%global altarch 386
%endif
%ifarch %{arm}
%global altarch armv7
%endif
Name:syncthing
Version:0.10.30
Release:1.0%{?dist}
Summary:Syncthing
License:MIT
URL:http://syncthing.net/
Source0:https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-linux-%{altarch}-v%{version}.tar.gz
Source1: [email protected]
Source2: %{name}-linux-386-v%{version}.tar.gz
ExclusiveArch: x86_64 %{ix86}
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
Syncthing replaces Dropbox and BitTorrent Sync 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.
Using syncthing, that control is returned to you.
%prep
%setup -c
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -p -m 0755 %{name}-linux-%{altarch}-v%{version}/syncthing %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{S:1} %{buildroot}%{_unitdir}
%post
%systemd_post %{name}@.service
%preun
%systemd_preun %{name}@.service
%postun
%systemd_postun_with_restart %{name}@.service
%files
%doc %{name}-linux-%{altarch}-v%{version}/README.txt %{name}-linux-%{altarch}-v%{version}/LICENSE.txt %{name}-linux-%{altarch}-v%{version}/AUTHORS.txt
%{_bindir}/syncthing
%{_unitdir}/%{name}@.service
%changelog
* Sat Sep 20 2014 Onuralp SEZER <[email protected]> 0.9.17-2.0
- Version update to v0.9.17
* Fri Sep 12 2014 Onuralp SEZER <[email protected]> 0.9.15-9
- Version update to v0.9.15
* Wed Sep 10 2014 Onuralp SEZER <[email protected]> 0.9.14-8
- Version updated to v0.9.14
- Spec files fixed
* Tue Sep 9 2014 Onuralp SEZER <[email protected]> 0.9.13-7
- Version updated to v0.9.13
* Mon Sep 1 2014 Onuralp SEZER <[email protected]> 0.9.10-6
- Version updated to v0.9.10
- Spec files dates fixed and re-checked.
* Wed Aug 27 2014 Onuralp SEZER <[email protected]> 0.9.9-5
- Version updated to v0.9.9
- Readme fixes
- Source folder path fixed
* Mon Aug 25 2014 Onuralp SEZER <[email protected]> 0.9.8-4
- Version updated to v0.9.8
* Sun Aug 17 2014 Onuralp SEZER <[email protected]> 0.9.5-3
- Version updated to v0.9.5
* Sat Aug 16 2014 Onuralp SEZER <[email protected]> 0.9.4-2
- Version updated to v0.9.4
* Mon Jul 28 2014 Onuralp SEZER <[email protected]> 0.8.21-1
- Initial Version