3 # _without_tests - do not perform "make test"
4 %include /usr/lib/rpm/macros.perl
7 Summary: Module::Info perl module - information about Perl Modules
8 Summary(pl): Modu³ perla Module::Info - informacje o modu³ach perla
13 Group: Development/Languages/Perl
14 Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
15 BuildRequires: perl >= 5.6
16 %if %{?_without_tests:0}%{!?_without_tests:1}
17 #BuildRequires: perl-B-Utils
18 BuildRequires: perl(File::Spec) >= 0.8
20 BuildRequires: rpm-perlprov >= 4.1-13
21 Conflicts: perl-B-Utils
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26 Module::Info gives you information about Perl modules without actually
27 loading the module. It actually isn't specific to modules and should
28 work on any perl code.
31 Module::Info podaje informacje o modu³ach Perla bez wczytywania
32 modu³u. Dzia³anie to w³a¶ciwie nie jest ograniczone do modu³ów i
33 powinno dzia³aæ z dowolnym kodem w Perlu.
36 %setup -q -n %{pdir}-%{pnam}-%{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}/*
57 %{perl_vendorlib}/B/*.pm
58 %{perl_vendorlib}/B/Module
59 %{perl_vendorlib}/Module/Info.pm