4e5778a
Name:           perl-Module-Find
4e5778a
Version:        0.05
4e5778a
Release:        1%{?dist}
4e5778a
Summary:        Find and use installed modules in a (sub)category
4e5778a
4e5778a
Group:          Development/Libraries
4e5778a
License:        GPL or Artistic
4e5778a
URL:            http://search.cpan.org/dist/Module-Find/
4e5778a
Source0:        http://www.cpan.org/authors/id/C/CR/CRENZ/Module-Find-%{version}.tar.gz
4e5778a
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4e5778a
4e5778a
BuildArch:      noarch
4e5778a
BuildRequires:  perl(Test::Pod)
4e5778a
BuildRequires:  perl(Test::Pod::Coverage)
4e5778a
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
4e5778a
4e5778a
%description
4e5778a
Module::Find lets you find and use modules in categories. This can be very
4e5778a
useful for auto-detecting driver or plugin modules. You can differentiate
4e5778a
between looking in the category itself or in all subcategories.
4e5778a
4e5778a
4e5778a
%prep
4e5778a
%setup -q -n Module-Find-%{version}
4e5778a
4e5778a
4e5778a
%build
4e5778a
%{__perl} Makefile.PL INSTALLDIRS=vendor
4e5778a
make %{?_smp_mflags}
4e5778a
4e5778a
4e5778a
%install
4e5778a
rm -rf $RPM_BUILD_ROOT
4e5778a
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
4e5778a
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
4e5778a
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
4e5778a
chmod -R u+w $RPM_BUILD_ROOT/*
4e5778a
4e5778a
4e5778a
%check
4e5778a
make test
4e5778a
4e5778a
4e5778a
%clean
4e5778a
rm -rf $RPM_BUILD_ROOT
4e5778a
4e5778a
4e5778a
%files
4e5778a
%defattr(-,root,root,-)
4e5778a
%doc Changes README
4e5778a
%{perl_vendorlib}/Module/
4e5778a
%{_mandir}/man3/*.3pm*
4e5778a
4e5778a
4e5778a
%changelog
4e5778a
* Tue Dec 19 2006 Jose Pedro Oliveira <jpo at di.uminho.pt> - 0.05-1
4e5778a
- First build.