Downgrace required version of XML::LibXML to 1.58
[ZOOM-Perl-moved-to-github.git] / modules / orig / perl-XML-LibXML-Simple.spec
1 %global momorel 3
2
3 Name:           perl-XML-LibXML-Simple
4 Version:        0.13
5 Release:        %{momorel}m%{?dist}
6 Summary:        XML::LibXML clone of XML::Simple::XMLin()
7 License:        GPL+ or Artistic
8 Group:          Development/Libraries
9 URL:            http://search.cpan.org/dist/XML-LibXML-Simple/
10 Source0:        http://www.cpan.org/authors/id/M/MA/MARKOV/XML-LibXML-Simple-%{version}.tar.gz
11 NoSource:       0
12 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
13 BuildArch:      noarch
14 BuildRequires:  perl-ExtUtils-MakeMaker
15 BuildRequires:  perl-File-Slurp
16 BuildRequires:  perl-Test-Simple
17 BuildRequires:  perl-Test-Pod >= 1.00
18 BuildRequires:  perl-XML-LibXML >= 1.58
19 Requires:       perl(File::Slurp)
20 Requires:       perl(Test::More) >= 0.54
21 Requires:       perl(Test::Pod) >= 1.00
22 Requires:       perl(XML::LibXML) >= 1.58
23 Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
24
25 %description
26 This module is a blunt rewrite of XML::Simple (by Grant McLean) to use the
27 XML::LibXML parser for XML structures, where the original uses plain Perl
28 or SAX parsers.
29
30 %prep
31 %setup -q -n XML-LibXML-Simple-%{version}
32
33 %build
34 %{__perl} Makefile.PL INSTALLDIRS=vendor
35 make %{?_smp_mflags}
36
37 %install
38 rm -rf %{buildroot}
39
40 make pure_install PERL_INSTALL_ROOT=%{buildroot}
41
42 find %{buildroot} -type f -name .packlist -exec rm -f {} \;
43 find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
44
45 chmod -R u+rwX,go+rX,go-w %{buildroot}/*
46
47 %check
48 make test
49
50 %clean
51 rm -rf %{buildroot}
52
53 %files
54 %defattr(-,root,root,-)
55 %doc ChangeLog README
56 %{perl_vendorlib}/XML/LibXML/Simple*
57 %{_mandir}/man3/*
58
59 %changelog
60 * Tue Jun  2 2009 NAKAYA Toshiharu <nakaya@momonga-linux.org>
61 - (0.13-3m)
62 - remove duplicate directories
63
64 * Mon Jun 01 2009 NAKAYA Toshiharu <nakaya@momonga-linux.org>
65 - (0.13-2m)
66 - modify BuildRequires
67
68 * Sat May 30 2009 Nakamura Hirotaka<h_nakamura@momonga-linux.org>
69 - (0.13-1m)
70 - Specfile autogenerated by cpanspec 1.78 for Momonga Linux.