initial import
This commit is contained in:
parent
aced6635df
commit
8a2fd38e77
@ -0,0 +1 @@
|
||||
XML-TokeParser-0.05.tar.gz
|
55
perl-XML-TokeParser.spec
Normal file
55
perl-XML-TokeParser.spec
Normal file
@ -0,0 +1,55 @@
|
||||
Name: perl-XML-TokeParser
|
||||
Version: 0.05
|
||||
Release: 1%{?dist}
|
||||
Summary: Simplified interface to XML::Parser
|
||||
License: GPL+ or Artistic
|
||||
Group: Development/Libraries
|
||||
URL: http://search.cpan.org/dist/XML-TokeParser/
|
||||
Source0: http://www.cpan.org/authors/id/P/PO/PODMASTER/XML-TokeParser-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildArch: noarch
|
||||
BuildRequires: perl(ExtUtils::MakeMaker)
|
||||
BuildRequires: perl(XML::Parser) >= 2
|
||||
Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
|
||||
|
||||
%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 INSTALLDIRS=vendor
|
||||
make %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
|
||||
|
||||
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} \;
|
||||
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;
|
||||
|
||||
%{_fixperms} $RPM_BUILD_ROOT/*
|
||||
|
||||
%check
|
||||
make test
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc Changes README TODO TokeParser.xml
|
||||
%{perl_vendorlib}/*
|
||||
%{_mandir}/man3/*
|
||||
|
||||
%changelog
|
||||
* Mon May 04 2009 Iain Arnell <iarnell@gmail.com> 0.05-1
|
||||
- Specfile autogenerated by cpanspec 1.77.
|
||||
- Fix line-endings and permissions
|
Loading…
Reference in New Issue
Block a user