import perl-XML-Fast-0.17-4.el8

This commit is contained in:
CentOS Sources 2019-05-07 06:43:32 -04:00 committed by Andrew Lukoshko
commit 9e53e80d5d
4 changed files with 116 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
SOURCES/XML-Fast-0.17.tar.gz

1
.perl-XML-Fast.metadata Normal file
View File

@ -0,0 +1 @@
c2c979634f2cf0b9463a948e4d56410f194aae7d SOURCES/XML-Fast-0.17.tar.gz

View File

@ -0,0 +1,30 @@
From e72c454ae7cd2be16974b54884a568031e00df5f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Fri, 30 Jun 2017 15:10:22 +0200
Subject: [PATCH] Do not override OPTIMIZE by default
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
CPAN RT#118714
Signed-off-by: Petr Písař <ppisar@redhat.com>
---
Makefile.PL | 1 -
1 file changed, 1 deletion(-)
diff --git a/Makefile.PL b/Makefile.PL
index b1153e7..94fae7b 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -23,7 +23,6 @@ WriteMakefile(
DEFINE => '',
INC => '-I.',
CCFLAGS => $CCFLAGS,
- OPTIMIZE => ($AUTHOR ? '-g ' : '').'-O2',
OBJECT => 'Fast.o xmlfast.o', # link all the C files too
META_ADD => { license => 'perl' },
);
--
2.9.4

84
SPECS/perl-XML-Fast.spec Normal file
View File

@ -0,0 +1,84 @@
Name: perl-XML-Fast
Version: 0.17
Release: 4%{?dist}
Summary: Simple and very fast XML to hash conversion
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/XML-Fast/
Source0: http://www.cpan.org/authors/id/M/MO/MONS/XML-Fast-%{version}.tar.gz
# Do not override OPTIMIZE, CPAN RT#118714
Patch0: XML-Fast-0.17-Do-not-override-OPTIMIZE-by-default.patch
BuildRequires: findutils
BuildRequires: gcc
BuildRequires: make
BuildRequires: perl-interpreter
BuildRequires: perl-devel
BuildRequires: perl-generators
BuildRequires: perl(:VERSION) >= 5.8.8
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
BuildRequires: perl(base)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(XSLoader)
# Tests:
BuildRequires: perl(bytes)
BuildRequires: perl(Test::More)
BuildRequires: perl(utf8)
# Optional tests:
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Test::NoWarnings)
Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%description
This Perl module implements simple, state machine based, XML parser
written in C. It could parse and recover some kind of broken XML's.
%prep
%setup -q -n XML-Fast-%{version}
%patch0 -p1
%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}
%install
make pure_install DESTDIR=$RPM_BUILD_ROOT
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
%{_fixperms} $RPM_BUILD_ROOT/*
%check
make test
%files
%license LICENSE
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/XML*
%{_mandir}/man3/*
%changelog
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.17-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
* Fri Jun 30 2017 Petr Pisar <ppisar@redhat.com> - 0.17-1
- 0.17 bump
* Tue Jun 27 2017 Petr Pisar <ppisar@redhat.com> - 0.16-1
- 0.16 bump
* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.11-3
- Perl 5.26 rebuild
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.11-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
* Fri Nov 11 2016 Petr Pisar <ppisar@redhat.com> 0.11-1
- Specfile autogenerated by cpanspec 1.78.