!1 Init package with version 0.05
From: @desert-sailor Reviewed-by: @shinwell_hu Signed-off-by: @shinwell_hu
This commit is contained in:
commit
51b1a70aaf
BIN
Config-Extend-MySQL-0.05.tar.gz
Normal file
BIN
Config-Extend-MySQL-0.05.tar.gz
Normal file
Binary file not shown.
50
perl-Config-Extend-MySQL.spec
Normal file
50
perl-Config-Extend-MySQL.spec
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user