3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Create RPMS from CPAN modules
7 Summary(pl): Narzêdzie tworz±ce pakiety RPM z modu³ów CPAN
12 Group: Development/Languages/Perl
13 Source0: http://www.cpan.org/authors/id/E/EC/ECALDER/%{name}-%{version}.tar.gz
14 # Source0-md5: 4f85e07dfa848e5b72791aed975e8bc4
15 Patch0: %{name}-make.patch
16 URL: http://perl.arix.com/cpan2rpm/
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 cpan2rpm creates RPMs from CPAN packages, automating the locating,
24 fetching, spec file creation and building of the package.
27 cpan2rpm tworzy pakiety RPM z pakietów CPAN, automatycznie je
28 znajduj±c, ¶ci±gaj±c, tworz±c plik spec i buduj±c pakiet.
35 %{__perl} Makefile.PL \
38 # avoid running cpan2rpm and using network
43 %{?with_tests:%{__make} test}
46 rm -rf $RPM_BUILD_ROOT
49 DESTDIR=$RPM_BUILD_ROOT
52 rm -rf $RPM_BUILD_ROOT
55 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_bindir}/*