File perl-File-Rsync.spec of Package perl-File-Rsync
#
# spec file for package perl-File-Rsync
#
# Copyright (c) 2011 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/
#
# norootforbuild
Name: perl-File-Rsync
%define cpan_name File-Rsync
Summary: Perl module interface to rsync
Url: http://search.cpan.org/perldoc?File::Rsync
Group: Development/Libraries/Perl
License: Artistic-1.0
Version: 0.43
Release: 2
Source: %{cpan_name}-%{version}.tar.gz
BuildRequires: perl-macros
BuildRequires: rsync
Requires: rsync
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{perl_requires}
%description
Perl Convenience wrapper for the rsync(1) program. Written for rsync-2.3.2 and
updated for rsync-2.6.0 but should perform properly with most recent versions.
Author:
-------
Lee Eakin <leakin@dfw.nostrum.com>
%prep
%setup -n %{cpan_name}-%{version}
sed -i "s|/usr/local/bin/rsync|/usr/bin/rsync|" config.in
%build
perl Makefile.PL
make %{?jobs:-j%jobs}
%check
make test
%install
%perl_make_install
%perl_process_packlist
%perl_gen_filelist
%clean
rm -rf %{buildroot}
%files -f %{name}.files
%defattr(-, root, root)
%doc Changelog README MANIFEST TODO
%changelog