rpms/perl-HTML-Tidy/F-7 perl-HTML-Tidy.spec, NONE, 1.1 tidy.patch, NONE, 1.1 sources, 1.1, 1.2

Chris Weyl (cweyl) fedora-extras-commits at redhat.com
Fri Mar 14 06:03:57 UTC 2008


Author: cweyl

Update of /cvs/extras/rpms/perl-HTML-Tidy/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv5283

Modified Files:
	sources 
Added Files:
	perl-HTML-Tidy.spec tidy.patch 
Log Message:
pseudo-branch of perl-HTML-Tidy to F-7


--- NEW FILE perl-HTML-Tidy.spec ---
Name:           perl-HTML-Tidy
Version:        1.08
Release:        3%{?dist}
Summary:        (X)HTML cleanup in a Perl object
License:        GPL+ or Artistic
Group:          Development/Libraries
URL:            http://search.cpan.org/dist/HTML-Tidy/
Source0:        http://www.cpan.org/authors/id/P/PE/PETDANCE/HTML-Tidy-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# see http://rt.cpan.org/Public/Bug/Display.html?id=29593
Patch0:         tidy.patch

# non-perl
BuildRequires:  libtidy-devel
# core
BuildRequires: perl(ExtUtils::MakeMaker) 
BuildRequires: perl(Test::Builder) 
BuildRequires: perl(Test::More) 
# test
BuildRequires: perl(Test::Pod) 
BuildRequires: perl(Test::Pod::Coverage)


%description
HTML::Tidy is an HTML checker in a handy dandy object. It's meant as a
replacement for HTML::Lint. If you're currently an HTML::Lint user 
looking to migrate, see the section "Converting from HTML::Lint".

%prep
%setup -q -n HTML-Tidy-%{version}
%patch0

find .  -type f -exec chmod -c -x                              {} +
find .  -type f -exec perl -pi -e 's/\r//'                     {} +
find t/ -type f -exec perl -pi -e 's|^#!perl|#!/usr/bin/perl|' {} +

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

%install
rm -rf %{buildroot}

make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} + 
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} +
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
make test

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc Changes README t/
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/HTML*
%{_bindir}/*
%{_mandir}/man3/*

%changelog
* Thu Mar 13 2008 Chris Weyl <cweyl at alumni.drew.edu> 1.08-3
- bump

* Thu Oct 25 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.08-2
- apply patch from rt tracker
- misc spec cleanups

* Fri May 25 2007 Chris Weyl <cweyl at alumni.drew.edu> 1.08-1
- Specfile autogenerated by cpanspec 1.71.

tidy.patch:

--- NEW FILE tidy.patch ---
--- Tidy.xs.orig	2007-09-24 11:36:19.000000000 +0200
+++ Tidy.xs	2007-09-24 11:37:42.000000000 +0200
@@ -55,6 +55,7 @@ _tidy_messages(input, configfile, tidy_o
         const char* newline;
         int rc = 0;
     PPCODE:
+        tidyBufInit(&errbuf);
         rc = ( tidyOptSetValue( tdoc, TidyCharEncoding, "utf8" ) ? rc : -1 );
 
         if ( (rc >= 0 ) && configfile && *configfile ) {
@@ -117,6 +118,8 @@ _tidy_clean(input, configfile, tidy_opti
         const char* newline;
         int rc = 0;
     PPCODE:
+        tidyBufInit(&output);
+        tidyBufInit(&errbuf);
         /* Set our default first. */
         /* Don't word-wrap */
         rc = ( tidyOptSetInt( tdoc, TidyWrapLen, 0 ) ? rc : -1 );


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/perl-HTML-Tidy/F-7/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Jan 2008 16:58:13 -0000	1.1
+++ sources	14 Mar 2008 06:03:23 -0000	1.2
@@ -0,0 +1 @@
+adf83cfa6dcfb9de1283f771ad9c2e0d  HTML-Tidy-1.08.tar.gz




More information about the fedora-extras-commits mailing list