3 %bcond_with tests # perform "make test" (uses network!)
6 %define pnam FTP-Common
7 Summary: Net::FTP::Common - simplify common usages of Net::FTP
8 Summary(pl.UTF-8): Net::FTP::Common - uproszczenie popularnych sposobów użycia Net::FTP
9 Name: perl-Net-FTP-Common
12 License: GPL v1+ or Artistic
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 # Source0-md5: 15b1b719b5ac26a0122775c2e68c7d5c
16 URL: http://search.cpan.org/dist/Net-FTP-Common/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRequires: perl(Net::FTP) >= 1
22 # for Net::FTP and directory
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 This module is intended to make the common uses of Net::FTP a
29 one-line, no-argument affair. In other words, you have 100%
30 programming with Net::FTP. With Net::FTP::Common you will have 95%
31 configuration and 5% programming.
33 %description -l pl.UTF-8
34 Ten moduł ma uczynić popularne sposoby użycia Net::FTP
35 jednolinijkowymi wywołaniami bez argumentów. Innymi słowy, przy użyciu
36 Net::FTP mamy 100% programowania. Przy użyciu Net::FTP::Common mamy
37 95% konfiguracji i 5% programowania.
40 %setup -q -n %{pdir}-%{pnam}-%{version}
43 %{__perl} Makefile.PL \
47 %{?with_tests:%{__make} test}
50 rm -rf $RPM_BUILD_ROOT
53 DESTDIR=$RPM_BUILD_ROOT
55 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
56 cp -a samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
59 rm -rf $RPM_BUILD_ROOT
62 %defattr(644,root,root,755)
64 %{perl_vendorlib}/TestConfig.pm
65 %{perl_vendorlib}/%{pdir}/FTP/Common.pm
67 %{_examplesdir}/%{name}-%{version}