From 231cc6465e073e5a4649db99b709e2fed6ecf8d6 Mon Sep 17 00:00:00 2001 From: Petr Písař Date: Nov 16 2016 17:27:29 +0000 Subject: Import --- diff --git a/.gitignore b/.gitignore index e69de29..529c340 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/XML-Fast-0.11.tar.gz diff --git a/XML-Fast-0.11-Do-not-override-OPTIMIZE-by-default.patch b/XML-Fast-0.11-Do-not-override-OPTIMIZE-by-default.patch new file mode 100644 index 0000000..2ddd89f --- /dev/null +++ b/XML-Fast-0.11-Do-not-override-OPTIMIZE-by-default.patch @@ -0,0 +1,30 @@ +From d8ebfe1122f5e3018742b1d2d32211be90594a3a Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 11 Nov 2016 13:49:24 +0100 +Subject: [PATCH] Do not override OPTIMIZE by default +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Petr Písař +--- + Makefile.PL | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile.PL b/Makefile.PL +index fbab6fd..45ccc69 100644 +--- a/Makefile.PL ++++ b/Makefile.PL +@@ -17,8 +17,8 @@ WriteMakefile( + INC => '-I.', + $AUTHOR ? ( + CCFLAGS => '-Wunused -std=c99', # only author mode ++ OPTIMIZE => '-g', + ) : (), +- OPTIMIZE => '-g', + OBJECT => 'Fast.o xmlfast.o', # link all the C files too + META_ADD => { license => 'perl' }, + ); +-- +2.7.4 + diff --git a/perl-XML-Fast.spec b/perl-XML-Fast.spec new file mode 100644 index 0000000..50d2feb --- /dev/null +++ b/perl-XML-Fast.spec @@ -0,0 +1,65 @@ +Name: perl-XML-Fast +Version: 0.11 +Release: 1%{?dist} +Summary: Simple and very fast XML to hash conversion +License: GPL+ or Artistic +Group: Development/Libraries +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.11-Do-not-override-OPTIMIZE-by-default.patch +BuildRequires: findutils +BuildRequires: gcc +BuildRequires: make +BuildRequires: perl +BuildRequires: perl-devel +BuildRequires: perl-generators +BuildRequires: perl(:VERSION) >= 5.8.8 +BuildRequires: perl(ExtUtils::MakeMaker) +# 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 OPTIMIZE="$RPM_OPT_FLAGS" +make %{?_smp_mflags} + +%install +make pure_install DESTDIR=$RPM_BUILD_ROOT +find $RPM_BUILD_ROOT -type f -name .packlist -delete +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 Nov 11 2016 Petr Pisar 0.11-1 +- Specfile autogenerated by cpanspec 1.78. diff --git a/sources b/sources index e69de29..6c0ca5f 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +a2985cc2f328cf9eda6ad75c3f40f6b3 XML-Fast-0.11.tar.gz