Name: perl-Config-Extend-MySQL Version: 0.04 Release: 1%{?dist} Summary: Extend your favorite .INI parser module to read MySQL configuration file License: GPL+ or Artistic Group: Development/Libraries URL: http://search.cpan.org/dist/Config-Extend-MySQL/ Source0: http://www.cpan.org/authors/id/S/SA/SAPER/Config-Extend-MySQL-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: perl >= 0:5.006 BuildRequires: perl(Config::Tiny) BuildRequires: perl(File::Read) BuildRequires: perl(Module::Build) BuildRequires: perl(Test::More) BuildRequires: perl(Test::Pod) BuildRequires: perl(Test::Pod::Coverage) BuildRequires: perl(UNIVERSAL::require) Requires: perl(Config::Tiny) Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) %{?perl_default_filter} %description This module extends other Config:: modules so they can read MySQL configuration files. It works by slurping and preprocessing the files before letting your favorite Config:: module parse the result. %prep %setup -q -n Config-Extend-MySQL-%{version} # fix examples' shebang sed -i -e '1s~#!.*~#!%{__perl}~' eg/* %build %{__perl} Build.PL installdirs=vendor ./Build %install rm -rf $RPM_BUILD_ROOT ./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \; %{_fixperms} $RPM_BUILD_ROOT/* %check ./Build test %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc Changes README eg %{perl_vendorlib}/* %{_mandir}/man3/* %changelog * Thu Mar 25 2010 Iain Arnell 0.04-1 - Specfile autogenerated by cpanspec 1.78. - use perl_default_filter