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