From: pius Date: Thu, 1 Jan 2004 19:59:33 +0000 (+0000) Subject: - initial release X-Git-Tag: auto/ac/perl-File-Rsync-0_32-1~2 X-Git-Url: https://git.pld-linux.org/?a=commitdiff_plain;h=c4c05fef9d2ae72f06dba546d880121b7396d56b;p=packages%2Fperl-File-Rsync.git - initial release Changed files: perl-File-Rsync.spec -> 1.1 --- diff --git a/perl-File-Rsync.spec b/perl-File-Rsync.spec new file mode 100644 index 0000000..8f52637 --- /dev/null +++ b/perl-File-Rsync.spec @@ -0,0 +1,58 @@ +# +# 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}.*