# Copyright (c) 2000-2009, JPackage Project # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this list of conditions and the following disclaimer. # 2. Redistributions in binary form must reproduce the above copyright # notice, this list of conditions and the following disclaimer in the # documentation and/or other materials provided with the # distribution. # 3. Neither the name of the JPackage Project nor the names of its # contributors may be used to endorse or promote products derived # from this software without specific prior written permission. # # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS # "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT # LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR # A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT # OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, # SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT # LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, # DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY # THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. # Name: nekohtml Version: 1.9.22 Release: 9%{?dist} Epoch: 0 Summary: HTML scanner and tag balancer License: ASL 2.0 URL: http://nekohtml.sourceforge.net/ # No upstream tarball for this release # svn export svn://svn.code.sf.net/p/nekohtml/code/branches/nekohtml-1.9.22 nekohtml-1.9.22 # find nekohtml-1.9.22 -name '*.jar' -delete # tar cjf nekohtml-1.9.22.tar.bz2 nekohtml-1.9.22/ Source0: %{name}-%{version}.tar.bz2 Source2: nekohtml-component-info.xml Source3: http://central.maven.org/maven2/net/sourceforge/%{name}/%{name}/%{version}/%{name}-%{version}.pom Patch0: 0001-Crosslink-javadoc.patch Patch1: 0002-Jar-paths.patch # Add proper attributes to MANIFEST.MF file so bundle can be used by other OSGI bundles. Patch2: 0003-Add-OSGi-attributes.patch Requires: bcel Requires: xerces-j2 >= 0:2.7.1 Requires: xml-commons-apis # Explicit requires for javapackages-tools since nekohtml-filter script # uses /usr/share/java-utils/java-functions Requires: javapackages-tools BuildRequires: javapackages-local BuildRequires: ant BuildRequires: ant-junit BuildRequires: bcel BuildRequires: bcel-javadoc BuildRequires: xerces-j2 >= 0:2.7.1 BuildRequires: xerces-j2-javadoc BuildRequires: xml-commons-apis BuildArch: noarch %description NekoHTML is a simple HTML scanner and tag balancer that enables application programmers to parse HTML documents and access the information using standard XML interfaces. The parser can scan HTML files and "fix up" many common mistakes that human (and computer) authors make in writing HTML documents. NekoHTML adds missing parent elements; automatically closes elements with optional end tags; and can handle mismatched inline element tags. NekoHTML is written using the Xerces Native Interface (XNI) that is the foundation of the Xerces2 implementation. This enables you to use the NekoHTML parser with existing XNI tools without modification or rewriting code. %package javadoc Summary: Javadoc for %{name} %description javadoc Javadoc for %{name}. %package demo Summary: Demo for %{name} Requires: %{name} = %{epoch}:%{version}-%{release} %description demo Demonstrations and samples for %{name}. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 find -name "*.jar" -delete sed -i 's/\r$//g' *.txt doc/*.html # cannonization test fails on some whitespace, TODO investigate rm data/meta/test-meta-encoding3.html %mvn_alias net.sourceforge.%{name}:%{name} %{name}:%{name} %mvn_package net.sourceforge.%{name}:%{name}-samples demo %mvn_file ':{*}' @1 %build export CLASSPATH=$(build-classpath bcel xerces-j2 xml-commons-apis) %{ant} \ -Dbuild.sysclasspath=first \ -Dlib.dir=%{_javadir} \ -Djar.file=%{name}.jar \ -Djar.xni.file=%{name}-xni.jar \ -Djar.samples.file=%{name}-samples.jar \ -Dbcel.javadoc=%{_javadocdir}/bcel \ -Dj2se.javadoc=%{_javadocdir}/java \ -Dxni.javadoc=%{_javadocdir}/xerces-j2-xni \ -Dxerces.javadoc=%{_javadocdir}/xerces-j2-impl \ clean jar jar-xni test doc # test - disabled because it makes the build failing %mvn_artifact %{SOURCE3} %{name}.jar %mvn_artifact net.sourceforge.%{name}:%{name}-xni:%{version} %{name}-xni.jar %mvn_artifact net.sourceforge.%{name}:%{name}-samples:%{version} %{name}-samples.jar %install %mvn_install -J build/doc/javadoc # Scripts %jpackage_script org.cyberneko.html.filters.Writer "" "" "nekohtml:xerces-j2" nekohtml-filter true %files -f .mfiles %doc LICENSE.txt README.txt doc/*.html %{_bindir}/%{name}-filter %files javadoc -f .mfiles-javadoc %files demo -f .mfiles-demo %changelog * Fri Feb 01 2019 Fedora Release Engineering - 0:1.9.22-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Fri Aug 31 2018 Severin Gehwolf - 0:1.9.22-8 - Add explicit requirement on javapackages-tools since nekohtml-filter script uses java-functions. See RHBZ#1600426. * Fri Jul 13 2018 Fedora Release Engineering - 0:1.9.22-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Thu Feb 08 2018 Fedora Release Engineering - 0:1.9.22-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0:1.9.22-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Mar 30 2017 Michael Simacek - 0:1.9.22-4 - Add xml-commons-apis to classpath for tests * Fri Feb 10 2017 Fedora Release Engineering - 0:1.9.22-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0:1.9.22-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Tue Jul 14 2015 Michael Simacek - 0:1.9.22-1 - Update to upstream version 1.9.22 - Enable tests * Wed Jun 17 2015 Fedora Release Engineering - 0:1.9.21-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Tue Aug 19 2014 Mat Booth - 0:1.9.21-3 - Add "Import-Package" to OSGi metadata so that classes from xerces can be resolved. * Sat Jun 07 2014 Fedora Release Engineering - 0:1.9.21-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu Jun 5 2014 Mikolaj Izdebski - 0:1.9.21-1 - Update to upstream version 1.9.21 * Mon May 12 2014 Jeff Johnston - 0:1.9.20-4 - Add Export-Package statement to MANIFEST.MF. * Mon May 12 2014 Jeff Johnston - 0:1.9.20-3 - Change Bundle-Name to be Bundle-SymbolicName. * Mon May 12 2014 Jeff Johnston - 0:1.9.20-2 - Add OSGI Bundle-Name and Bundle-Version to generated manifest * Tue Mar 18 2014 Michael Simacek - 0:1.9.20-1 - Update to upstream version 1.9.20 - Use XMvn for installation - Require java-headless * Sat Aug 03 2013 Fedora Release Engineering - 0:1.9.14-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Thu Feb 14 2013 Fedora Release Engineering - 0:1.9.14-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Thu Nov 1 2012 Mikolaj Izdebski - 0:1.9.14-10 - Add addiotional depmap * Fri Jul 20 2012 Fedora Release Engineering - 0:1.9.14-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jun 12 2012 Bill Nottingham 0:1.9.14-7 - Update buildreqs to packages that currently exist * Fri Jan 13 2012 Fedora Release Engineering - 0:1.9.14-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Nov 1 2011 Alexander Kurtakov 0:1.9.14-6 - Adapt to current guidelines. * Mon Oct 10 2011 Andy Grimm - 0:1.9.14-5 - Add POM file (BZ #735521) * Tue Feb 08 2011 Fedora Release Engineering - 0:1.9.14-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Oct 6 2010 Alexander Kurtakov 0:1.9.14-3 - Drop gcj support and rpeolib. * Mon Jul 19 2010 James Laska 0:1.9.14-2 - Disable gcj_support - Updated nekohtml-jars.patch * Thu Jul 15 2010 James Laska 0:1.9.14-1 - Update to 1.9.14 * Wed May 13 2009 Martha Benitez 0:1.9.11-2.2 - Build without aot-compile * Thu Mar 19 2009 David Walluck 0:1.9.11-2.1 - BuildRequires: bcel - force use of xalan-j2 * Wed Feb 11 2009 David Walluck 0:1.9.11-2 - add repolib * Wed Feb 11 2009 David Walluck 0:1.9.11-1 - 1.9.6.1 * Mon Feb 12 2007 Jeff Johnston - 0:0.9.5-4jpp.1 - Update to address Fedora review comments. * Mon May 08 2006 Ralph Apel - 0:0.9.5-4jpp - First JPP-1.7 release * Tue Oct 11 2005 Ralph Apel - 0:0.9.5-3jpp - Patch to JAXP13 * Mon Aug 1 2005 Ville Skyttä - 0:0.9.5-2jpp - Fix unversioned xni jar symlink (#10). * Wed Jul 6 2005 Ville Skyttä - 0:0.9.5-1jpp - 0.9.5. * Wed Dec 15 2004 Ville Skyttä - 0:0.9.4-1jpp - Update to 0.9.4. * Tue Aug 24 2004 Fernando Nasser - 0:0.9.3-2jpp - Rebuild with Ant 1.6.2 * Sat Jul 3 2004 Ville Skyttä - 0:0.9.3-1jpp - Update to 0.9.3. - Add nekohtml-filter script. * Thu Apr 1 2004 Ville Skyttä - 0:0.9.2-1jpp - Update to 0.9.2. * Sat Dec 13 2003 Ville Skyttä - 0:0.8.3-1jpp - Update to 0.8.3. * Sat Nov 15 2003 Ville Skyttä - 0:0.8.2-1jpp - Update to 0.8.2. * Wed Oct 1 2003 Ville Skyttä - 0:0.8.1-1jpp - Update to 0.8.1. - Crosslink with local J2SE and XNI javadocs. - Save .spec in UTF-8. * Thu Jun 26 2003 Ville Skyttä - 0:0.7.7-1jpp - Update to 0.7.7. * Sun May 11 2003 David Walluck 0:0.7.6-1jpp - 0.7.6 - update for JPackage 1.5 * Sat Mar 29 2003 Ville Skyttä - 0.7.4-2jpp - Rebuilt for JPackage 1.5. * Tue Mar 4 2003 Ville Skyttä - 0.7.4-1jpp - Update to 0.7.4. * Mon Feb 24 2003 Ville Skyttä - 0.7.3-1jpp - Update to 0.7.3. - Built with IBM's 1.3.1 SR3 and xerces-j2 2.3.0. * Sat Jan 11 2003 Ville Skyttä - 0.7.2-1jpp - Update to 0.7.2. - Run unit tests when building. * Tue Dec 10 2002 Ville Skyttä - 0.7.1-1jpp - Update to 0.7.1. * Sun Nov 3 2002 Ville Skyttä - 0.6.8-1jpp - 0.6.8, first JPackage release.