4285520
Name:           perl-XML-Tidy
4285520
Version:        1.2.54HJnFa
17cdca4
Release:        8%{?dist}
4285520
Summary:        Tidy indenting of XML documents
4285520
4285520
Group:          Development/Libraries
4285520
License:        GPLv2
4285520
URL:            http://search.cpan.org/dist/XML-Tidy
4285520
Source0:        http://search.cpan.org/CPAN/authors/id/P/PI/PIP/XML-Tidy-%{version}.tgz
4285520
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
4285520
4285520
BuildArch:      noarch
4285520
BuildRequires:  perl(ExtUtils::MakeMaker)
4285520
BuildRequires:  perl(Math::BaseCnv)
4285520
BuildRequires:  perl(XML::XPath::XMLParser)
4285520
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
4285520
4285520
4285520
%description
4285520
This module creates XML document objects (with inheritance from XML::XPath) to
4285520
tidy mixed-content (ie. non-data) text node indenting. There are also some
4285520
other handy member functions to compress && expand your XML document object
4285520
(into either a compact XML representation or a binary one).
4285520
4285520
4285520
%prep
4285520
%setup -q -n XML-Tidy-%{version}
4285520
for i in Tidy.pm README; do {
4285520
  iconv -f iso-8859-1 -t utf-8 $i > $i.conv \
4285520
  && mv $i.conv $i;
4285520
};
4285520
done;
4285520
4285520
4285520
%build
4285520
%{__perl} Makefile.PL INSTALLDIRS=vendor
4285520
make %{?_smp_mflags}
4285520
4285520
4285520
%install
4285520
rm -rf $RPM_BUILD_ROOT
4285520
make pure_install PERL_INSTALL_ROOT=$RPM_BUILD_ROOT
4285520
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
4285520
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null ';'
4285520
chmod -R u+w $RPM_BUILD_ROOT/*
4285520
4285520
4285520
%check
4285520
make test
4285520
4285520
4285520
%clean
4285520
rm -rf $RPM_BUILD_ROOT
4285520
4285520
4285520
%files
4285520
%defattr(-,root,root,-)
4285520
%doc README
4285520
%{_bindir}/xmltidy
4285520
%{perl_vendorlib}/*
4285520
%{_mandir}/man3/XML::Tidy.3pm.gz
4285520
4285520
4285520
%changelog
17cdca4
* Fri May 07 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.2.54HJnFa-8
17cdca4
- Mass rebuild with perl-5.12.0
17cdca4
d63e800
* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.2.54HJnFa-7
d63e800
- rebuild against perl 5.10.1
d63e800
063387c
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.54HJnFa-6
063387c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
063387c
c453c43
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.54HJnFa-5
c453c43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
c453c43
c7fa3f6
* Thu Mar  6 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.2.54HJnFa-4
c7fa3f6
- rebuild for new perl
c7fa3f6
4285520
* Wed Dec 26 2007 Xavier Bachelot <xavier@bachelot.org> - 1.2.54HJnFa-3
4285520
- Add missing BR:.
4285520
4285520
* Sat Dec 22 2007 Xavier Bachelot <xavier@bachelot.org> - 1.2.54HJnFa-2
4285520
- Clean up spec.
4285520
4285520
* Thu Aug 30 2007 Xavier Bachelot <xavier@bachelot.org> - 1.2.54HJnFa-1
4285520
- Initial build.