source: spec/trunk/SPECS/perl-XML-Parser.spec

Last change on this file was 1324, checked in by Silvan Scherrer, 8 years ago

spec: perl-XML-parser: Release version perl-XML-Parser.2.44-1.

File size: 2.8 KB
RevLine 
[1324]1Name: perl-XML-Parser
2Version: 2.44
3Release: 1%{?dist}
4Summary: Perl module for parsing XML documents
5
6Group: Development/Libraries
7License: GPL+ or Artistic
8Url: http://search.cpan.org/dist/XML-Parser/
9Vendor: bww bitwise works GmbH
10Source0: http://search.cpan.org/CPAN/authors/id/T/TO/TODDR/XML-Parser-%{version}.tar.gz
11
12BuildRequires: perl-devel
13BuildRequires: perl-generators
14BuildRequires: perl(Carp)
15BuildRequires: perl(Config)
16BuildRequires: perl(Devel::CheckLib)
17BuildRequires: perl(ExtUtils::MakeMaker)
18BuildRequires: perl(FileHandle)
19BuildRequires: perl(if)
20BuildRequires: perl(IO::File)
21BuildRequires: perl(IO::Handle)
22BuildRequires: perl(lib)
23BuildRequires: perl(strict)
24BuildRequires: perl(Test)
25BuildRequires: perl(Test::More)
26BuildRequires: perl(vars)
27BuildRequires: perl(warnings)
28BuildRequires: expat-devel
29# The script LWPExternEnt.pl is loaded by Parser.pm
30BuildRequires: perl(LWP::UserAgent)
31BuildRequires: perl(URI)
32BuildRequires: perl(URI::file)
33Requires: perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
34Requires: perl(IO::File)
35Requires: perl(IO::Handle)
36
37
38%{?perl_default_filter}
39%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}perl\\(XML::Parser\\)$
40
41%description
42This module provides ways to parse XML documents. It is built on top
43of XML::Parser::Expat, which is a lower level interface to James
44Clark's expat library. Each call to one of the parsing methods creates
45a new instance of XML::Parser::Expat which is then used to parse the
46document. Expat options may be provided when the XML::Parser object is
47created. These options are then passed on to the Expat object on each
48parse call. They can also be given as extra arguments to the parse
49methods, in which case they override options given at XML::Parser
50creation time.
51
52%prep
53%setup -q -n XML-Parser-%{version}
54chmod 644 samples/canonical
55chmod 644 samples/xml*
56perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' samples/{canonical,xml*}
57
58# Remove bundled library
59rm -r inc
60sed -i -e '/^inc\// d' MANIFEST
61
62%build
63CFLAGS="$RPM_OPT_FLAGS" perl Makefile.PL INSTALLDIRS=vendor
64make %{?_smp_mflags} OPTIMIZE="$RPM_OPT_FLAGS"
65make manifypods
66
67%install
68make pure_install DESTDIR=$RPM_BUILD_ROOT
69find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
70find $RPM_BUILD_ROOT -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
71chmod -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
Note: See TracBrowser for help on using the repository browser.