2019-09-30 11:13:17 -04:00
|
|
|
%define mod_name Sys-Syslog
|
|
|
|
|
|
|
|
|
|
Name: perl-%{mod_name}
|
2020-07-23 17:28:16 +08:00
|
|
|
Version: 0.36
|
|
|
|
|
Release: 1
|
2019-09-30 11:13:17 -04:00
|
|
|
Summary: An interface to the UNIX syslog(3) program
|
|
|
|
|
License: GPL+ or Artistic
|
|
|
|
|
URL: https://metacpan.org/release/Sys-Syslog
|
|
|
|
|
Source0: http://www.cpan.org/authors/id/S/SA/SAPER/%{mod_name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: coreutils, findutils, gcc, glibc-common, make
|
|
|
|
|
BuildRequires: perl-interpreter, perl-devel, perl-generators
|
|
|
|
|
BuildRequires: perl(Config), perl(ExtUtils::Constant), perl(ExtUtils::MakeMaker)
|
|
|
|
|
BuildRequires: perl(File::Copy), perl(File::Spec), perl(strict)
|
|
|
|
|
BuildRequires: perl(Carp), perl(constant), perl(constant), perl(Fcntl)
|
|
|
|
|
BuildRequires: perl(File::Basename), perl(POSIX), perl(Socket), perl(vars)
|
|
|
|
|
BuildRequires: perl(warnings), perl(warnings::register), perl(XSLoader)
|
|
|
|
|
BuildRequires: perl(FileHandle), perl(Data::Dumper), perl(Test::More)
|
|
|
|
|
BuildRequires: perl(Test::NoWarnings), perl(Test::Pod) >= 1.14
|
|
|
|
|
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
|
|
|
|
Requires: perl(Fcntl), perl(XSLoader)
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Sys-Syslog is an interface to the UNIX syslog(3) program.
|
|
|
|
|
Call syslog() with a string priority and a list of printf() args
|
|
|
|
|
just like syslog(3).
|
|
|
|
|
|
2019-11-06 19:46:58 +08:00
|
|
|
%package_help
|
2019-09-30 11:13:17 -04:00
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{mod_name}-%{version} -p1
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
make pure_install DESTDIR=%{buildroot}
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name .packlist | xargs rm -f
|
|
|
|
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 | xargs rm -f
|
|
|
|
|
%{_fixperms} %{buildroot}/*
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
make test
|
|
|
|
|
|
|
|
|
|
%pre
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%doc Changes eg README
|
|
|
|
|
%{perl_vendorarch}/auto/*
|
|
|
|
|
%{perl_vendorarch}/Sys*
|
|
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2020-07-27 14:49:14 +08:00
|
|
|
* Wed Jul 22 2020 dingyue <dingyue5@huawei.com> - 0.36-1
|
|
|
|
|
- Package update
|
2019-11-06 19:46:58 +08:00
|
|
|
* Mon Oct 28 2019 shenyangyang <shenyangyang4@huawei.com> - 0.35-420
|
|
|
|
|
- Type:enhancement
|
|
|
|
|
- ID:NA
|
|
|
|
|
- SUG:NA
|
|
|
|
|
- DESC:delete unneeded build requires of perl(Test::Portability::Files)
|
|
|
|
|
and perl(Test::Pod::Coverage)
|
|
|
|
|
|
2019-09-30 11:13:17 -04:00
|
|
|
* Mon Sep 16 2019 openEuler Buildteam <buildteam@openeuler.org> - 0.35-419
|
|
|
|
|
- Package init
|