]>
Commit | Line | Data |
---|---|---|
38ad0305 | 1 | Summary: Untrusted/encrypted backup using rsync algorithm |
6d436e60 | 2 | Summary(pl.UTF-8): Wykonywanie szyfrowanych kopii zapasowych przy użyciu algorytmu rsync |
38ad0305 | 3 | Name: duplicity |
2de1af2b | 4 | Version: 2.1.1 |
b748bcec | 5 | Release: 2 |
2a3d997f | 6 | License: GPL v2 |
38ad0305 | 7 | Group: Applications/Archiving |
2de1af2b JR |
8 | Source0: https://gitlab.com/duplicity/duplicity/-/archive/rel.%{version}/%{name}-rel.%{version}.tar.bz2 |
9 | # Source0-md5: 7064f8a6b176a8d095406509ddf5451a | |
38ad0305 | 10 | URL: http://www.nongnu.org/duplicity/ |
d11a1ff5 | 11 | BuildRequires: librsync-devel >= 0.9.6 |
2de1af2b JR |
12 | BuildRequires: python3-devel |
13 | BuildRequires: python3-modules | |
3e38e960 | 14 | BuildRequires: rpm-pythonprov |
b748bcec | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
38ad0305 | 16 | Requires: gnupg |
2de1af2b JR |
17 | Requires: python3 |
18 | Requires: python3-lockfile | |
19 | Requires: python3-modules | |
20 | Requires: python3-pexpect >= 2.1 | |
2a3d997f | 21 | Suggests: lftp |
c78abc1a | 22 | Suggests: ncftp |
2de1af2b | 23 | Suggests: python3-boto >= 0.9d |
38ad0305 | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | Duplicity incrementally backs up files and directory by encrypting | |
28 | tar-format volumes with GnuPG and uploading them to a remote (or | |
29 | local) file server. In theory many remote backends are possible; right | |
30 | now only the local or ssh/scp backend is written. Because duplicity | |
31 | uses librsync, the incremental archives are space efficient and only | |
32 | record the parts of files that have changed since the last backup. | |
c1b11424 | 33 | Currently duplicity supports deleted files, full Unix permissions, |
38ad0305 | 34 | directories, symbolic links, fifos, etc., but not hard links. |
35 | ||
ca4eca4e JR |
36 | %description -l pl.UTF-8 |
37 | Duplicity wykonuje przyrostowe kopie zapasowe plików i katalogów | |
38 | poprzez szyfrowanie archiwów w formacie tar przy pomocy GnuPG i | |
39 | przesyłanie ich na zdalny (lub lokalny) serwer plików. W teorii można | |
40 | użyć wiele zdalnych backendów; aktualnie napisane są tylko backendy | |
41 | lokalny oraz ssh/scp. Ponieważ duplicity używa librsync, przyrostowe | |
42 | archiwa wydajnie wykorzystują miejsce dzięki zapisywaniu tylko tych | |
43 | części plików, które zmieniły się od wykonywania poprzedniej kopii. | |
44 | Aktualnie duplicity obsługuje pliki skasowane, pełny uniksowy system | |
45 | uprawnień, katalogi, dowiązania symboliczne, nazwane potoki itp. - ale | |
46 | nie twarde dowiązania. | |
22781442 | 47 | |
38ad0305 | 48 | %prep |
2de1af2b | 49 | %setup -q -n %{name}-rel.%{version} |
38ad0305 | 50 | |
2de1af2b JR |
51 | %{__sed} -E -i -e '1s,#!\s*/usr/bin/env\s+python3(\s|$),#!%{__python3}\1,' \ |
52 | bin/duplicity | |
cb68b1e2 | 53 | |
b748bcec JR |
54 | %{__rm} po/{en_PR,es_EM,es_US,nl_SR,ru_BY,ru_MD,ru_UA,zh_MO,zh_SG}.po |
55 | ||
56 | cd po | |
57 | for f in *.po ; do | |
58 | case $(basename $f .po) in | |
59 | de_AT|en_AU|en_GB|es_MX|es_PR|nl_BE|pt_BR|zh_CN|zh_HK|zh_TW) continue | |
60 | ;; | |
61 | *) %{__mv} $f ${f%%_*}.po | |
62 | ;; | |
63 | esac | |
64 | done | |
65 | ||
38ad0305 | 66 | %build |
2de1af2b | 67 | %py3_build |
38ad0305 | 68 | |
69 | %install | |
70 | rm -rf $RPM_BUILD_ROOT | |
38ad0305 | 71 | |
2de1af2b | 72 | %py3_install |
16ad8a5a | 73 | |
b748bcec | 74 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version} |
9eb12f36 | 75 | |
f920667e | 76 | %find_lang %{name} |
77 | ||
38ad0305 | 78 | %clean |
79 | rm -rf $RPM_BUILD_ROOT | |
80 | ||
f920667e | 81 | %files -f %{name}.lang |
38ad0305 | 82 | %defattr(644,root,root,755) |
2de1af2b | 83 | %doc CHANGELOG.md README*.md |
38ad0305 | 84 | %attr(755,root,root) %{_bindir}/* |
85 | %{_mandir}/man1/*.1* | |
2de1af2b JR |
86 | %dir %{py3_sitedir}/duplicity |
87 | %dir %{py3_sitedir}/duplicity/backends | |
88 | %dir %{py3_sitedir}/duplicity/backends/pyrax_identity | |
89 | %{py3_sitedir}/duplicity/__pycache__ | |
90 | %{py3_sitedir}/duplicity/*.py | |
91 | %{py3_sitedir}/duplicity/backends/__pycache__ | |
92 | %{py3_sitedir}/duplicity/backends/*.py | |
93 | %{py3_sitedir}/duplicity/backends/pyrax_identity/__pycache__ | |
94 | %{py3_sitedir}/duplicity/backends/pyrax_identity/*.py | |
95 | %attr(755,root,root) %{py3_sitedir}/duplicity/*.so | |
96 | %{py3_sitedir}/duplicity-*.egg-info |