2024-01-06 09:55:18 +01:00
|
|
|
%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
|
|
|
|
|
|
|
|
Name: perl-XML-TokeParser
|
|
|
|
Version: 0.05
|
2024-01-06 09:55:18 +01:00
|
|
|
Release: 3mamba
|
2024-01-06 09:55:18 +01:00
|
|
|
Summary: XML::TokeParser - Simplified interface to XML::Parser
|
|
|
|
Group: System/Libraries/Perl
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-01-06 09:55:18 +01:00
|
|
|
Packager: Automatic Build System <autodist@mambasoft.it>
|
|
|
|
URL: https://www.cpan.org/
|
2024-01-06 09:55:18 +01:00
|
|
|
Source: http://search.cpan.org/CPAN/authors/id/P/PO/PODMASTER/XML-TokeParser-%{version}.tar.gz
|
|
|
|
License: GPL, Artistic
|
|
|
|
BuildRequires: perl(ExtUtils::MakeMaker)
|
|
|
|
BuildRequires: perl(XML::Parser)
|
|
|
|
BuildRequires: perl-devel
|
|
|
|
Requires: perl >= %perl_major_ver
|
|
|
|
|
|
|
|
%description
|
|
|
|
XML::TokeParser provides a procedural ("pull mode") interface to XML::Parser in much the same way that Gisle Aas'
|
|
|
|
HTML::TokeParser provides a procedural interface to HTML::Parser. XML::TokeParser splits its XML input up into
|
|
|
|
"tokens," each corresponding to an XML::Parser event.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n XML-TokeParser-%{version}
|
|
|
|
find . -type f | xargs sed -i -e 's/\r//'
|
|
|
|
find . -type f | xargs chmod 0644
|
|
|
|
|
|
|
|
%build
|
|
|
|
perl Makefile.PL PREFIX=%{_prefix} INSTALLDIRS=vendor
|
|
|
|
%make
|
|
|
|
%make test
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall_perl
|
|
|
|
|
|
|
|
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
|
|
|
|
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
|
|
|
|
chmod -R u+w %{buildroot}/*
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{perl_vendorlib}/*
|
|
|
|
%{_mandir}/man3/*.3pm.gz
|
|
|
|
%doc Changes README TODO TokeParser.xml
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 09:55:18 +01:00
|
|
|
* Thu Sep 08 2022 Automatic Build System <autodist@mambasoft.it> 0.05-3mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-01-06 09:55:18 +01:00
|
|
|
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 0.05-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
2024-01-06 09:55:18 +01:00
|
|
|
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.05-1mamba
|
|
|
|
- package created by autospec
|