Bernard Johnson aa2b6dd
%global         _module_name Net-FTP-AutoReconnect
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Name:           perl-%{_module_name}
Bernard Johnson aa2b6dd
Version:        0.3
5b7d9b5
Release:        12%{?dist}
Bernard Johnson aa2b6dd
Summary:        FTP client class with automatic reconnect on failure
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Group:          Development/Libraries
Bernard Johnson aa2b6dd
License:        GPL+ or Artistic
Bernard Johnson aa2b6dd
URL:            http://search.cpan.org/~giff/%{_module_name}-%{version}/
Bernard Johnson aa2b6dd
Source0:        http://search.cpan.org/CPAN/authors/id/G/GI/GIFF/%{_module_name}-%{version}.tar.gz
Bernard Johnson aa2b6dd
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
BuildArch:      noarch
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
BuildRequires:  perl(ExtUtils::MakeMaker), perl(Test::More)
Bernard Johnson aa2b6dd
Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%{?perl_default_filter}
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%description
Bernard Johnson aa2b6dd
This is a FTP client class with automatic reconnect on failure.
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%prep
Bernard Johnson aa2b6dd
%setup -q -n %{_module_name}-%{version}
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%build
Bernard Johnson aa2b6dd
%{__perl} Makefile.PL INSTALLDIRS=vendor
Bernard Johnson aa2b6dd
make %{?_smp_mflags}
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%install
Bernard Johnson aa2b6dd
rm -rf $RPM_BUILD_ROOT
Bernard Johnson aa2b6dd
make pure_install DESTDIR=$RPM_BUILD_ROOT
Bernard Johnson aa2b6dd
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
Bernard Johnson aa2b6dd
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
Bernard Johnson aa2b6dd
%{_fixperms} $RPM_BUILD_ROOT/*
Bernard Johnson aa2b6dd
chmod a-x $RPM_BUILD_ROOT/%{perl_vendorlib}/Net/FTP/*pm
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%check
Bernard Johnson aa2b6dd
make test
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%clean
Bernard Johnson aa2b6dd
rm -rf $RPM_BUILD_ROOT
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%files
Bernard Johnson aa2b6dd
%defattr(-,root,root,-)
Bernard Johnson aa2b6dd
%{perl_vendorlib}/*
Bernard Johnson aa2b6dd
%{_mandir}/man3/*.3*
Bernard Johnson aa2b6dd
%doc t
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
%changelog
5b7d9b5
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.3-12
5b7d9b5
- Perl 5.20 rebuild
5b7d9b5
b9fcd7f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-11
b9fcd7f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
b9fcd7f
f646d39
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-10
f646d39
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f646d39
4294dc4
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 0.3-9
4294dc4
- Perl 5.18 rebuild
4294dc4
ec177a6
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-8
ec177a6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ec177a6
1ed8b26
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-7
1ed8b26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1ed8b26
d3cbe7c
* Mon Jun 11 2012 Petr Pisar <ppisar@redhat.com> - 0.3-6
d3cbe7c
- Perl 5.16 rebuild
d3cbe7c
b47e280
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-5
b47e280
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b47e280
Petr Sabata c55fd17
* Fri Jul 22 2011 Petr Sabata <contyk@redhat.com> - 0.3-4
Petr Sabata c55fd17
- Perl mass rebuild
Petr Sabata c55fd17
Bernard Johnson aa2b6dd
* Mon Jul 18 2011 Bernard Johnson <bjohnson@symetrix.com> - 0.3-3
Bernard Johnson aa2b6dd
- remove duplicated doc spec
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
* Sun Jul 17 2011 Bernard Johnson <bjohnson@symetrix.com> - 0.3-2
Bernard Johnson aa2b6dd
- add test cases for doc
Bernard Johnson aa2b6dd
Bernard Johnson aa2b6dd
* Fri Jul 08 2011 Bernard Johnson <bjohnson@symetrix.com> - 0.3-1
Bernard Johnson aa2b6dd
- initial package