3 %bcond_without tests # unit tests
7 Summary: Module::Info perl module - information about Perl modules
8 Summary(pl.UTF-8): Moduł perla Module::Info - informacje o modułach Perla
13 License: GPL v1+ or Artistic
14 Group: Development/Languages/Perl
15 Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
16 # Source0-md5: 72dd1a99bc124a97888cbbedc37993ca
17 URL: https://metacpan.org/release/Module-Info
19 BuildRequires: perl(File::Spec) >= 0.8
20 BuildRequires: perl-B-Utils >= 0.27
22 BuildRequires: perl-devel >= 1:5.8.0
23 BuildRequires: rpm-perlprov >= 4.1-13
24 BuildRequires: rpmbuild(macros) >= 1.745
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Module::Info gives you information about Perl modules without actually
30 loading the module. It actually isn't specific to modules and should
31 work on any perl code.
33 %description -l pl.UTF-8
34 Module::Info podaje informacje o modułach Perla bez wczytywania
35 modułu. Działanie to właściwie nie jest ograniczone do modułów i
36 powinno działać z dowolnym kodem w Perlu.
39 %setup -q -n %{pdir}-%{pnam}-%{version}
42 %{__perl} Makefile.PL \
46 %{?with_tests:%{__make} test}
49 rm -rf $RPM_BUILD_ROOT
52 DESTDIR=$RPM_BUILD_ROOT
55 rm -rf $RPM_BUILD_ROOT
58 %defattr(644,root,root,755)
60 %attr(755,root,root) %{_bindir}/module_info
61 %attr(755,root,root) %{_bindir}/pfunc
62 %{perl_vendorlib}/B/Module
63 %{perl_vendorlib}/Module/Info.pm
64 %{_mandir}/man1/module_info.1p*
65 %{_mandir}/man1/pfunc.1p*
66 %{_mandir}/man3/B::Module::Info.3pm*
67 %{_mandir}/man3/Module::Info.3pm*