]>
Commit | Line | Data |
---|---|---|
23add0dd | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
5 | %include /usr/lib/rpm/macros.perl | |
1f48f9b4 | 6 | %define pdir File |
7 | %define pnam RsyncP | |
66de45ca | 8 | Summary: File::RsyncP - Perl implementation of an rsync client |
93e3e00e | 9 | Summary(pl.UTF-8): File::RsyncP - implementacja klienta rsync w Perlu |
77f3977f | 10 | Name: perl-File-RsyncP |
a94fb65a | 11 | Version: 0.70 |
07c41721 | 12 | Release: 6 |
66de45ca | 13 | License: GPL v2+ |
23add0dd | 14 | Group: Development/Languages/Perl |
28ece8c3 | 15 | Source0: http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/%{pdir}-%{pnam}-%{version}.tar.gz |
a94fb65a | 16 | # Source0-md5: f244372d15a2991b8700f62e73ac51e4 |
49d49f69 | 17 | URL: http://search.cpan.org/dist/File-RsyncP/ |
d7429901 | 18 | BuildRequires: perl-Encode |
23add0dd | 19 | BuildRequires: perl-devel >= 1:5.8.0 |
20 | BuildRequires: rpm-perlprov >= 4.1-13 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
66de45ca | 24 | File::RsyncP is a Perl implementation of an rsync client. It can send |
23add0dd | 25 | or receive files, either by running rsync on the remote machine, or |
2fad1c27 | 26 | connecting to an rsyncd daemon on the remote machine. |
23add0dd | 27 | |
28 | File::RsyncP seperates all file system I/O into a seperate module | |
29 | (File::RsyncP::FileIO), which can be replaced by any module of your | |
30 | own design. This allows rsync interfaces to non-filesystem data types | |
31 | (eg: databases) to be developed with relative ease. | |
32 | ||
33 | File::RsyncP does not yet provide a command-line interface that mimics | |
34 | native rsync. Instead it provides an API that makes it possible to | |
35 | write simple scripts that talk to rsync or rsyncd. | |
36 | ||
85851590 JR |
37 | %description -l pl.UTF-8 |
38 | File::RsyncP jest implementacją klienta rsync w Perlu. Umożliwia | |
39 | wysyłanie i pobieranie plików, zarówno przez uruchomionego zdalnie | |
40 | klienta rsync jak i przez połączenie z demonem rsyncd na zdalnej | |
23add0dd | 41 | maszynie. |
42 | ||
85851590 JR |
43 | Wszystkie operacje wejścia/wyjścia na systemie plików zostały |
44 | wyodrębnione do oddzielnego modułu (File::RsyncP::FileIO), który może | |
45 | być zastąpiony przez inny moduł własnego projektu. Umożliwia to w | |
46 | miarę proste tworzenie interfejsów do rsynca, które nie operują na | |
47 | systemie plików a np. na bazach danych. | |
23add0dd | 48 | |
85851590 JR |
49 | File::RsyncP nie udostępnia jeszcze interaktywnego interfejsu |
50 | naśladującego linię poleceń programu rsync. W zamian udostępnia API, | |
51 | umożliwiające pisanie prostych skryptów do komunikacji z rsync | |
23add0dd | 52 | i rsyncd. |
53 | ||
23add0dd | 54 | %prep |
55 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
56 | ||
57 | %build | |
58 | %{__perl} Makefile.PL \ | |
59 | INSTALLDIRS=vendor | |
60 | ||
1c2af5ff | 61 | %{__make} -j1 |
23add0dd | 62 | |
63 | %{?with_tests:%{__make} test} | |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %files | |
75 | %defattr(644,root,root,755) | |
76 | %doc Changes README | |
a712cc51 JB |
77 | %{perl_vendorarch}/File/RsyncP.pm |
78 | %dir %{perl_vendorarch}/File/RsyncP | |
79 | %{perl_vendorarch}/File/RsyncP/*.pm | |
80 | %dir %{perl_vendorarch}/auto/File/RsyncP | |
81 | %dir %{perl_vendorarch}/auto/File/RsyncP/Digest | |
82 | %dir %{perl_vendorarch}/auto/File/RsyncP/FileList | |
a712cc51 | 83 | %attr(755,root,root) %{perl_vendorarch}/auto/File/RsyncP/*/*.so |
23add0dd | 84 | %{_mandir}/man3/* |