%define cpan_name Module-Find Name: perl-%cpan_name Version: 0.06 Release: 1 Provides: %cpan_name %{perl_requires} Group: Development/Libraries/Perl License: Artistic URL: http://search.cpan.org/dist/Module-Find/ Summary: Find and use installed modules in a (sub)category Source: %cpan_name-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: perl-Test-Pod perl-Test-Pod-Coverage %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. If you want Module::Find to search in a certain directory on your harddisk (such as the plugins directory of your software installation), make sure you modify @INC before you call the Module::Find functions. %prep %setup -q -n %cpan_name-%{version} %build perl Makefile.PL OPTIMIZE="$RPM_OPT_FLAGS -Wall" make make test %install make DESTDIR=$RPM_BUILD_ROOT install_vendor %perl_process_packlist %clean # clean up the hard disc after build rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc %{_mandir}/man?/* %{perl_vendorlib}/Module %{perl_vendorarch}/auto/Module %doc Changes MANIFEST README %changelog -n %{name} * Sun Oct 26 2008 - gerrit.beine@gmx.de - first release 0.06