]> git.pld-linux.org Git - packages/perl-File-Rsync.git/blob - perl-File-Rsync.spec
- updated to 0.49
[packages/perl-File-Rsync.git] / perl-File-Rsync.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %define         pdir    File
6 %define         pnam    Rsync
7 Summary:        File::Rsync - a wrapper module for rsync
8 Summary(pl.UTF-8):      File::Rsync - wrapper dla programu rsync
9 Name:           perl-File-Rsync
10 Version:        0.49
11 Release:        1
12 # same as perl
13 License:        GPL v1+ or Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/File/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5:  3929283d5391b6599799072c34a9e93e
17 URL:            https://metacpan.org/release/File-Rsync
18 BuildRequires:  perl-devel >= 1:5.8.0
19 BuildRequires:  rpm-perlprov >= 4.1-13
20 BuildRequires:  rpmbuild(macros) >= 1.745
21 %if %{with tests}
22 BuildRequires:  perl-IPC-Run3
23 BuildRequires:  perl-Scalar-List-Utils
24 BuildRequires:  perl-Test-Simple
25 BuildRequires:  rsync
26 %endif
27 Requires:       rsync
28 BuildArch:      noarch
29 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30
31 %description
32 File::Rsync is a Perl wrapper for the rsync program.
33
34 %description -l pl.UTF-8
35 File::Rsync jest wrapperem w Perlu dla programu rsync.
36
37 %prep
38 %setup -q -n %{pdir}-%{pnam}-%{version}
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
60 %{perl_vendorlib}/File/Rsync.pm
61 %{_mandir}/man3/File::Rsync.3pm*
This page took 0.097072 seconds and 4 git commands to generate.