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

55 lines
1.7 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: 1mamba
Summary: XML::TokeParser - Simplified interface to XML::Parser
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
URL: http://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
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%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
* Mon Feb 21 2011 gil <puntogil@libero.it> 0.05-1mamba
- package created by autospec