perl-XML-TokeParser/perl-XML-TokeParser.spec

60 lines
1.8 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-XML-TokeParser
Version: 0.05
Release: 3mamba
Summary: XML::TokeParser - Simplified interface to XML::Parser
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: https://www.cpan.org/
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
* Thu Sep 08 2022 Automatic Build System <autodist@mambasoft.it> 0.05-3mamba
- automatic rebuild by autodist
* Wed Sep 07 2022 Automatic Build System <autodist@mambasoft.it> 0.05-2mamba
- automatic rebuild by autodist
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.05-1mamba
- package created by autospec