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 # Source0-md5: fafac3333492ac1161e605a00a79c48e
16 %if %{?_without_tests:0}%{!?_without_tests:1}
17 BuildRequires: perl(File::Spec)
18 BuildRequires: perl-Test-Simple
20 BuildRequires: rpm-perlprov
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.
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 %{!?_without_tests:%{__make} test}
47 rm -rf $RPM_BUILD_ROOT
49 %{__make} install DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_bindir}/cpan
58 %{perl_vendorlib}/*.pm
59 %{perl_vendorlib}/%{pdir}/*.pm