[Erp5-report] r22923 - in /spec/mandriva/2008.0: perl-HTML-Encoding/ perl-SGML-Parser-OpenS...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 6 22:12:22 CEST 2008
Author: kazuhiko
Date: Wed Aug 6 22:12:18 2008
New Revision: 22923
URL: http://svn.erp5.org?rev=22923&view=rev
Log:
import w3c-markup-validator and its dependencies.
Added:
spec/mandriva/2008.0/perl-HTML-Encoding/
spec/mandriva/2008.0/perl-HTML-Encoding/perl-HTML-Encoding.spec
spec/mandriva/2008.0/perl-SGML-Parser-OpenSP/
spec/mandriva/2008.0/perl-SGML-Parser-OpenSP/perl-SGML-Parser-OpenSP.spec
spec/mandriva/2008.0/w3c-markup-validator/
spec/mandriva/2008.0/w3c-markup-validator/conf.patch
spec/mandriva/2008.0/w3c-markup-validator/perl-module.patch
spec/mandriva/2008.0/w3c-markup-validator/w3c-markup-validator.spec
Added: spec/mandriva/2008.0/perl-HTML-Encoding/perl-HTML-Encoding.spec
URL: http://svn.erp5.org/spec/mandriva/2008.0/perl-HTML-Encoding/perl-HTML-Encoding.spec?rev=22923&view=auto
==============================================================================
--- spec/mandriva/2008.0/perl-HTML-Encoding/perl-HTML-Encoding.spec (added)
+++ spec/mandriva/2008.0/perl-HTML-Encoding/perl-HTML-Encoding.spec Wed Aug 6 22:12:18 2008
@@ -1,0 +1,50 @@
+%define module HTML-Encoding
+%define name perl-%{module}
+%define version 0.56
+%define release %mkrel 1
+
+Name: %{name}
+Version: %{version}
+Release: %{release}
+Summary: Determine the encoding of HTML/XML/XHTML documents
+Group: Development/Perl
+License: GPL or Artistic
+Source: http://www.cpan.org/authors/id/S/SB/SBURKE/%{module}-%{version}.tar.gz
+Url: http://search.cpan.org/dist/%{module}/
+%if %{mdkversion} < 1010
+BuildRequires: perl-devel
+%endif
+BuildRequires: perl-libwww-perl
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}
+
+%description
+HTML::Encoding helps to determine the encoding of HTML and XML/XHTML documents.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+%{__perl} Makefile.PL INSTALLDIRS=vendor
+%make
+
+%check
+%{__make} test
+
+%install
+rm -rf %{buildroot}
+%makeinstall_std
+
+%clean
+rm -rf %{buildroot}
+
+%files
+%defattr(-,root,root)
+%doc README Changes
+%{perl_vendorlib}/HTML
+%{_mandir}/*/*
+
+
+%changelog
+* Wed Aug 6 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 0.56-1nxd2008.1
+- initial package for Mandriva
Added: spec/mandriva/2008.0/perl-SGML-Parser-OpenSP/perl-SGML-Parser-OpenSP.spec
URL: http://svn.erp5.org/spec/mandriva/2008.0/perl-SGML-Parser-OpenSP/perl-SGML-Parser-OpenSP.spec?rev=22923&view=auto
==============================================================================
--- spec/mandriva/2008.0/perl-SGML-Parser-OpenSP/perl-SGML-Parser-OpenSP.spec (added)
+++ spec/mandriva/2008.0/perl-SGML-Parser-OpenSP/perl-SGML-Parser-OpenSP.spec Wed Aug 6 22:12:18 2008
@@ -1,0 +1,54 @@
+%define module SGML-Parser-OpenSP
+%define name perl-%{module}
+%define version 0.991
+
+Name: %{name}
+Version: %{version}
+Release: %mkrel 1
+Summary: Parse SGML documents using OpenSP
+License: GPL or Artistic
+Group: Development/Perl
+URL: http://search.cpan.org/dist/%{module}
+Source: http://www.cpan.org/modules/by-module/XML/%{module}-%{version}.tar.gz
+BuildRequires: perl-devel
+BuildRequires: OpenSP-devel
+# the follwings are required for test
+BuildRequires: perl-Test-Exception
+BuildRequires: perl-Class-Accessor
+BuildRoot: %{_tmppath}/%{name}-%{version}
+
+%description
+This module provides an interface to the OpenSP SGML parser. OpenSP
+and this module are event based. As the parser recognizes parts of the
+document (say the start or end of an element), then any handlers
+registered for that type of an event are called with suitable
+parameters.
+
+%prep
+%setup -q -n %{module}-%{version}
+
+%build
+perl Makefile.PL INSTALLDIRS=vendor
+%make OPTIMIZE="%{optflags}"
+
+%check
+make test
+
+%clean
+rm -rf %{buildroot}
+
+%install
+rm -rf %{buildroot}
+%makeinstall_std
+
+%files
+%defattr(-,root,root)
+%doc README Changes samples
+%{_mandir}/*/*
+%{perl_vendorarch}/SGML/Parser*
+%{perl_vendorarch}/auto/SGML/Parser*
+
+
+%changelog
+* Wed Aug 6 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 0.991-1nxd2008.1
+- initial package for Mandriva
Added: spec/mandriva/2008.0/w3c-markup-validator/conf.patch
URL: http://svn.erp5.org/spec/mandriva/2008.0/w3c-markup-validator/conf.patch?rev=22923&view=auto
==============================================================================
--- spec/mandriva/2008.0/w3c-markup-validator/conf.patch (added)
+++ spec/mandriva/2008.0/w3c-markup-validator/conf.patch Wed Aug 6 22:12:18 2008
@@ -1,0 +1,34 @@
+--- validator-0.8.2/httpd/conf/httpd.conf.orig 2008-03-13 21:02:51.000000000 +0100
++++ validator-0.8.2/httpd/conf/httpd.conf 2008-03-13 21:17:09.000000000 +0100
+@@ -34,6 +34,10 @@
+ # This is the directory where you have the validator's *.html, *.css etc files.
+
+ Alias /w3c-validator/ /usr/share/w3c-markup-validator/htdocs/
++<Directory /usr/share/w3c-markup-validator/>
++ Allow from localhost
++</Directory>
++
+ <Directory /usr/share/w3c-markup-validator/htdocs/>
+ Options IncludesNOEXEC Indexes MultiViews
+ AllowOverride None
+@@ -66,9 +70,3 @@
+ <IfModule mod_rewrite.c>
+ RewriteRule /w3c-validator/whatsnew.atom$ http://www.w3.org/QA/Tools/validator-whatsnew.atom [P,L]
+ </IfModule>
+-
+-<Proxy *>
+- Order Deny,Allow
+- Allow from all
+-</Proxy>
+-
+--- validator-0.8.2/htdocs/config/validator.conf.orig 2008-03-13 21:35:54.000000000 +0100
++++ validator-0.8.2/htdocs/config/validator.conf 2008-03-13 21:22:35.000000000 +0100
+@@ -48,7 +48,7 @@
+
+ #
+ # Whether private RFC1918 addresses are allowed.
+-Allow Private IPs = no
++Allow Private IPs = yes
+
+ #
+ # Enable (or not) the web service API for this validator
Added: spec/mandriva/2008.0/w3c-markup-validator/perl-module.patch
URL: http://svn.erp5.org/spec/mandriva/2008.0/w3c-markup-validator/perl-module.patch?rev=22923&view=auto
==============================================================================
--- spec/mandriva/2008.0/w3c-markup-validator/perl-module.patch (added)
+++ spec/mandriva/2008.0/w3c-markup-validator/perl-module.patch Wed Aug 6 22:12:18 2008
@@ -1,0 +1,14 @@
+--- validator-0.8.2/httpd/cgi-bin/check.orig 2008-03-13 21:02:51.000000000 +0100
++++ validator-0.8.2/httpd/cgi-bin/check 2008-03-13 21:13:30.000000000 +0100
+@@ -48,9 +48,9 @@
+ use Config::General 2.19 qw(); # Need 2.19 for -AutoLaunder
+ use Encode qw();
+ use Encode::Alias qw();
+-use Encode::HanExtra qw(); # for some chinese character encodings,
++#use Encode::HanExtra qw(); # for some chinese character encodings,
+ # e.g gb18030
+-use Encode::JIS2K qw(); # ditto extra japanese encodings
++#use Encode::JIS2K qw(); # ditto extra japanese encodings
+ use File::Spec qw();
+ use HTML::Encoding 0.52 qw();
+ use HTML::Parser 3.25 qw(); # Need 3.25 for $p->ignore_elements.
Added: spec/mandriva/2008.0/w3c-markup-validator/w3c-markup-validator.spec
URL: http://svn.erp5.org/spec/mandriva/2008.0/w3c-markup-validator/w3c-markup-validator.spec?rev=22923&view=auto
==============================================================================
--- spec/mandriva/2008.0/w3c-markup-validator/w3c-markup-validator.spec (added)
+++ spec/mandriva/2008.0/w3c-markup-validator/w3c-markup-validator.spec Wed Aug 6 22:12:18 2008
@@ -1,0 +1,193 @@
+# RPM spec file for the W3C Markup Validator
+# $Id: w3c-markup-validator.spec,v 1.10 2007-10-10 08:56:41 ot Exp $
+
+
+%{expand: %%define tbver %(echo %{version} | tr . _)}
+
+Name: w3c-markup-validator
+Version: 0.8.2
+Release: %mkrel 1
+Summary: W3C Markup Validator
+
+Group: Applications/Internet
+License: W3C Software License
+URL: http://validator.w3.org/
+Source0: http://validator.w3.org/dist/validator.tar.gz
+Source1: http://validator.w3.org/dist/sgml-lib.tar.gz
+Patch0: conf.patch
+Patch1: perl-module.patch
+BuildArch: noarch
+BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+Requires: apache
+Requires: %{name}-libs = %{version}
+
+%description
+The W3C Markup Validator checks documents like HTML and XHTML for
+conformance to W3C Recommendations and other standards.
+
+%package libs
+Summary: SGML and XML DTDs for the W3C Markup Validator
+Group: Applications/Text
+Requires: sgml-common
+
+%description libs
+SGML and XML DTDs for the W3C Markup Validator.
+
+
+%prep
+%setup -q -a 1 -n validator-%{version}
+mv validator-%{version}/htdocs/sgml-lib .
+
+# Localize configs.
+%{__perl} -pi -e \
+ 's|/usr/local/validator\b|%{_datadir}/%{name}|' \
+ htdocs/config/validator.conf httpd/conf/httpd.conf httpd/cgi-bin/*
+%{__perl} -pi -e \
+ 's|^(\s*Library\s*=\s*).*|${1}%{_datadir}/sgml/%{name}| ;
+ s|^(\s*TidyConf\s*=\s*).*|${1}%{_sysconfdir}/w3c/tidy.conf| ;
+ s|\bwww-validator\@w3\.org\b|root\@localhost| ;
+ s|/validator\.w3\.org/|/localhost/w3c-validator/|' \
+ htdocs/config/validator.conf
+%patch0 -p1
+%patch1 -p1
+
+# Move config out of the way
+mv htdocs/config __config
+
+
+%build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+# Config files
+install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/w3c
+install -pm 644 __config/* $RPM_BUILD_ROOT%{_sysconfdir}/w3c
+install -Dpm 644 httpd/conf/httpd.conf \
+ $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d/%{name}.conf
+
+# Scripts, HTML, etc.
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -pR httpd/cgi-bin htdocs share $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+# SGML library
+install -dm 755 $RPM_BUILD_ROOT%{_datadir}/sgml
+cp -pR sgml-lib $RPM_BUILD_ROOT%{_datadir}/sgml/%{name}
+install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/sgml
+touch $RPM_BUILD_ROOT%{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+
+%post
+[ $1 -eq 1 ] && %{_initrddir}/httpd reload &>/dev/null || :
+
+%postun
+%{_initrddir}/httpd reload &>/dev/null || :
+
+%post libs
+for catalog in sgml.soc xml.soc ; do
+ install-catalog --add \
+ %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
+ %{_datadir}/sgml/%{name}/$catalog >/dev/null 2>&1 || :
+done
+
+%preun libs
+for catalog in sgml.soc xml.soc ; do
+ install-catalog --remove \
+ %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
+ %{_datadir}/sgml/%{name}/$catalog >/dev/null 2>&1 || :
+done
+
+
+%files
+%defattr(-,root,root,-)
+# Configs not "noreplace", they're incompatible to some extent between releases
+%config %{_sysconfdir}/httpd/conf.d/%{name}.conf
+%config %{_sysconfdir}/w3c/
+%{_datadir}/%{name}/
+
+%files libs
+%defattr(-,root,root,-)
+%ghost %config %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat
+%{_datadir}/sgml/%{name}/
+
+
+%changelog
+* Thu Mar 13 2008 Kazuhiko Shiozaki <kazuhiko at nexedi.com> 0.8.2-1mdv2008.0
+- 0.8.2.
+- arrange for Mandriva 2008.0
+
+* Thu Feb 9 2006 Ville Skyttä <ville.skytta at iki.fi> - 0.7.2-1
+- 0.7.2.
+
+* Sat Oct 8 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.7.1-1
+- 0.7.1.
+
+* Fri Sep 23 2005 Ville Skyttä <ville.skytta at iki.fi> - 0.7.0-1
+- Update to 0.7.0.
+
+* Thu Oct 14 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.7.0-0.1.cvs
+- Bring -libs post(un)install scriptlets up to date with sgml-lib/*.soc.
+
+* Sun Oct 10 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.7.0-0.cvs
+- Update to 0.7.0 (CVS HEAD as of today).
+
+* Wed Jul 21 2004 Terje Bless <link at pobox.com> - 0:0.6.7-1
+- Update to 0.6.7.
+
+* Fri Jun 4 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.6-2
+- Fix Home Page and Msg FAQ URI in %%{_sysconfdir}/w3c/validator.conf.
+
+* Thu May 20 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.6-1
+- Update to 0.6.6.
+- Include local source/index.html in the package.
+
+* Thu May 6 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-1
+- Update to 0.6.5.
+
+* Fri Apr 30 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-0.beta3.1
+- Update to 0.6.5 beta 3.
+
+* Sat Apr 24 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-0.beta2.2
+- Make httpd reload its config after install, upgrade and erase.
+- Fix a couple of paths for beta2.
+
+* Sat Apr 17 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-0.beta2.1
+- Update to 0.6.5 beta 2.
+
+* Mon Apr 5 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-0.beta1.3
+- The link checker is now available separately from CPAN.
+
+* Mon Dec 1 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-0.beta1.2
+- Cleanups.
+
+* Fri Aug 29 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.5-0.beta1.1
+- Update to 0.6.5 beta 1.
+
+* Sat Aug 23 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.2-5w3c
+- Requires openjade >= 0:1.3.2 (Red Hat packages OpenSP 1.5 there).
+
+* Wed Jul 23 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.2-4w3c
+- Include checklink manual page.
+- Some spec file cleanups.
+
+* Thu Jul 17 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.2-3w3c
+- Requires perl(Net::IP).
+
+* Fri Jul 4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.2-2w3c
+- Use aliasing instead of hardcoded docroot in httpd configuration.
+
+* Mon Apr 21 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:0.6.2-1w3c
+- Update to 0.6.2.
+- Rename to w3c-markup-validator.
+- Install our catalogs if %%{_bindir}/install-catalog is available.
+- Add Epoch: 0.
+
+* Sun Dec 1 2002 Ville Skyttä <ville.skytta at iki.fi> - 0.6.1-1w3c
+- Update to 0.6.1.
+
+* Fri Nov 29 2002 Ville Skyttä <ville.skytta at iki.fi> - 0.6.0-1w3c
+- First release.
More information about the Erp5-report
mailing list