73 lines
2.2 KiB
RPMSpec
73 lines
2.2 KiB
RPMSpec
|
|
Name: perl-Log-Dispatch-FileRotate
|
||
|
|
Version: 1.38
|
||
|
|
Release: 1
|
||
|
|
Summary: Log to files that archive/rotate themselves
|
||
|
|
License: GPL+ or Artistic
|
||
|
|
URL: https://metacpan.org/release/Log-Dispatch-FileRotate
|
||
|
|
Source0: https://cpan.metacpan.org/modules/by-module/Log/Log-Dispatch-FileRotate-%{version}.tar.gz
|
||
|
|
BuildArch: noarch
|
||
|
|
# Build
|
||
|
|
BuildRequires: coreutils
|
||
|
|
BuildRequires: findutils
|
||
|
|
BuildRequires: make
|
||
|
|
BuildRequires: perl-generators
|
||
|
|
BuildRequires: perl-interpreter
|
||
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
||
|
|
# Runtime
|
||
|
|
BuildRequires: perl(base)
|
||
|
|
BuildRequires: perl(Carp)
|
||
|
|
BuildRequires: perl(Date::Manip)
|
||
|
|
BuildRequires: perl(Exporter)
|
||
|
|
BuildRequires: perl(Fcntl)
|
||
|
|
BuildRequires: perl(File::Spec)
|
||
|
|
BuildRequires: perl(Log::Dispatch::File)
|
||
|
|
BuildRequires: perl(Log::Dispatch::Output)
|
||
|
|
BuildRequires: perl(strict)
|
||
|
|
BuildRequires: perl(version)
|
||
|
|
BuildRequires: perl(warnings)
|
||
|
|
# Test Suite
|
||
|
|
BuildRequires: perl(Encode)
|
||
|
|
BuildRequires: perl(Log::Dispatch) >= 2.60
|
||
|
|
BuildRequires: perl(Log::Dispatch::Screen)
|
||
|
|
BuildRequires: perl(Path::Tiny) >= 0.018
|
||
|
|
BuildRequires: perl(POSIX)
|
||
|
|
BuildRequires: perl(Test::More) >= 0.88
|
||
|
|
BuildRequires: perl(Test::Warn)
|
||
|
|
BuildRequires: perl(utf8)
|
||
|
|
# Dependencies
|
||
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||
|
|
Requires: perl(Log::Dispatch) >= 2.60
|
||
|
|
Requires: perl(version)
|
||
|
|
|
||
|
|
%description
|
||
|
|
This module provides a simple object for logging to files under the
|
||
|
|
Log::Dispatch::* system, and automatically rotating them according to
|
||
|
|
different constraints. This is basically a Log::Dispatch::File wrapper
|
||
|
|
with additions.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n Log-Dispatch-FileRotate-%{version}
|
||
|
|
|
||
|
|
%build
|
||
|
|
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||
|
|
make %{?_smp_mflags}
|
||
|
|
|
||
|
|
%install
|
||
|
|
make pure_install DESTDIR=$RPM_BUILD_ROOT
|
||
|
|
find $RPM_BUILD_ROOT -type f -name .packlist -delete
|
||
|
|
%{_fixperms} -c $RPM_BUILD_ROOT
|
||
|
|
|
||
|
|
%check
|
||
|
|
make test
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc Changes README
|
||
|
|
%{perl_vendorlib}/Log/Dispatch/
|
||
|
|
%{_mandir}/man3/Log::Dispatch::FileRotate.3*
|
||
|
|
%{_mandir}/man3/Log::Dispatch::FileRotate::Flock.3*
|
||
|
|
%{_mandir}/man3/Log::Dispatch::FileRotate::Mutex.3*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Jun 30 2022 misaka00251 <misaka00251@misakanet.cn> - 1.38-1
|
||
|
|
- Init package (Thanks to fedora team)
|