[1324] | 1 | Name: perl-XML-Parser
|
---|
| 2 | Version: 2.44
|
---|
| 3 | Release: 1%{?dist}
|
---|
| 4 | Summary: Perl module for parsing XML documents
|
---|
| 5 |
|
---|
| 6 | Group: Development/Libraries
|
---|
| 7 | License: GPL+ or Artistic
|
---|
| 8 | Url: http://search.cpan.org/dist/XML-Parser/
|
---|
| 9 | Vendor: bww bitwise works GmbH
|
---|
| 10 | Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-%{version}.tar.gz
|
---|
| 11 |
|
---|
| 12 | BuildRequires: perl-devel
|
---|
| 13 | BuildRequires: perl-generators
|
---|
| 14 | BuildRequires: perl(Carp)
|
---|
| 15 | BuildRequires: perl(Config)
|
---|
| 16 | BuildRequires: perl(Devel::CheckLib)
|
---|
| 17 | BuildRequires: perl(ExtUtils::MakeMaker)
|
---|
| 18 | BuildRequires: perl(FileHandle)
|
---|
| 19 | BuildRequires: perl(if)
|
---|
| 20 | BuildRequires: perl(IO::File)
|
---|
| 21 | BuildRequires: perl(IO::Handle)
|
---|
| 22 | BuildRequires: perl(lib)
|
---|
| 23 | BuildRequires: perl(strict)
|
---|
| 24 | BuildRequires: perl(Test)
|
---|
| 25 | BuildRequires: perl(Test::More)
|
---|
| 26 | BuildRequires: perl(vars)
|
---|
| 27 | BuildRequires: perl(warnings)
|
---|
| 28 | BuildRequires: expat-devel
|
---|
| 29 | # The script LWPExternEnt.pl is loaded by Parser.pm
|
---|
| 30 | BuildRequires: perl(LWP::UserAgent)
|
---|
| 31 | BuildRequires: perl(URI)
|
---|
| 32 | BuildRequires: perl(URI::file)
|
---|
| 33 | Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
|
---|
| 34 | Requires: perl(IO::File)
|
---|
| 35 | Requires: perl(IO::Handle)
|
---|
| 36 |
|
---|
| 37 |
|
---|
| 38 | %{?perl_default_filter}
|
---|
| 39 | %global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::Parser\\)$
|
---|
| 40 |
|
---|
| 41 | %description
|
---|
| 42 | This module provides ways to parse XML documents. It is built on top
|
---|
| 43 | of XML::Parser::Expat, which is a lower level interface to James
|
---|
| 44 | Clark's expat library. Each call to one of the parsing methods creates
|
---|
| 45 | a new instance of XML::Parser::Expat which is then used to parse the
|
---|
| 46 | document. Expat options may be provided when the XML::Parser object is
|
---|
| 47 | created. These options are then passed on to the Expat object on each
|
---|
| 48 | parse call. They can also be given as extra arguments to the parse
|
---|
| 49 | methods, in which case they override options given at XML::Parser
|
---|
| 50 | creation time.
|
---|
| 51 |
|
---|
| 52 | %prep
|
---|
| 53 | %setup -q -n XML-Parser-%{version}
|
---|
| 54 | chmod 644 samples/canonical
|
---|
| 55 | chmod 644 samples/xml*
|
---|
| 56 | perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
|
---|
| 57 |
|
---|
| 58 | # Remove bundled library
|
---|
| 59 | rm -r inc
|
---|
| 60 | sed -i -e '/^inc\// d' MANIFEST
|
---|
| 61 |
|
---|
| 62 | %build
|
---|
| 63 | CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
|
---|
| 64 | make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
|
---|
| 65 | make manifypods
|
---|
| 66 |
|
---|
| 67 | %install
|
---|
| 68 | make pure_install DESTDIR=$RPM_BUILD_ROOT
|
---|
| 69 | find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
|
---|
| 70 | find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
|
---|
| 71 | chmod -R u+w $RPM_BUILD_ROOT/*
|
---|
| 72 |
|
---|
| 73 | #for file in samples/REC-xml-19980210.xml; do
|
---|
| 74 | # iconv -f iso-8859-1 -t utf-8 < "$file" > "${file}_"
|
---|
| 75 | # mv -f "${file}_" "$file"
|
---|
| 76 | # sed -i -e "s/encoding='ISO-8859-1'/encoding='UTF-8'/" "$file"
|
---|
| 77 | #done
|
---|
| 78 |
|
---|
| 79 | %check
|
---|
| 80 | #make test
|
---|
| 81 |
|
---|
| 82 | %files
|
---|
| 83 | %doc README Changes samples/
|
---|
| 84 | %{perl_vendorarch}/XML/
|
---|
| 85 | %{perl_vendorarch}/auto/XML/
|
---|
| 86 | %{_mandir}/man3/*.3*
|
---|
| 87 |
|
---|
| 88 |
|
---|
| 89 | %changelog
|
---|
| 90 | * Mon Feb 26 2018 Silvan Scherrer <silvan.scherrer@aroa.ch> 2.44-1
|
---|
| 91 | - initial rpm
|
---|