]> git.pld-linux.org Git - packages/perl-CPAN.git/blame - perl-CPAN.spec
- drop obsolete and outdated manual inclusion of rpm macros
[packages/perl-CPAN.git] / perl-CPAN.spec
CommitLineData
083e0ab2 1#
2# Conditional build:
88700ed2 3%bcond_without tests # do not perform "make test"
083e0ab2 4#
e051f07a 5%define pdir CPAN
536f3eb6 6Summary: CPAN Perl module - query, download and build Perl modules from CPAN sites
9061c18f 7Summary(pl.UTF-8): Moduł Perla CPAN - odpytywanie, ściąganie i budowanie modułów Perla z serwisów CPAN
083e0ab2 8Name: perl-CPAN
e7eead3c 9Version: 2.26
172a2861 10Release: 1
ad82d3cc
JB
11# same as perl
12License: GPL v1+ or Artistic
083e0ab2 13Group: Development/Languages/Perl
ad82d3cc 14Source0: http://www.cpan.org/modules/by-module/CPAN/%{pdir}-%{version}.tar.gz
e7eead3c 15# Source0-md5: f8b88baa35bd6ae582d3dd9b6c5e4771
ad82d3cc 16URL: http://search.cpan.org/dist/CPAN/
88700ed2 17%if %{with tests}
083e0ab2 18BuildRequires: perl-Test-Simple
19%endif
39aceb37 20BuildRequires: perl-devel >= 1:5.8.0
21BuildRequires: rpm-perlprov >= 4.1-13
083e0ab2 22BuildArch: noarch
23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25%description
26The CPAN module is designed to automate the make and install of perl
27modules and extensions. It includes some searching capabilities and
bfb58f66 28knows how to use Net::FTP or LWP (or lynx or an external FTP client)
083e0ab2 29to fetch the raw data from the net.
30
3967e6a4
JR
31%description -l pl.UTF-8
32Moduł CPAN służy do automatyzacji procesu budowania i instalowania
33modułów i rozszerzeń Perla. Ma możliwość wyszukiwania i używania
34Net::FTP lub LWP (albo lynksa czy zewnętrznego klienta FTP) do
35ściągania danych z sieci.
083e0ab2 36
37%prep
38%setup -q -n %{pdir}-%{version}
39
40%build
6596fdab 41%{__perl} Makefile.PL \
e19eed32 42 INSTALLDIRS=vendor
083e0ab2 43%{__make}
44
88700ed2 45%{?with_tests:%{__make} test}
083e0ab2 46
47%install
48rm -rf $RPM_BUILD_ROOT
49
38a5476b 50%{__make} install \
51 DESTDIR=$RPM_BUILD_ROOT
083e0ab2 52
3fa0569a 53%clean
54rm -rf $RPM_BUILD_ROOT
083e0ab2 55
56%files
57%defattr(644,root,root,755)
59dd61f1 58%doc Todo
083e0ab2 59%attr(755,root,root) %{_bindir}/cpan
e7eead3c 60%attr(755,root,root) %{_bindir}/cpan-mirrors
6596fdab 61%{perl_vendorlib}/*.pm
e7eead3c 62%{perl_vendorlib}/App/Cpan.pm
9a53ea31 63%dir %{perl_vendorlib}/CPAN
64%{perl_vendorlib}/CPAN/*.pm
e7eead3c
AG
65%dir %{perl_vendorlib}/CPAN/API
66%{perl_vendorlib}/CPAN/API/HOWTO.pod
0dd54b8d 67%dir %{perl_vendorlib}/CPAN/Exception
68%{perl_vendorlib}/CPAN/Exception/*.pm
69%dir %{perl_vendorlib}/CPAN/FTP
70%{perl_vendorlib}/CPAN/FTP/netrc.pm
e7eead3c
AG
71%dir %{perl_vendorlib}/CPAN/HTTP
72%{perl_vendorlib}/CPAN/HTTP/*.pm
73%dir %{perl_vendorlib}/CPAN/Kwalify
74%{perl_vendorlib}/CPAN/Kwalify/distroprefs*
0dd54b8d 75%dir %{perl_vendorlib}/CPAN/LWP
76%{perl_vendorlib}/CPAN/LWP/UserAgent.pm
e7eead3c
AG
77%dir %{perl_vendorlib}/CPAN/Plugin
78%{perl_vendorlib}/CPAN/Plugin/*.pm
083e0ab2 79%{_mandir}/man1/*
e7eead3c 80%{_mandir}/man3/App::Cpan.3pm*
2ca683e2 81%{_mandir}/man3/C*
This page took 0.066409 seconds and 4 git commands to generate.