3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
8 Summary: Module::ScanDeps - recursively scan Perl programs for dependencies
9 Summary(pl.UTF-8): Module::ScanDeps - rekurencyjne wyszukiwanie zależności programów perlowych
10 Name: perl-Module-ScanDeps
14 License: GPL v1+ or Artistic
15 Group: Development/Languages/Perl
16 Source0: http://www.cpan.org/modules/by-module/Module/%{pdir}-%{pnam}-%{version}.tar.gz
17 # Source0-md5: f01f36a25bf372712ff6b1e4aad8d89c
18 URL: http://search.cpan.org/dist/Module-ScanDeps/
19 BuildRequires: perl-devel >= 1:5.8.1
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRequires: perl-File-Temp
23 BuildRequires: perl-Module-Build
24 BuildRequires: perl-PathTools
25 BuildRequires: perl-Test-Simple
26 BuildRequires: perl-version
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 An application of Module::ScanDeps is to generate executables from
33 scripts that contains necessary modules; this module supports two such
34 projects, PAR and App::Packer. Please see their respective
35 documentations on CPAN for further information.
37 %description -l pl.UTF-8
38 Zastosowanie Module::ScanDeps to generowanie ze skryptów plików
39 wykonywalnych zawierających wszelkie potrzebne skryptowi moduły. Ten
40 moduł wspiera dwa takie projekty: PAR i App::Packer. Więcej informacji
41 można znaleźć w ich dokumentacji w CPAN.
44 %setup -q -n %{pdir}-%{pnam}-%{version}
47 %{__perl} Makefile.PL \
51 %{?with_tests:%{__make} test}
54 rm -rf $RPM_BUILD_ROOT
57 DESTDIR=$RPM_BUILD_ROOT
60 rm -rf $RPM_BUILD_ROOT
63 %defattr(644,root,root,755)
64 %doc AUTHORS Changes README
65 %attr(755,root,root) %{_bindir}/scandeps.pl
66 %{perl_vendorlib}/Module/ScanDeps.pm
67 %{perl_vendorlib}/Module/ScanDeps
68 %{_mandir}/man1/scandeps.pl.1p*
69 %{_mandir}/man3/Module::ScanDeps.3pm*