51 lines
1.4 KiB
RPMSpec
51 lines
1.4 KiB
RPMSpec
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
|