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