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
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: d9e5d48b7f1aee18582fab57f27cccfa
17 URL: http://search.cpan.org/dist/Module-Util/
18 BuildRequires: perl-Module-Build
19 BuildRequires: perl-devel >= 1:5.8.0
20 BuildRequires: rpm-perlprov >= 4.1-13
22 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25 This module provides a few useful functions for manipulating module
26 names. Its main aim is to centralise some of the functions commonly
27 used by modules that manipulate other modules in some way, like
28 converting module names to relative paths.
31 %setup -q -n %{pdir}-%{pnam}-%{version}
35 destdir=$RPM_BUILD_ROOT \
39 %{?with_tests:./Build test}
42 rm -rf $RPM_BUILD_ROOT
47 rm -rf $RPM_BUILD_ROOT
50 %defattr(644,root,root,755)
52 %{perl_vendorlib}/Module/*.pm
53 %attr(755,root,root) %{_bindir}/pm_which
54 %{_mandir}/man1/pm_which.1p*