File perl-File-RsyncP.spec of Package perl-File-RsyncP
#
# spec file for package perl-File-RsyncP
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define cpan_name File-RsyncP
Name: perl-File-RsyncP
Version: 0.76
Release: 0
Summary: File-RsyncP Perl module
License: GPL-3.0+
Group: Development/Libraries/Perl
Url: http://search.cpan.org/~cbarratt/File-RsyncP-%{version}/
Source: http://search.cpan.org/CPAN/authors/id/C/CB/CBARRATT/%{cpan_name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: perl
BuildRequires: perl-macros
BuildRequires: perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires: perl(AutoLoader)
BuildRequires: perl(constant)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Path)
BuildRequires: perl(Socket)
%{perl_requires}
%description
File::RsyncP is a perl implementation of an Rsync client. It is
compatible with Rsync 2.x (protocol versions up to 28). It can send
or receive files, either by running rsync on the remote machine, or
connecting to an rsyncd-daemon on the remote machine.
%prep
%setup -q -n %{cpan_name}-%{version}
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_flags}
%check
%{__make} test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%files -f %{name}.files
%defattr(644,root,root,755)
%doc Changes README
%changelog