commit
cc5e70c4cf
BIN
tagsoup-1.2.1-src.zip
Normal file
BIN
tagsoup-1.2.1-src.zip
Normal file
Binary file not shown.
25
tagsoup-1.2.1.pom
Normal file
25
tagsoup-1.2.1.pom
Normal file
@ -0,0 +1,25 @@
|
||||
<project>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>org.ccil.cowan.tagsoup</groupId>
|
||||
<artifactId>tagsoup</artifactId>
|
||||
<name>TagSoup</name>
|
||||
<version>1.2.1</version>
|
||||
<packaging>jar</packaging>
|
||||
<description>TagSoup is a SAX-compliant parser written in Java that, instead of parsing well-formed or valid XML, parses HTML as it is found in the wild: poor, nasty and brutish, though quite often far from short. TagSoup is designed for people who have to process this stuff using some semblance of a rational application design. By providing a SAX interface, it allows standard XML tools to be applied to even the worst HTML. TagSoup also includes a command-line processor that reads HTML files and can generate either clean HTML or well-formed XML that is a close approximation to XHTML.</description>
|
||||
<url>http://home.ccil.org/~cowan/XML/tagsoup/</url>
|
||||
<licenses>
|
||||
<license>
|
||||
<name>Apache License 2.0</name>
|
||||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
|
||||
<distribution>repo</distribution>
|
||||
</license>
|
||||
</licenses>
|
||||
<scm>
|
||||
<url>http://home.ccil.org/~cowan/tagsoup/tagsoup-1.2.1-src.zip</url>
|
||||
</scm>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>John Cowan</name>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
63
tagsoup.spec
Normal file
63
tagsoup.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Name: tagsoup
|
||||
Version: 1.2.1
|
||||
Release: 18
|
||||
Summary: A SAX-compliant HTML parser written in Java
|
||||
License: Apache-2.0
|
||||
URL: https://vrici.lojban.org/~cowan/XML/tagsoup
|
||||
Source0: http://vrici.lojban.org/~cowan/XML/tagsoup/%{name}-%{version}-src.zip
|
||||
Source1: https://repo1.maven.org/maven2/org/ccil/cowan/tagsoup/tagsoup/1.2.1/tagsoup-1.2.1.pom
|
||||
|
||||
BuildArch: noarch
|
||||
BuildRequires: javapackages-local ant-apache-xalan2 ant xalan-j2
|
||||
Requires: jpackage-utils >= 0:1.6
|
||||
|
||||
Provides: %{name}-javadoc = %{version}-%{release}
|
||||
Obsoletes: %{name}-javadoc < %{version}-%{release}
|
||||
|
||||
%description
|
||||
TagSoup is designed as a parser, not a whole application; it isn't
|
||||
intended to permanently clean up bad HTML, as HTML Tidy does, only
|
||||
to parse it on the fly. Therefore, it does not convert presentation
|
||||
HTML to CSS or anything similar. It does guarantee well-structured
|
||||
results: tags will wind up properly nested, default attributes
|
||||
will appear appropriately, and so on.
|
||||
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
find -name '*.class' | xargs rm -f
|
||||
find -name '*.jar' | xargs rm -f
|
||||
|
||||
%build
|
||||
export CLASSPATH=$(build-classpath xalan-j2-serializer xalan-j2)
|
||||
ant -Dtagsoup.version=%{version} -Dj2se.apiurl=%{_javadocdir}/java \
|
||||
dist docs-api
|
||||
|
||||
%install
|
||||
%mvn_file : tagsoup
|
||||
%mvn_artifact %{SOURCE1} dist/lib/%{name}-%{version}.jar
|
||||
|
||||
%mvn_install -J docs/api
|
||||
|
||||
install -Dd -m 0755 %{buildroot}%{_mandir}/man1
|
||||
install -m 0644 tagsoup.1 %{buildroot}%{_mandir}/man1
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%doc
|
||||
%license LICENSE
|
||||
%{_datadir}/java/*
|
||||
%{_datadir}/javadoc/*
|
||||
%{_datadir}/maven-poms/*
|
||||
%{_datadir}/maven-metadata/*
|
||||
|
||||
%files help
|
||||
%defattr(-,root,root)
|
||||
%doc
|
||||
%{_mandir}/man1/*
|
||||
|
||||
%changelog
|
||||
* Mon Feb 17 2020 lingsheng <lingsheng@huawei.com> - 1.2.1-18
|
||||
- Package init
|
||||
Loading…
x
Reference in New Issue
Block a user