3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
7 Summary: CPAN Perl module - query, download and build Perl modules from CPAN sites
8 Summary(pl.UTF-8): Moduł Perla CPAN - odpytywanie, ściąganie i budowanie modułów Perla z serwisów CPAN
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{version}.tar.gz
15 # Source0-md5: 779a03a6c79bf81b0e5a463f0593bbbf
17 BuildRequires: perl-Test-Simple
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 The CPAN module is designed to automate the make and install of perl
26 modules and extensions. It includes some searching capabilities and
27 knows how to use Net::FTP or LWP (or lynx or an external FTP client)
28 to fetch the raw data from the net.
30 %description -l pl.UTF-8
31 Moduł CPAN służy do automatyzacji procesu budowania i instalowania
32 modułów i rozszerzeń Perla. Ma możliwość wyszukiwania i używania
33 Net::FTP lub LWP (albo lynksa czy zewnętrznego klienta FTP) do
34 ściągania danych z sieci.
37 %setup -q -n %{pdir}-%{version}
40 %{__perl} Makefile.PL \
44 %{?with_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
50 DESTDIR=$RPM_BUILD_ROOT
53 rm -rf $RPM_BUILD_ROOT
56 %defattr(644,root,root,755)
58 %attr(755,root,root) %{_bindir}/cpan
59 %{perl_vendorlib}/*.pm
60 %dir %{perl_vendorlib}/CPAN
61 %{perl_vendorlib}/CPAN/*.pm