forked from onuralpszr/syncthing_rpm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsyncthing.spec
120 lines (86 loc) · 3.14 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
%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.14.4
Release:1.0%{?dist}
Summary:Syncthing
License:MIT
URL: http://syncthing.net/
Source0: SOURCES/%{name}-linux-%{altarch}-v%{version}.tar.gz
Source1: [email protected]
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
* Wed Aug 11 2016 Ben Ooijevaar <[email protected]> 0.14.4-1
- Version bump
* Wed Jul 27 2016 Ben Ooijevaar <[email protected]> 0.14.2-1
- Version bump
* Mon Aug 10 2015 Ben Ooijevaar <[email protected]> 0.11.19-1
- Version bump
* Mon Aug 03 2015 Richard Monk <[email protected]> 0.11.18-1
- Version bump
* Sun Jul 26 2015 Richard Monk <[email protected]> 0.11.17-1
- Version bump
* Mon Jul 20 2015 Richard Monk <[email protected]> 0.11.16-1
- Version bump
* Tue Jul 14 2015 Richard Monk <[email protected]> 0.11.15-1
- Version bump
* Tue Jul 07 2015 Richard Monk <[email protected]> 0.11.13-1
- Version update
* 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