Init package with version 0.05

This commit is contained in:
desert-sailor 2024-02-20 14:38:59 +08:00
parent 6811ff68d3
commit 511d575e1e
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