8
0
Gerrit Beine
2008-12-11 13:03:45 +00:00
committed by Git OBS Bridge
commit e69619f037
4 changed files with 79 additions and 0 deletions

52
perl-Module-Find.spec Normal file
View File

@@ -0,0 +1,52 @@
%define cpan_name Module-Find
Name: perl-%cpan_name
Version: 0.06
Release: 1
Provides: %cpan_name
Requires: perl = %{perl_version}
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
/var/adm/perl-modules/%{name}
%doc Changes MANIFEST README
%changelog -n %{name}
* Sun Oct 26 2008 - gerrit.beine@gmx.de
- first release 0.06