This repository has been archived by the owner on Jan 14, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
btsync.spec
75 lines (52 loc) · 1.68 KB
/
btsync.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
%global __filter_GLIBC_PRIVATE 1
Name: btsync
Version: 1.2.82
Release: 1%{?dist}
Summary: BitTorrent Sync
License: Proprietary
URL: http://labs.bittorrent.com/experiments/sync.html
# Sometimes you may need to use the following to get the latest:
# wget -O btsync_x64-%{version}.tar.gz http://download-lb.utorrent.com/endpoint/btsync/os/linux-x64/track/stable
Source0: http://syncapp.bittorrent.com/%{version}/btsync_x64-%{version}.tar.gz
Source1: btsync@.service
Source2: btsync-pre
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
BitTorrent Sync
%prep
%setup -c
%build
%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -p -m 0755 btsync %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{S:1} %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_libexecdir}
install -p -m 0755 %{S:2} %{buildroot}%{_libexecdir}
%post
%systemd_post btsync@.service
%preun
%systemd_preun btsync@.service
%postun
%systemd_postun_with_restart btsync@.service
%files
%doc LICENSE.TXT
%{_bindir}/btsync
%{_unitdir}/btsync@.service
%{_libexecdir}/btsync-pre
%changelog
* Mon Dec 2 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.2.82-1
- Update to 1.2.82
* Fri Nov 8 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.2.68-1
- Update to 1.2.68
* Fri Sep 27 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.1.82-3
- Fix logging in btsync-pre
* Fri Sep 27 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.1.82-2
- Filter out GLIBC_PRIVATE requirements
- Add some comments on how to obtain latest version
* Fri Sep 27 2013 Jeffrey Ollie <jeff@ocjtech.us> - 1.1.82-1
- First version