]>
Commit | Line | Data |
---|---|---|
c4c05fef | 1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
a2648f4e | 5 | %define pdir File |
6 | %define pnam Rsync | |
c4c05fef | 7 | Summary: File::Rsync - a wrapper module for rsync |
e744dd6e | 8 | Summary(pl.UTF-8): File::Rsync - wrapper dla programu rsync |
bb28168a | 9 | Name: perl-File-Rsync |
7fee8578 | 10 | Version: 0.49 |
4f9a6822 | 11 | Release: 1 |
a2bb7722 | 12 | # same as perl |
13 | License: GPL v1+ or Artistic | |
c4c05fef | 14 | Group: Development/Languages/Perl |
e06ad4ce | 15 | Source0: http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz |
7fee8578 JB |
16 | # Source0-md5: 3929283d5391b6599799072c34a9e93e |
17 | URL: https://metacpan.org/release/File-Rsync | |
c4c05fef | 18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
7fee8578 | 20 | BuildRequires: rpmbuild(macros) >= 1.745 |
c4c05fef | 21 | %if %{with tests} |
7fee8578 JB |
22 | BuildRequires: perl-IPC-Run3 |
23 | BuildRequires: perl-Scalar-List-Utils | |
24 | BuildRequires: perl-Test-Simple | |
c4c05fef | 25 | BuildRequires: rsync |
26 | %endif | |
27 | Requires: rsync | |
28 | BuildArch: noarch | |
29 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
30 | ||
31 | %description | |
a2bb7722 | 32 | File::Rsync is a Perl wrapper for the rsync program. |
c4c05fef | 33 | |
f8f5ff79 | 34 | %description -l pl.UTF-8 |
a2bb7722 | 35 | File::Rsync jest wrapperem w Perlu dla programu rsync. |
c4c05fef | 36 | |
37 | %prep | |
38 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
c4c05fef | 39 | |
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | ||
44 | %{__make} | |
45 | ||
46 | %{?with_tests:%{__make} test} | |
47 | ||
48 | %install | |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %{__make} install \ | |
52 | DESTDIR=$RPM_BUILD_ROOT | |
53 | ||
54 | %clean | |
55 | rm -rf $RPM_BUILD_ROOT | |
56 | ||
57 | %files | |
58 | %defattr(644,root,root,755) | |
59 | %doc Changelog README | |
7260298e | 60 | %{perl_vendorlib}/File/Rsync.pm |
7fee8578 | 61 | %{_mandir}/man3/File::Rsync.3pm* |