]>
Commit | Line | Data |
---|---|---|
afe332ce JB |
1 | Summary: Synchronize bucket data between object storage APIs like S3, Swift |
2 | Summary(pl.UTF-8): Synchronizacja danych między API przechowywania obiektów, takimi jak S3 czy Swift | |
3 | Name: ceph-obsync | |
4 | Version: 0.53 | |
5 | %define snap 20120927 | |
6 | Release: 0.%{snap}.1 | |
7 | License: LGPL v2.1 | |
8 | Group: Applications/Networking | |
9 | # git clone git://github.com/ceph/obsync.git | |
10 | Source0: obsync.tar.xz | |
11 | # Source0-md5: 601e3528539f7d23e77aa4316d012c64 | |
12 | URL: http://ceph.newdream.net/ | |
13 | BuildRequires: rpm-pythonprov | |
14 | BuildRequires: sed >= 4.0 | |
15 | BuildRequires: tar >= 1:1.22 | |
16 | BuildRequires: xz | |
17 | Requires: python | |
18 | Requires: python-boto | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | obsync is a tool to synchronize objects between cloud object storage | |
23 | providers, such as Amazon S3 (or compatible services), a Ceph RADOS | |
24 | cluster, or a local directory. | |
25 | ||
26 | %description -l pl.UTF-8 | |
27 | obsync to narzędzie do synchronizacji obiektów między systemami | |
28 | przechowującymi obiekty w chmurze, takimi jak Amazon S3 (lub serwisy | |
29 | kompatybilne) a klastrem Ceph RADOS lub katalogiem lokalnym. | |
30 | ||
31 | %prep | |
32 | %setup -q -n obsync | |
33 | ||
34 | %{__sed} -i -e '1s,/usr/bin/env python,/usr/bin/python,' obsync | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1} | |
39 | ||
40 | install boto_tool obsync $RPM_BUILD_ROOT%{_bindir} | |
41 | install boto_del.py $RPM_BUILD_ROOT%{_bindir}/boto_del | |
42 | cp -p obsync.1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
43 | ||
44 | %clean | |
45 | rm -rf $RPM_BUILD_ROOT | |
46 | ||
47 | %files | |
48 | %defattr(644,root,root,755) | |
49 | %attr(755,root,root) %{_bindir}/boto_del | |
50 | %attr(755,root,root) %{_bindir}/boto_tool | |
51 | %attr(755,root,root) %{_bindir}/obsync | |
52 | %{_mandir}/man1/obsync.1* |