diff --git a/.cvsignore b/.cvsignore index e69de29..b8ad223 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +XML-Tidy-1.2.54HJnFa.tgz diff --git a/perl-XML-Tidy.spec b/perl-XML-Tidy.spec new file mode 100644 index 0000000..72ae051 --- /dev/null +++ b/perl-XML-Tidy.spec @@ -0,0 +1,72 @@ +Name: perl-XML-Tidy +Version: 1.2.54HJnFa +Release: 3%{?dist} +Summary: Tidy indenting of XML documents + +Group: Development/Libraries +License: GPLv2 +URL: http://search.cpan.org/dist/XML-Tidy +Source0: http://search.cpan.org/CPAN/authors/id/P/PI/PIP/XML-Tidy-%{version}.tgz +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildArch: noarch +BuildRequires: perl(ExtUtils::MakeMaker) +BuildRequires: perl(Math::BaseCnv) +BuildRequires: perl(XML::XPath::XMLParser) +Requires: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version)) + + +%description +This module creates XML document objects (with inheritance from XML::XPath) to +tidy mixed-content (ie. non-data) text node indenting. There are also some +other handy member functions to compress && expand your XML document object +(into either a compact XML representation or a binary one). + + +%prep +%setup -q -n XML-Tidy-%{version} +for i in Tidy.pm README; do { + iconv -f iso-8859-1 -t utf-8 $i > $i.conv \ + && mv $i.conv $i; +}; +done; + + +%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 ';' +chmod -R u+w $RPM_BUILD_ROOT/* + + +%check +make test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc README +%{_bindir}/xmltidy +%{perl_vendorlib}/* +%{_mandir}/man3/XML::Tidy.3pm.gz + + +%changelog +* Wed Dec 26 2007 Xavier Bachelot - 1.2.54HJnFa-3 +- Add missing BR:. + +* Sat Dec 22 2007 Xavier Bachelot - 1.2.54HJnFa-2 +- Clean up spec. + +* Thu Aug 30 2007 Xavier Bachelot - 1.2.54HJnFa-1 +- Initial build. diff --git a/sources b/sources index e69de29..9242f28 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +8bafc2d11f95c403b3a7d732c5ed494d XML-Tidy-1.2.54HJnFa.tgz