# # Conditional build: %bcond_without tests # do not perform "make test" # %include /usr/lib/rpm/macros.perl %define pdir HTML %define pnam TreeBuilder-XPath Summary: Typical XPath methods for HTML::TreeBuilder #Summary(pl.UTF-8): Name: perl-HTML-TreeBuilder-XPath Version: 0.08 Release: 1 # same as perl5 5.8.4+ License: GPL v2 or Artistic Group: Development/Languages/Perl Source0: http://www.cpan.org/modules/by-module/HTML/%{pdir}-%{pnam}-%{version}.tar.gz # Source0-md5: 2617027d4cd76e304a3006ba4f0381d0 URL: http://search.cpan.org/dist/HTML-TreeBuilder-XPath/ BuildRequires: perl-devel >= 1:5.8.0 BuildRequires: rpm-perlprov >= 4.1-13 %if %{with tests} BuildRequires: perl(XML::XPathEngine) >= 0.08 BuildRequires: perl-HTML-Tree %endif BuildArch: noarch BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description This module adds typical XPath methods to HTML::TreeBuilder, to make it easy to query a document. # %description -l pl.UTF-8 # TODO %prep %setup -q -n %{pdir}-%{pnam}-%{version} %build %{__perl} Makefile.PL \ INSTALLDIRS=vendor %{__make} %{?with_tests:%{__make} test} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc Changes %{perl_vendorlib}/HTML/TreeBuilder/*.pm %{_mandir}/man3/*