Name:           perl-XML-Descent
Version:        1.04
Release:        1%{?dist}
Summary:        Recursive descent XML parsing
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/XML-Descent/
Source0:        http://www.cpan.org/authors/id/A/AN/ANDYA/XML-Descent-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-interpreter
BuildRequires:  perl-macros
BuildRequires:  perl-generators
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::Differences)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(XML::TokeParser)
Requires:       perl(Test::Differences)
Requires:       perl(Test::More)
Requires:       perl(XML::TokeParser)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
The conventional models for parsing XML are either DOM (a data structure
representing the entire document tree is created) or SAX (callbacks are
issued for each element in the XML).

%prep
%autosetup -n XML-Descent-%{version}

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
./Build test


%files
%doc Changes README
%{perl_vendorlib}/XML
%{_mandir}/man3/*

%changelog
* Thu May 20 2021 Dan Čermák <dan.cermak@cgc-instruments.com> 1.04-1
- Specfile autogenerated by cpanspec 1.78.