perl-XML-TreeBuilder/perl-XML-TreeBuilder.spec

62 lines
2.0 KiB
RPMSpec
Raw Permalink Normal View History

%define perl_major_ver %(eval `perl -V:version`; echo ${version%*.[0-9]*}.0)
Name: perl-XML-TreeBuilder
Version: 4.3
Release: 1mamba
Summary: XML::TreeBuilder - Parser that builds a tree of XML::Element objects
Group: System/Libraries/Perl
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
URL: http://www.cpan.org
Source: http://search.cpan.org/CPAN/authors/id/J/JF/JFEARN/XML-TreeBuilder-%{version}.tar.gz
License: GPL, Artistic
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(HTML::Element)
BuildRequires: perl(HTML::Tagset)
BuildRequires: perl(XML::Parser)
BuildRequires: perl-devel
Requires: perl(HTML::Element)
Requires: perl >= %perl_major_ver
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
This module uses XML::Parser to make XML document trees constructed of XML::Element objects (and XML::Element is
a subclass of HTML::Element adapted for XML). XML::TreeBuilder is meant particularly for people who are used to the
HTML::TreeBuilder / HTML::Element interface to document trees, and who don't want to learn some other document
interface like XML::Twig or XML::DOM.
%prep
%setup -q -n XML-TreeBuilder-%{version}
%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 {} ';'
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{perl_vendorlib}/XML/*
%{_mandir}/man3/*.3pm.gz
%doc Changes README
%changelog
* Sat Jul 20 2013 Automatic Build System <autodist@mambasoft.it> 4.3-1mamba
- automatic update by autodist
* Tue May 03 2011 Automatic Build System <autodist@mambasoft.it> 4.1-1mamba
- automatic update by autodist
* Mon Feb 21 2011 gil <puntogil@libero.it> 4.0-1mamba
- package created by autospec