%define pkg_name XML-GXML %define pkg_version 2.4 %define rpm_pkg_version 2.4 %define rpm_pkg_release 2.n0i.4 Summary: XML transformation and XML->HTML conv Name: perl-%{pkg_name} Version: %{rpm_pkg_version} Release: %{rpm_pkg_release}%{?cpan_version}%{?dist} Group: Development/Libraries License: Artistic URL: http://search.cpan.org/dist/%{pkg_name}/ Source0: http://www.cpan.org/authors/id/J/JC/JCARTER/%{pkg_name}-%{pkg_version}.tar.gz BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: reb00t-rpmdevtools BuildRequires: perl(ExtUtils::MakeMaker) BuildRequires: perl(XML::Parser) >= 2 %description GXML is a perl module for transforming XML. It may be put to a variety of tasks; in scope it is similar to XSL, but less ambitious and much easier to use. In addition to XML transformations, GXML is well-suited to translating XML into HTML. %prep %setup -q -n %{pkg_name}-%{pkg_version} %{__tar} cvjf examples.tar.bz2 examples/ %build %{perl_build} %{__perl} -Iblib/lib -- gxml2html.pl --source docs %{!?_without_test:export PERL5LIB=$(pwd)/blib/lib && %{__make} test} %install %{__rm} -rf $RPM_BUILD_ROOT %{perl_install} %{__chmod} 0644 Changes README docs/*.html %clean %{__rm} -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{perl_files} %doc Changes README docs/*.html %doc examples.tar.bz2 %changelog * Fri Jun 15 2007 Marius Feraru - 2.4-2.n0i.4 - spec file (re)created using N0i::CPAN::RPMizer/1.14.9 - rebuild on perl 5.8.8 * Mon Aug 01 2005 Marius Feraru 2.4-1.n0i.3 - spec file (re)created using N0i::CPAN::RPMizer/1.01 - rebuild on perl 5.8.7 * Sun Feb 01 2004 Marius FERARU 0:2.4-0.n0i.2 - version 2.4 - spec file (re?)created using N0i::CPAN::RPMizer/2004011001 * Sun Jun 29 2003 Marius FERARU 2.2-0.n0i - Initial build.