3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: File::RsyncP - Perl implementation of an rsync client
9 Summary(pl.UTF-8): File::RsyncP - implementacja klienta rsync w Perlu
10 Name: perl-File-RsyncP
14 Group: Development/Languages/Perl
15 Source0: http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: f244372d15a2991b8700f62e73ac51e4
17 URL: http://search.cpan.org/dist/File-RsyncP/
18 BuildRequires: perl-Encode
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 File::RsyncP is a Perl implementation of an rsync client. It can send
25 or receive files, either by running rsync on the remote machine, or
26 connecting to an rsyncd daemon on the remote machine.
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.
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.
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
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.
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
55 %setup -q -n %{pdir}-%{pnam}-%{version}
58 %{__perl} Makefile.PL \
63 %{?with_tests:%{__make} test}
66 rm -rf $RPM_BUILD_ROOT
69 DESTDIR=$RPM_BUILD_ROOT
72 rm -rf $RPM_BUILD_ROOT
75 %defattr(644,root,root,755)
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
83 %attr(755,root,root) %{perl_vendorarch}/auto/File/RsyncP/*/*.so