]> git.pld-linux.org Git - packages/perl-Module-Info.git/blame - perl-Module-Info.spec
- macros version to ensure perl macros are loaded
[packages/perl-Module-Info.git] / perl-Module-Info.spec
CommitLineData
7e965f61 1#
2# Conditional build:
54026992 3%bcond_without tests # unit tests
d46b475a 4#
7181a869 5%define pdir Module
6%define pnam Info
d46b475a 7Summary: Module::Info perl module - information about Perl modules
8ea65565 8Summary(pl.UTF-8): Moduł perla Module::Info - informacje o modułach Perla
939a2b5f 9Name: perl-Module-Info
edf4b801 10Version: 0.37
44cb8a27 11Release: 1
f813cc75 12# same as perl
9bdbd5ea 13License: GPL v1+ or Artistic
939a2b5f 14Group: Development/Languages/Perl
2bb50c9c 15Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
edf4b801 16# Source0-md5: 72dd1a99bc124a97888cbbedc37993ca
54026992 17URL: https://metacpan.org/release/Module-Info
f813cc75 18%if %{with tests}
939a2b5f 19BuildRequires: perl(File::Spec) >= 0.8
54026992 20BuildRequires: perl-B-Utils >= 0.27
7e965f61 21%endif
853d9416 22BuildRequires: perl-devel >= 1:5.8.0
82417ba0 23BuildRequires: rpm-perlprov >= 4.1-13
54026992 24BuildRequires: rpmbuild(macros) >= 1.745
939a2b5f
JB
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Module::Info gives you information about Perl modules without actually
30loading the module. It actually isn't specific to modules and should
31work on any perl code.
32
486a280a
JR
33%description -l pl.UTF-8
34Module::Info podaje informacje o modułach Perla bez wczytywania
35modułu. Działanie to właściwie nie jest ograniczone do modułów i
36powinno działać z dowolnym kodem w Perlu.
939a2b5f
JB
37
38%prep
39%setup -q -n %{pdir}-%{pnam}-%{version}
40
41%build
82417ba0 42%{__perl} Makefile.PL \
0e8da3dd 43 INSTALLDIRS=vendor
939a2b5f
JB
44%{__make}
45
f813cc75 46%{?with_tests:%{__make} test}
7e965f61 47
939a2b5f
JB
48%install
49rm -rf $RPM_BUILD_ROOT
50
f813cc75
JB
51%{__make} install \
52 DESTDIR=$RPM_BUILD_ROOT
939a2b5f
JB
53
54%clean
55rm -rf $RPM_BUILD_ROOT
56
57%files
58%defattr(644,root,root,755)
59%doc Changes
33e748f4
JB
60%attr(755,root,root) %{_bindir}/module_info
61%attr(755,root,root) %{_bindir}/pfunc
82417ba0 62%{perl_vendorlib}/B/Module
63%{perl_vendorlib}/Module/Info.pm
33e748f4
JB
64%{_mandir}/man1/module_info.1p*
65%{_mandir}/man1/pfunc.1p*
33e748f4
JB
66%{_mandir}/man3/B::Module::Info.3pm*
67%{_mandir}/man3/Module::Info.3pm*
This page took 0.077074 seconds and 4 git commands to generate.