3 %bcond_without tests # do not perform "make test"
7 %include /usr/lib/rpm/macros.perl
8 Summary: Module::Util - Module name tools and transformations
10 Name: perl-Module-Util
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: d9e5d48b7f1aee18582fab57f27cccfa
18 # generic URL, check or change before uncommenting
19 #URL: http://search.cpan.org/dist/Module-Util/
20 BuildRequires: perl-Module-Build
21 BuildRequires: perl-devel >= 1:5.8.0
22 BuildRequires: rpm-perlprov >= 4.1-13
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 This module provides a few useful functions for manipulating module
30 names. Its main aim is to centralise some of the functions commonly
31 used by modules that manipulate other modules in some way, like
32 converting module names to relative paths.
34 # %description -l pl.UTF-8
38 %setup -q -n %{pdir}-%{pnam}-%{version}
42 destdir=$RPM_BUILD_ROOT \
46 %{?with_tests:./Build test}
49 rm -rf $RPM_BUILD_ROOT
54 rm -rf $RPM_BUILD_ROOT
57 %defattr(644,root,root,755)
59 %{perl_vendorlib}/Module/*.pm
60 %attr(755,root,root) %{_bindir}/pm_which
61 %{_mandir}/man1/pm_which.1p*