]>
Commit | Line | Data |
---|---|---|
b4b719ca JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # perform "make test" (uses network!) | |
616a8dbf | 4 | |
8549d998 | 5 | %define pdir Net |
6 | %define pnam FTP-Common | |
616a8dbf | 7 | %include /usr/lib/rpm/macros.perl |
b4b719ca | 8 | Summary: Net::FTP::Common - simplify common usages of Net::FTP |
b3b8d8fc | 9 | Summary(pl.UTF-8): Net::FTP::Common - uproszczenie popularnych sposobów użycia Net::FTP |
b4b719ca | 10 | Name: perl-Net-FTP-Common |
be533d5b | 11 | Version: 7.0.d |
12 | Release: 1 | |
13 | License: GPL v1+ or Artistic | |
b4b719ca JB |
14 | Group: Development/Languages/Perl |
15 | Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz | |
be533d5b | 16 | # Source0-md5: 15b1b719b5ac26a0122775c2e68c7d5c |
616a8dbf | 17 | URL: http://search.cpan.org/dist/Net-FTP-Common/ |
b4b719ca JB |
18 | BuildRequires: perl-devel >= 1:5.8.0 |
19 | BuildRequires: rpm-perlprov >= 4.1-13 | |
616a8dbf ER |
20 | %if %{with tests} |
21 | BuildRequires: perl(Net::FTP) >= 1 | |
22 | %endif | |
b4b719ca JB |
23 | # for Net::FTP and directory |
24 | Requires: perl-libnet | |
25 | BuildArch: noarch | |
26 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
27 | ||
28 | %description | |
29 | This module is intended to make the common uses of Net::FTP a | |
30 | one-line, no-argument affair. In other words, you have 100% | |
31 | programming with Net::FTP. With Net::FTP::Common you will have 95% | |
32 | configuration and 5% programming. | |
33 | ||
09d90798 JR |
34 | %description -l pl.UTF-8 |
35 | Ten moduł ma uczynić popularne sposoby użycia Net::FTP | |
36 | jednolinijkowymi wywołaniami bez argumentów. Innymi słowy, przy użyciu | |
37 | Net::FTP mamy 100% programowania. Przy użyciu Net::FTP::Common mamy | |
b4b719ca JB |
38 | 95% konfiguracji i 5% programowania. |
39 | ||
40 | %prep | |
41 | %setup -q -n %{pdir}-%{pnam}-%{version} | |
42 | ||
43 | %build | |
44 | %{__perl} Makefile.PL \ | |
45 | INSTALLDIRS=vendor | |
b4b719ca JB |
46 | %{__make} |
47 | ||
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
be533d5b | 56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
57 | cp -a samples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | ||
b4b719ca JB |
59 | %clean |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
be533d5b | 64 | %doc ChangeLog README |
65 | %{perl_vendorlib}/TestConfig.pm | |
af0317dc | 66 | %{perl_vendorlib}/%{pdir}/FTP/Common.pm |
b4b719ca | 67 | %{_mandir}/man3/* |
be533d5b | 68 | %{_examplesdir}/%{name}-%{version} |