]> git.pld-linux.org Git - packages/perl-File-Rsync.git/blob - perl-File-Rsync.spec
8f52637ff478891632185797cdb7b3559d5ac29a
[packages/perl-File-Rsync.git] / perl-File-Rsync.spec
1 #
2 # Conditional build:
3 %bcond_without  tests   # do not perform "make test"
4 #
5 %include        /usr/lib/rpm/macros.perl
6 %define pdir    File
7 %define pnam    Rsync
8 Summary:        File::Rsync - a wrapper module for rsync
9 Summary(pl):    File::Rsync - wrapper dla programu rsync
10 Name:           perl-%{pdir}-%{pnam}
11 Version:        0.32
12 Release:        1
13 License:        GPL/Artistic
14 Group:          Development/Languages/Perl
15 Source0:        http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
16 Patch0:         %{name}-misc.patch
17 BuildRequires:  perl-devel >= 1:5.8.0
18 BuildRequires:  rpm-perlprov >= 4.1-13
19 %if %{with tests}
20 BuildRequires:  rsync
21 %endif
22 Requires:       rsync
23 BuildArch:      noarch
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 File::Rsync is a perl wrapper for the rsync program.
28
29 %description -l pl
30 File::Rsync jest wrapperem w perlu dla programu rsync.
31
32 %prep
33 %setup -q -n %{pdir}-%{pnam}-%{version}
34 %patch -p1
35
36 %build
37 %{__perl} Makefile.PL \
38         INSTALLDIRS=vendor
39
40 %{__make}
41
42 %{?with_tests:%{__make} test}
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46
47 %{__make} install \
48         DESTDIR=$RPM_BUILD_ROOT
49
50 %clean
51 rm -rf $RPM_BUILD_ROOT
52
53 %files
54 %defattr(644,root,root,755)
55 %doc Changelog README
56 %{perl_vendorlib}/%{pdir}/%{pnam}.pm
57 %{perl_vendorlib}/%{pdir}/%{pnam}/Config.pm
58 %{_mandir}/man3/%{pdir}::%{pnam}.*
This page took 0.051232 seconds and 2 git commands to generate.