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