--- /dev/null
+#
+# Conditional build:
+%bcond_without tests # do not perform "make test"
+#
+%include /usr/lib/rpm/macros.perl
+%define pdir File
+%define pnam Rsync
+Summary: File::Rsync - a wrapper module for rsync
+Summary(pl): File::Rsync - wrapper dla programu rsync
+Name: perl-%{pdir}-%{pnam}
+Version: 0.32
+Release: 1
+License: GPL/Artistic
+Group: Development/Languages/Perl
+Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
+Patch0: %{name}-misc.patch
+BuildRequires: perl-devel >= 1:5.8.0
+BuildRequires: rpm-perlprov >= 4.1-13
+%if %{with tests}
+BuildRequires: rsync
+%endif
+Requires: rsync
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+File::Rsync is a perl wrapper for the rsync program.
+
+%description -l pl
+File::Rsync jest wrapperem w perlu dla programu rsync.
+
+%prep
+%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -p1
+
+%build
+%{__perl} Makefile.PL \
+ INSTALLDIRS=vendor
+
+%{__make}
+
+%{?with_tests:%{__make} test}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Changelog README
+%{perl_vendorlib}/%{pdir}/%{pnam}.pm
+%{perl_vendorlib}/%{pdir}/%{pnam}/Config.pm
+%{_mandir}/man3/%{pdir}::%{pnam}.*