3 # _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): 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 %if %{?_without_tests:0}%{!?_without_tests:1}
16 BuildRequires: perl(File::Spec)
17 BuildRequires: perl-Test-Simple
19 BuildRequires: rpm-perlprov
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 The CPAN module is designed to automate the make and install of perl
25 modules and extensions. It includes some searching capabilities and
26 knows how to use Net::FTP or LWP (or lynx or an external ftp client)
27 to fetch the raw data from the net.
30 Modu³ CPAN s³u¿y do automatyzacji procesu budowania i instalowania
31 modu³ów i rozszerzeñ Perla. Ma mo¿liwo¶æ wyszukiwania i u¿ywania
32 Net::FTP lub LWP (albo lynksa czy zewnêtrznego klienta ftp) do
33 ¶ci±gania danych z sieci.
36 %setup -q -n %{pdir}-%{version}
39 %{__perl} Makefile.PL \
43 %{!?_without_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
48 %{__make} install DESTDIR=$RPM_BUILD_ROOT
51 rm -rf $RPM_BUILD_ROOT
54 %defattr(644,root,root,755)
56 %attr(755,root,root) %{_bindir}/cpan
57 %{perl_vendorlib}/*.pm
58 %{perl_vendorlib}/%{pdir}/*.pm