diff --git a/Config-Extend-MySQL-0.05.tar.gz b/Config-Extend-MySQL-0.05.tar.gz new file mode 100644 index 0000000..de0adfb Binary files /dev/null and b/Config-Extend-MySQL-0.05.tar.gz differ diff --git a/perl-Config-Extend-MySQL.spec b/perl-Config-Extend-MySQL.spec new file mode 100644 index 0000000..71ed943 --- /dev/null +++ b/perl-Config-Extend-MySQL.spec @@ -0,0 +1,50 @@ +Name: perl-Config-Extend-MySQL +Version: 0.05 +Release: 1 +Summary: Extend your favorite .INI parser module to read MySQL configuration file +License: GPL+ or Artistic +URL: https://metacpan.org/release/Config-Extend-MySQL +Source0: https://cpan.metacpan.org/authors/id/S/SA/SAPER/Config-Extend-MySQL-%{version}.tar.gz +BuildArch: noarch +BuildRequires: perl-generators +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) + +%{?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 +./Build install destdir=$RPM_BUILD_ROOT create_packlist=0 + +%{_fixperms} $RPM_BUILD_ROOT/* + +%check +./Build test + +%files +%doc Changes README eg +%{perl_vendorlib}/* +%{_mandir}/man3/* + +%changelog +* Tue Feb 20 2024 Dongxing Wang - 0.05-1 +- Initial package