Package init
This commit is contained in:
parent
a1b61deddb
commit
3f2cb28de8
45
0001-Crosslink-javadoc.patch
Normal file
45
0001-Crosslink-javadoc.patch
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
From 085262f5d43cc9541480392910f29091ef678217 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Simacek <msimacek@redhat.com>
|
||||||
|
Date: Tue, 14 Jul 2015 11:20:41 +0200
|
||||||
|
Subject: [PATCH 1/3] Crosslink javadoc
|
||||||
|
|
||||||
|
---
|
||||||
|
build.xml | 15 ++++++++++++---
|
||||||
|
1 file changed, 12 insertions(+), 3 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build.xml b/build.xml
|
||||||
|
index 8cbab8e..d36f42b 100644
|
||||||
|
--- a/build.xml
|
||||||
|
+++ b/build.xml
|
||||||
|
@@ -41,7 +41,12 @@
|
||||||
|
|
||||||
|
<property name='version.java.dir' value='${build.src.dir}/org/cyberneko/html'/>
|
||||||
|
<property name='version.java' value='${version.java.dir}/Version.java'/>
|
||||||
|
-
|
||||||
|
+
|
||||||
|
+ <property name='bcel.javadoc' value='http://jakarta.apache.org/bcel/apidocs/'/>
|
||||||
|
+ <property name='j2se.javadoc' value='http://java.sun.com/j2se/1.4.2/docs/api/'/>
|
||||||
|
+ <property name='xni.javadoc' value='http://xml.apache.org/xerces2-j/javadocs/xni/'/>
|
||||||
|
+ <property name='xerces.javadoc' value='http://xml.apache.org/xerces2-j/javadocs/xerces2/'/>
|
||||||
|
+
|
||||||
|
<!-- defined maven snapshots and staging repository id and url -->
|
||||||
|
<property name="maven-snapshots-repository-id" value="sonatype-nexus-snapshots" />
|
||||||
|
<property name="maven-snapshots-repository-url" value="https://oss.sonatype.org/content/repositories/snapshots/" />
|
||||||
|
@@ -178,8 +183,12 @@
|
||||||
|
author='true' version='true' use='true'
|
||||||
|
windowtitle="${Name} Implementation"
|
||||||
|
doctitle="${Name}" encoding="ISO-8859-1"
|
||||||
|
- bottom="${copyright}"
|
||||||
|
- />
|
||||||
|
+ bottom="${copyright}">
|
||||||
|
+ <link href="${bcel.javadoc}"/>
|
||||||
|
+ <link href="${j2se.javadoc}"/>
|
||||||
|
+ <link href="${xni.javadoc}"/>
|
||||||
|
+ <link href="${xerces.javadoc}"/>
|
||||||
|
+ </javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name='doc-init'>
|
||||||
|
--
|
||||||
|
2.1.0
|
||||||
|
|
||||||
111
0002-Jar-paths.patch
Normal file
111
0002-Jar-paths.patch
Normal file
@ -0,0 +1,111 @@
|
|||||||
|
From 03b255b50250861a630cd72cb3fae30c7f0f5987 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Simacek <msimacek@redhat.com>
|
||||||
|
Date: Tue, 14 Jul 2015 11:20:59 +0200
|
||||||
|
Subject: [PATCH 2/3] Jar paths
|
||||||
|
|
||||||
|
---
|
||||||
|
build.xml | 20 +++++++++++---------
|
||||||
|
1 file changed, 11 insertions(+), 9 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/build.xml b/build.xml
|
||||||
|
index d36f42b..1f00059 100644
|
||||||
|
--- a/build.xml
|
||||||
|
+++ b/build.xml
|
||||||
|
@@ -54,7 +54,7 @@
|
||||||
|
<property name="maven-staging-repository-url" value="https://oss.sonatype.org/service/local/staging/deploy/maven2/" />
|
||||||
|
|
||||||
|
<!-- DEPENDENCIES -->
|
||||||
|
- <available property='bcel.available' file='${lib.dir}/bcel-5.2.jar' />
|
||||||
|
+ <available property='bcel.available' file='${lib.dir}/bcel.jar' />
|
||||||
|
|
||||||
|
<property name="xerces.version" value="2.9.1"/>
|
||||||
|
|
||||||
|
@@ -83,7 +83,7 @@
|
||||||
|
source='${compile.source}' target='${compile.target}'
|
||||||
|
includeAntRuntime='false'>
|
||||||
|
<classpath>
|
||||||
|
- <fileset dir='${lib.dir}/xerces-@{xercesVersion}' includes='*.jar' />
|
||||||
|
+ <fileset dir='${lib.dir}' includes='xerces-j2.jar' />
|
||||||
|
</classpath>
|
||||||
|
<src path='${src.dir}' />
|
||||||
|
<src path='${build.src.dir}' />
|
||||||
|
@@ -94,7 +94,7 @@
|
||||||
|
source='${compile.source}' target='${compile.target}'
|
||||||
|
includeAntRuntime='false'>
|
||||||
|
<classpath>
|
||||||
|
- <fileset dir='${lib.dir}/xerces-@{xercesVersion}' includes='*.jar' />
|
||||||
|
+ <fileset dir='${lib.dir}' includes='xerces-j2.jar' />
|
||||||
|
</classpath>
|
||||||
|
<src path='${src.dir}' />
|
||||||
|
<src path='${build.src.dir}' />
|
||||||
|
@@ -108,12 +108,14 @@
|
||||||
|
unless="compile.skip">
|
||||||
|
<mkdir dir="${build.classes.dir}"/>
|
||||||
|
|
||||||
|
+ <!--
|
||||||
|
<compileWith xercesVersion="2.0.2" bridge="2_0"/>
|
||||||
|
<compileWith xercesVersion="2.1.0" bridge="2_1"/>
|
||||||
|
<compileWith xercesVersion="2.2.1" bridge="2_2"/>
|
||||||
|
<compileWith xercesVersion="2.3.0" bridge="2_3"/>
|
||||||
|
<compileWith xercesVersion="2.8.1" bridge="2_3"/>
|
||||||
|
<compileWith xercesVersion="2.9.1" bridge="2_3"/>
|
||||||
|
+ -->
|
||||||
|
<compileWith xercesVersion="2.10.0" bridge="2_3"/>
|
||||||
|
|
||||||
|
<copy todir="${build.classes.dir}">
|
||||||
|
@@ -236,7 +238,7 @@ public class Version {
|
||||||
|
<java classname='org.apache.tools.ant.Main'>
|
||||||
|
<classpath>
|
||||||
|
<pathelement path='${java.class.path}' />
|
||||||
|
- <pathelement location='${lib.dir}/bcel-5.2.jar' />
|
||||||
|
+ <pathelement location='${lib.dir}/bcel.jar' />
|
||||||
|
</classpath>
|
||||||
|
<arg value='x-minimal' />
|
||||||
|
</java>
|
||||||
|
@@ -277,7 +279,7 @@ public class Version {
|
||||||
|
source='${compile.source}' target='${compile.target}'
|
||||||
|
includeAntRuntime='true'>
|
||||||
|
<classpath>
|
||||||
|
- <fileset dir='${lib.dir}' includes='xml-apis.jar,xerces*.jar, junit*.jar' />
|
||||||
|
+ <fileset dir='${lib.dir}' includes='xml-commons-apis.jar,xerces-j2.jar, junit.jar' />
|
||||||
|
<pathelement location='${build.classes.dir}' />
|
||||||
|
</classpath>
|
||||||
|
<src path='${src.test.dir}' />
|
||||||
|
@@ -298,8 +300,8 @@ public class Version {
|
||||||
|
<classpath>
|
||||||
|
<pathelement path='${build.test-classes.dir}'/>
|
||||||
|
<pathelement location='${build.classes.dir}' />
|
||||||
|
- <fileset dir='${lib.dir}' includes='junit*.jar' />
|
||||||
|
- <fileset dir='${lib.dir}/xerces-@{xercesVersion}' includes='*.jar' />
|
||||||
|
+ <fileset dir='${lib.dir}' includes='junit.jar' />
|
||||||
|
+ <fileset dir='${lib.dir}' includes='xerces-j2.jar' />
|
||||||
|
</classpath>
|
||||||
|
|
||||||
|
<formatter type="xml"/>
|
||||||
|
@@ -318,13 +320,13 @@ public class Version {
|
||||||
|
<mkdir dir="${build.dir}/junit"/>
|
||||||
|
|
||||||
|
<testWith xercesVersion="2.11.0"/>
|
||||||
|
+ <!--
|
||||||
|
<testWith xercesVersion="2.10.0"/>
|
||||||
|
<testWith xercesVersion="2.9.1"/>
|
||||||
|
<testWith xercesVersion="2.8.1"/>
|
||||||
|
<testWith xercesVersion="2.3.0"/>
|
||||||
|
<testWith xercesVersion="2.2.1"/>
|
||||||
|
<testWith xercesVersion="minimal"/>
|
||||||
|
- <!--
|
||||||
|
<testWith xercesVersion="2.1.0"/>
|
||||||
|
<testWith xercesVersion="2.0.2"/>
|
||||||
|
-->
|
||||||
|
@@ -397,7 +399,7 @@ public class Version {
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="-defineMavenAntTasks">
|
||||||
|
- <path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks-2.1.3.jar" />
|
||||||
|
+ <path id="maven-ant-tasks.classpath" path="lib/maven-ant-tasks.jar" />
|
||||||
|
<typedef resource="org/apache/maven/artifact/ant/antlib.xml" uri="urn:maven-artifact-ant"
|
||||||
|
classpathref="maven-ant-tasks.classpath" />
|
||||||
|
<artifact:pom id="maven.project" file="pom.xml" />
|
||||||
|
--
|
||||||
|
2.1.0
|
||||||
|
|
||||||
27
0003-Add-OSGi-attributes.patch
Normal file
27
0003-Add-OSGi-attributes.patch
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
From 1cbc54dc98b762c4ba3b1daffc2cf5a1116732ef Mon Sep 17 00:00:00 2001
|
||||||
|
From: Michael Simacek <msimacek@redhat.com>
|
||||||
|
Date: Tue, 14 Jul 2015 11:21:21 +0200
|
||||||
|
Subject: [PATCH 3/3] Add OSGi attributes
|
||||||
|
|
||||||
|
---
|
||||||
|
build.xml | 4 ++++
|
||||||
|
1 file changed, 4 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/build.xml b/build.xml
|
||||||
|
index 1f00059..194b0bf 100644
|
||||||
|
--- a/build.xml
|
||||||
|
+++ b/build.xml
|
||||||
|
@@ -129,6 +129,10 @@
|
||||||
|
<jar jarfile='${jar.file}'>
|
||||||
|
<manifest>
|
||||||
|
<attribute name="Built-By" value="${author}"/>
|
||||||
|
+ <attribute name="Bundle-SymbolicName" value="${package}" />
|
||||||
|
+ <attribute name="Bundle-Version" value="${version}" />
|
||||||
|
+ <attribute name="Export-Package" value="org.cyberneko.html,org.cyberneko.html.filters,org.cyberneko.html.parsers,org.cyberneko.html.xercesbridge" />
|
||||||
|
+ <attribute name="Import-Package" value="org.apache.xerces.util,org.apache.xerces.xni,org.apache.xerces.xni.parser,org.apache.xerces.impl" />
|
||||||
|
<section name="org/cyberneko/html/">
|
||||||
|
<attribute name="Specification-Title" value="Hyper-Text Markup Language (HTML)" />
|
||||||
|
<attribute name="Specification-Version" value="4.01" />
|
||||||
|
--
|
||||||
|
2.1.0
|
||||||
|
|
||||||
36
README.en.md
36
README.en.md
@ -1,36 +0,0 @@
|
|||||||
# nekohtml
|
|
||||||
|
|
||||||
#### Description
|
|
||||||
{**When you're done, you can delete the content in this README and update the file with details for others getting started with your repository**}
|
|
||||||
|
|
||||||
#### Software Architecture
|
|
||||||
Software architecture description
|
|
||||||
|
|
||||||
#### Installation
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Instructions
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### Contribution
|
|
||||||
|
|
||||||
1. Fork the repository
|
|
||||||
2. Create Feat_xxx branch
|
|
||||||
3. Commit your code
|
|
||||||
4. Create Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### Gitee Feature
|
|
||||||
|
|
||||||
1. You can use Readme\_XXX.md to support different languages, such as Readme\_en.md, Readme\_zh.md
|
|
||||||
2. Gitee blog [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. Explore open source project [https://gitee.com/explore](https://gitee.com/explore)
|
|
||||||
4. The most valuable open source project [GVP](https://gitee.com/gvp)
|
|
||||||
5. The manual of Gitee [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. The most popular members [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
39
README.md
39
README.md
@ -1,39 +0,0 @@
|
|||||||
# nekohtml
|
|
||||||
|
|
||||||
#### 介绍
|
|
||||||
{**以下是码云平台说明,您可以替换此简介**
|
|
||||||
码云是 OSCHINA 推出的基于 Git 的代码托管平台(同时支持 SVN)。专为开发者提供稳定、高效、安全的云端软件开发协作平台
|
|
||||||
无论是个人、团队、或是企业,都能够用码云实现代码托管、项目管理、协作开发。企业项目请看 [https://gitee.com/enterprises](https://gitee.com/enterprises)}
|
|
||||||
|
|
||||||
#### 软件架构
|
|
||||||
软件架构说明
|
|
||||||
|
|
||||||
|
|
||||||
#### 安装教程
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 使用说明
|
|
||||||
|
|
||||||
1. xxxx
|
|
||||||
2. xxxx
|
|
||||||
3. xxxx
|
|
||||||
|
|
||||||
#### 参与贡献
|
|
||||||
|
|
||||||
1. Fork 本仓库
|
|
||||||
2. 新建 Feat_xxx 分支
|
|
||||||
3. 提交代码
|
|
||||||
4. 新建 Pull Request
|
|
||||||
|
|
||||||
|
|
||||||
#### 码云特技
|
|
||||||
|
|
||||||
1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md
|
|
||||||
2. 码云官方博客 [blog.gitee.com](https://blog.gitee.com)
|
|
||||||
3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解码云上的优秀开源项目
|
|
||||||
4. [GVP](https://gitee.com/gvp) 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
|
|
||||||
5. 码云官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help)
|
|
||||||
6. 码云封面人物是一档用来展示码云会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)
|
|
||||||
45
nekohtml-1.9.22.pom
Normal file
45
nekohtml-1.9.22.pom
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
<project>
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>net.sourceforge.nekohtml</groupId>
|
||||||
|
<artifactId>nekohtml</artifactId>
|
||||||
|
<name>Neko HTML</name>
|
||||||
|
<description>An HTML parser and tag balancer.</description>
|
||||||
|
<version>1.9.22</version>
|
||||||
|
<url>http://nekohtml.sourceforge.net/</url>
|
||||||
|
<licenses>
|
||||||
|
<license>
|
||||||
|
<name>The Apache Software License, Version 2.0</name>
|
||||||
|
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||||
|
<distribution>repo</distribution>
|
||||||
|
</license>
|
||||||
|
</licenses>
|
||||||
|
<scm>
|
||||||
|
<url>http://nekohtml.svn.sourceforge.net/viewvc/nekohtml/</url>
|
||||||
|
</scm>
|
||||||
|
<dependencies>
|
||||||
|
<dependency>
|
||||||
|
<groupId>xerces</groupId>
|
||||||
|
<artifactId>xercesImpl</artifactId>
|
||||||
|
<version>2.10.0</version>
|
||||||
|
</dependency>
|
||||||
|
</dependencies>
|
||||||
|
<developers>
|
||||||
|
<developer>
|
||||||
|
<name>Andy Clark</name>
|
||||||
|
</developer>
|
||||||
|
<developer>
|
||||||
|
<name>Marc Guillemot</name>
|
||||||
|
<id>mguillem</id>
|
||||||
|
<email>mguillem@users.sourceforge.net</email>
|
||||||
|
<url>http://mguillem.wordpress.com/</url>
|
||||||
|
<timezone>+1</timezone>
|
||||||
|
</developer>
|
||||||
|
</developers>
|
||||||
|
<distributionManagement>
|
||||||
|
<repository>
|
||||||
|
<id>nexus-releases</id>
|
||||||
|
<name>Nexus Release Repository</name>
|
||||||
|
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
|
||||||
|
</repository>
|
||||||
|
</distributionManagement>
|
||||||
|
</project>
|
||||||
BIN
nekohtml-1.9.22.tar.gz
Normal file
BIN
nekohtml-1.9.22.tar.gz
Normal file
Binary file not shown.
66
nekohtml.spec
Normal file
66
nekohtml.spec
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
Name: nekohtml
|
||||||
|
Version: 1.9.22
|
||||||
|
Release: 8
|
||||||
|
Summary: HTML scanner and tag balancer
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: http://nekohtml.sourceforge.net/
|
||||||
|
Source0: nekohtml-%{version}.tar.gz
|
||||||
|
Source1: http://central.maven.org/maven2/net/sourceforge/nekohtml/nekohtml/%{version}/nekohtml-%{version}.pom
|
||||||
|
Patch0: 0001-Crosslink-javadoc.patch
|
||||||
|
Patch1: 0002-Jar-paths.patch
|
||||||
|
Patch2: 0003-Add-OSGi-attributes.patch
|
||||||
|
Requires: bcel xerces-j2 >= 0:2.7.1 xml-commons-apis
|
||||||
|
BuildRequires: javapackages-local ant ant-junit bcel xerces-j2 >= 0:2.7.1 xerces-j2-javadoc xml-commons-apis
|
||||||
|
BuildArch: noarch
|
||||||
|
Obsoletes: nekohtml-javadoc < %{version}-%{release}
|
||||||
|
Obsoletes: nekohtml-demo < %{version}-%{release}
|
||||||
|
Provides: nekohtml-javadoc = %{version}-%{release}
|
||||||
|
Provides: nekohtml-demo = %{version}-%{release}
|
||||||
|
|
||||||
|
%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.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1
|
||||||
|
find -name "*.jar" -delete
|
||||||
|
rm data/meta/test-meta-encoding3.html
|
||||||
|
%mvn_alias net.sourceforge.nekohtml:nekohtml nekohtml:nekohtml
|
||||||
|
%mvn_package net.sourceforge.nekohtml:nekohtml-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=nekohtml.jar \
|
||||||
|
-Djar.xni.file=nekohtml-xni.jar \
|
||||||
|
-Djar.samples.file=nekohtml-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 doc
|
||||||
|
%mvn_artifact %{SOURCE1} nekohtml.jar
|
||||||
|
%mvn_artifact net.sourceforge.nekohtml:nekohtml-xni:%{version} nekohtml-xni.jar
|
||||||
|
%mvn_artifact net.sourceforge.nekohtml:nekohtml-samples:%{version} nekohtml-samples.jar
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install -J build/doc/javadoc
|
||||||
|
%jpackage_script org.cyberneko.html.filters.Writer "" "" "nekohtml:xerces-j2" nekohtml-filter true
|
||||||
|
|
||||||
|
%files
|
||||||
|
%attr(0644,root,root) %{_datadir}/maven-metadata/nekohtml.xml
|
||||||
|
%attr(0644,root,root) %{_datadir}/maven-poms/nekohtml.pom
|
||||||
|
%attr(0644,root,root) %{_datadir}/java/nekohtml.jar
|
||||||
|
%attr(0644,root,root) %{_datadir}/java/nekohtml-xni.jar
|
||||||
|
%attr(0644,root,root) %{_datadir}/maven-metadata/nekohtml-demo.xml
|
||||||
|
%attr(0644,root,root) %{_datadir}/java/nekohtml-samples.jar
|
||||||
|
%doc LICENSE.txt README.txt doc/*.html
|
||||||
|
%{_bindir}/nekohtml-filter
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Dec 7 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.22-8
|
||||||
|
- Package init
|
||||||
Loading…
x
Reference in New Issue
Block a user