5f7eb2
# Run optional tests
5f7eb2
%if ! (0%{?rhel})
5f7eb2
%bcond_without perl_Sys_Syslog_enables_optional_test
5f7eb2
%else
5f7eb2
%bcond_with perl_Sys_Syslog_enables_optional_test
5f7eb2
%endif
5f7eb2
Name:           perl-Sys-Syslog
5f7eb2
Version:        0.36
5f7eb2
Release:        1%{?dist}
5f7eb2
Summary:        Perl interface to the UNIX syslog(3) calls
5f7eb2
# README:               GPL+ or Artistic
5f7eb2
# ppport.h:             GPL+ or Artistic
5f7eb2
# Syslog.pm:            GPL+ or Artistic
5f7eb2
## Unbundled
5f7eb2
# fallback/syslog.h:    BSD
5f7eb2
License:        GPL+ or Artistic
5f7eb2
URL:            https://metacpan.org/release/Sys-Syslog
5f7eb2
Source0:        https://cpan.metacpan.org/authors/id/S/SA/SAPER/Sys-Syslog-%{version}.tar.gz
5f7eb2
BuildRequires:  coreutils
5f7eb2
BuildRequires:  findutils
5f7eb2
BuildRequires:  gcc
5f7eb2
BuildRequires:  glibc-common
5f7eb2
BuildRequires:  make
5f7eb2
BuildRequires:  perl-interpreter
5f7eb2
BuildRequires:  perl-devel
5f7eb2
BuildRequires:  perl-generators
5f7eb2
BuildRequires:  perl(Config)
5f7eb2
BuildRequires:  perl(ExtUtils::Constant)
5f7eb2
BuildRequires:  perl(ExtUtils::MakeMaker)
5f7eb2
BuildRequires:  perl(File::Copy)
5f7eb2
BuildRequires:  perl(File::Spec)
5f7eb2
BuildRequires:  perl(strict)
5f7eb2
BuildRequires:  sed
5f7eb2
# Run-time:
5f7eb2
BuildRequires:  perl(Carp)
5f7eb2
BuildRequires:  perl(constant)
5f7eb2
BuildRequires:  perl(Exporter)
5f7eb2
BuildRequires:  perl(Fcntl)
5f7eb2
BuildRequires:  perl(File::Basename)
5f7eb2
BuildRequires:  perl(POSIX)
5f7eb2
BuildRequires:  perl(Socket)
5f7eb2
BuildRequires:  perl(vars)
5f7eb2
BuildRequires:  perl(warnings)
5f7eb2
BuildRequires:  perl(warnings::register)
5f7eb2
BuildRequires:  perl(XSLoader)
5f7eb2
# DynaLoader not used
5f7eb2
# Tests:
5f7eb2
BuildRequires:  perl(FileHandle)
5f7eb2
BuildRequires:  perl(Data::Dumper)
5f7eb2
BuildRequires:  perl(Test::More)
5f7eb2
# Optional tests:
5f7eb2
%if !%{defined perl_bootstrap} && %{with perl_Sys_Syslog_enables_optional_test}
5f7eb2
%if !0%{?rhel}
5f7eb2
BuildRequires:  perl(Test::Distribution)
5f7eb2
%endif
5f7eb2
BuildRequires:  perl(Test::NoWarnings)
5f7eb2
BuildRequires:  perl(Test::Pod) >= 1.14
5f7eb2
BuildRequires:  perl(Test::Pod::Coverage) >= 1.06
5f7eb2
BuildRequires:  perl(Test::Portability::Files)
5f7eb2
# POE::Component::Server::Syslog is not packaged yet
5f7eb2
%endif
5f7eb2
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
5f7eb2
Requires:       perl(Fcntl)
5f7eb2
Requires:       perl(XSLoader)
5f7eb2
5f7eb2
%{?perl_default_filter}
5f7eb2
5f7eb2
%description
5f7eb2
Sys::Syslog is an interface to the UNIX syslog(3) function. Call syslog() with
5f7eb2
a string priority and a list of printf() arguments just like at syslog(3).
5f7eb2
5f7eb2
%prep
5f7eb2
%setup -q -n Sys-Syslog-%{version}
5f7eb2
5f7eb2
chmod -x eg/*
5f7eb2
# Inhibit bundled syslog.h
5f7eb2
rm -rf fallback
5f7eb2
sed -i -e '/^fallback\//d' MANIFEST
5f7eb2
# Recode files
5f7eb2
for F in Changes; do
5f7eb2
    iconv -f ISO-8859-1 -t UTF-8 < "$F" >"${F}.utf8"
5f7eb2
    touch -r "$F" "${F}.utf8"
5f7eb2
    mv "${F}.utf8" "$F"
5f7eb2
done
5f7eb2
5f7eb2
%build
5f7eb2
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
5f7eb2
make %{?_smp_mflags}
5f7eb2
5f7eb2
%install
5f7eb2
make pure_install DESTDIR=$RPM_BUILD_ROOT
5f7eb2
find $RPM_BUILD_ROOT -type f -name .packlist -delete
5f7eb2
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
5f7eb2
%{_fixperms} $RPM_BUILD_ROOT/*
5f7eb2
5f7eb2
%check
5f7eb2
make test
5f7eb2
5f7eb2
%files
5f7eb2
%doc Changes eg README 
5f7eb2
%{perl_vendorarch}/auto/*
5f7eb2
%{perl_vendorarch}/Sys*
5f7eb2
%{_mandir}/man3/*
5f7eb2
5f7eb2
%changelog
5f7eb2
* Tue Oct 22 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.36-1
5f7eb2
- 0.36 bump
5f7eb2
5f7eb2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-440
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
5f7eb2
5f7eb2
* Sun Jun 02 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.35-439
5f7eb2
- Perl 5.30 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.35-438
5f7eb2
- Increase release to favour standalone package
5f7eb2
5f7eb2
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-419
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
5f7eb2
5f7eb2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-418
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
5f7eb2
5f7eb2
* Sun Jul 01 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.35-417
5f7eb2
- Perl 5.28 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.35-416
5f7eb2
- Increase release to favour standalone package
5f7eb2
5f7eb2
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-397
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
5f7eb2
5f7eb2
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-396
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
5f7eb2
5f7eb2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-395
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
5f7eb2
5f7eb2
* Wed Jun 07 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.35-394
5f7eb2
- Perl 5.26 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Sat Jun 03 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.35-393
5f7eb2
- Perl 5.26 rebuild
5f7eb2
5f7eb2
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.35-2
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5f7eb2
5f7eb2
* Mon Sep 05 2016 Petr Pisar <ppisar@redhat.com> - 0.35-1
5f7eb2
- 0.35 bump
5f7eb2
5f7eb2
* Wed Aug 03 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-4
5f7eb2
- Avoid loading optional modules from default . (CVE-2016-1238)
5f7eb2
5f7eb2
* Wed May 18 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-3
5f7eb2
- Perl 5.24 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.34-2
5f7eb2
- Perl 5.24 rebuild
5f7eb2
5f7eb2
* Fri May 06 2016 Petr Pisar <ppisar@redhat.com> - 0.34-1
5f7eb2
- 0.34 bump
5f7eb2
5f7eb2
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.33-348
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
5f7eb2
5f7eb2
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-347
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
5f7eb2
5f7eb2
* Wed Jun 10 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-346
5f7eb2
- Perl 5.22 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Thu Jun 04 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-345
5f7eb2
- Increase release to favour standalone package
5f7eb2
5f7eb2
* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-312
5f7eb2
- Perl 5.22 rebuild
5f7eb2
5f7eb2
* Sun Sep 07 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-311
5f7eb2
- Perl 5.20 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Wed Sep 03 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-310
5f7eb2
- Increase release to favour standalone package
5f7eb2
5f7eb2
* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-7
5f7eb2
- Perl 5.20 rebuild
5f7eb2
5f7eb2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-6
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
5f7eb2
5f7eb2
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-5
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
5f7eb2
5f7eb2
* Wed Aug 14 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.33-4
5f7eb2
- Perl 5.18 re-rebuild of bootstrapped packages
5f7eb2
5f7eb2
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.33-3
5f7eb2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
5f7eb2
5f7eb2
* Fri Jul 12 2013 Petr Pisar <ppisar@redhat.com> - 0.33-2
5f7eb2
- Perl 5.18 rebuild
5f7eb2
5f7eb2
* Fri May 24 2013 Petr Pisar <ppisar@redhat.com> - 0.33-1
5f7eb2
- 0.33 bump
5f7eb2
5f7eb2
* Tue Apr 09 2013 Petr Pisar <ppisar@redhat.com> 0.32-1
5f7eb2
- Specfile autogenerated by cpanspec 1.78.