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 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/CPAN/%{pdir}-%{version}.tar.gz
16 # Source0-md5: 70e43824c20cde64aa7b1b9e684b119f
17 URL: http://search.cpan.org/dist/CPAN/
19 BuildRequires: perl-Test-Simple
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 The CPAN module is designed to automate the make and install of perl
28 modules and extensions. It includes some searching capabilities and
29 knows how to use Net::FTP or LWP (or lynx or an external FTP client)
30 to fetch the raw data from the net.
32 %description -l pl.UTF-8
33 Moduł CPAN służy do automatyzacji procesu budowania i instalowania
34 modułów i rozszerzeń Perla. Ma możliwość wyszukiwania i używania
35 Net::FTP lub LWP (albo lynksa czy zewnętrznego klienta FTP) do
36 ściągania danych z sieci.
39 %setup -q -n %{pdir}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/cpan
61 %{perl_vendorlib}/*.pm
62 %dir %{perl_vendorlib}/CPAN
63 %{perl_vendorlib}/CPAN/*.pm
64 %dir %{perl_vendorlib}/CPAN/Exception
65 %{perl_vendorlib}/CPAN/Exception/*.pm
66 %dir %{perl_vendorlib}/CPAN/FTP
67 %{perl_vendorlib}/CPAN/FTP/netrc.pm
68 %dir %{perl_vendorlib}/CPAN/LWP
69 %{perl_vendorlib}/CPAN/LWP/UserAgent.pm