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