From 9e53e80d5d31e21703d38b40f92af5054f7288f7 Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: Tue, 7 May 2019 06:43:32 -0400 Subject: [PATCH] import perl-XML-Fast-0.17-4.el8 --- .gitignore | 1 + .perl-XML-Fast.metadata | 1 + ...-Do-not-override-OPTIMIZE-by-default.patch | 30 +++++++ SPECS/perl-XML-Fast.spec | 84 +++++++++++++++++++ 4 files changed, 116 insertions(+) create mode 100644 .gitignore create mode 100644 .perl-XML-Fast.metadata create mode 100644 SOURCES/XML-Fast-0.17-Do-not-override-OPTIMIZE-by-default.patch create mode 100644 SPECS/perl-XML-Fast.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2dbc36 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/XML-Fast-0.17.tar.gz diff --git a/.perl-XML-Fast.metadata b/.perl-XML-Fast.metadata new file mode 100644 index 0000000..e4c6653 --- /dev/null +++ b/.perl-XML-Fast.metadata @@ -0,0 +1 @@ +c2c979634f2cf0b9463a948e4d56410f194aae7d SOURCES/XML-Fast-0.17.tar.gz diff --git a/SOURCES/XML-Fast-0.17-Do-not-override-OPTIMIZE-by-default.patch b/SOURCES/XML-Fast-0.17-Do-not-override-OPTIMIZE-by-default.patch new file mode 100644 index 0000000..ec8178b --- /dev/null +++ b/SOURCES/XML-Fast-0.17-Do-not-override-OPTIMIZE-by-default.patch @@ -0,0 +1,30 @@ +From e72c454ae7cd2be16974b54884a568031e00df5f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +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ř +--- + 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 + diff --git a/SPECS/perl-XML-Fast.spec b/SPECS/perl-XML-Fast.spec new file mode 100644 index 0000000..e75b3a3 --- /dev/null +++ b/SPECS/perl-XML-Fast.spec @@ -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 - 0.17-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.17-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Fri Jun 30 2017 Petr Pisar - 0.17-1 +- 0.17 bump + +* Tue Jun 27 2017 Petr Pisar - 0.16-1 +- 0.16 bump + +* Sun Jun 04 2017 Jitka Plesnikova - 0.11-3 +- Perl 5.26 rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Fri Nov 11 2016 Petr Pisar 0.11-1 +- Specfile autogenerated by cpanspec 1.78.