!1 Init package with version 0.05

From: @desert-sailor 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2024-02-29 07:59:55 +00:00 committed by Gitee
commit 51b1a70aaf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 50 additions and 0 deletions

Binary file not shown.

View File

@ -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 <dongxing.wang_a@thundersoft.com> - 0.05-1
- Initial package