Sync from SUSE:SLFO:Main jtidy revision eb11fa7edf2ebe6504f7a60b4f8df8df
This commit is contained in:
commit
1afc895fb3
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
BIN
jtidy-1.0.4.tar.gz
(Stored with Git LFS)
Normal file
BIN
jtidy-1.0.4.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
111
jtidy-build.xml
Normal file
111
jtidy-build.xml
Normal file
@ -0,0 +1,111 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="jtidy" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property name="build.finalName" value="jtidy-1.0.4"/>
|
||||
<property name="build.dir" value="target"/>
|
||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||
<property name="build.srcDir" value="src/main/java"/>
|
||||
<property name="build.resourceDir" value="src/main/resources"/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Defining classpaths -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<path id="build.classpath">
|
||||
<fileset dir="lib">
|
||||
<include name="**/*"/>
|
||||
</fileset>
|
||||
</path>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
encoding="UTF8"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
target="1.8"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="1.8">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</src>
|
||||
<classpath refid="build.classpath"/>
|
||||
</javac>
|
||||
<copy todir="${build.outputDir}">
|
||||
<fileset dir="${build.resourceDir}"/>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${build.srcDir}"
|
||||
packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
source="1.8"
|
||||
encoding="UTF8"
|
||||
linksource="false"
|
||||
breakiterator="false"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html">
|
||||
<manifest>
|
||||
<attribute name="Main-Class"
|
||||
value="org.w3c.tidy.Tidy"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
</project>
|
1
jtidy-rpmlintrc
Normal file
1
jtidy-rpmlintrc
Normal file
@ -0,0 +1 @@
|
||||
addFilter("invalid-license")
|
70
jtidy.changes
Normal file
70
jtidy.changes
Normal file
@ -0,0 +1,70 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 19 12:39:44 UTC 2024 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- The license is actually HTMLTIDY
|
||||
- Add rpmlintrc to avoid errors with that license tag on SLE-15-SP2
|
||||
- Clean the spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 24 19:53:59 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Add epoch to make upgrades from 8.0 to 1.0.x easier
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 24 14:15:22 UTC 2023 - Gus Kenion <gkenion@suse.com>
|
||||
|
||||
- Update upstream from abandoned sourceforge to actively maintained
|
||||
github
|
||||
- bsc#1212404 (CVE-2023-34623): Prevent crash when parsing
|
||||
documents with excessive nesting. (community fix, part of v1.0.4)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Mar 20 12:39:53 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build with java source and target levels 8
|
||||
- Rewamp and simplify the build system
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 09:36:38 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Fix javadoc build
|
||||
- Package maven artifact
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 8 08:34:01 UTC 2017 - fstrba@suse.com
|
||||
|
||||
- Modified file:
|
||||
* maven-build.xml
|
||||
+ Specify java source and target level 1.6 in order to allow
|
||||
building with jdk9
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 5 19:41:32 UTC 2013 - dvaleev@suse.com
|
||||
|
||||
- increase stack size for ppc64le
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 11:06:07 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Move from jpackage-utils to javapackage-tools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 12 17:02:32 UTC 2012 - dvaleev@suse.com
|
||||
|
||||
- increase stack size for ppc64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 15 13:39:06 UTC 2012 - mvyskocil@suse.cz
|
||||
|
||||
- disable javadoc (workaround for jdk7 build)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 20 11:31:39 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
- 'fixed bnc#501764: removed clover.license from source tarball'
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 7 11:17:29 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
- Initial packaging of 8.0 in SUSE (from jpp 5.0)
|
||||
|
115
jtidy.spec
Normal file
115
jtidy.spec
Normal file
@ -0,0 +1,115 @@
|
||||
#
|
||||
# spec file for package jtidy
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: jtidy
|
||||
Version: 1.0.4
|
||||
Release: 0
|
||||
Summary: HTML syntax checker and pretty printer
|
||||
License: HTMLTIDY
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://github.com/jtidy/jtidy
|
||||
Source0: https://github.com/jtidy/jtidy/archive/refs/tags/jtidy-1.0.4.tar.gz
|
||||
Source1: %{name}-build.xml
|
||||
Source100: %{name}-rpmlintrc
|
||||
BuildRequires: ant >= 1.6
|
||||
BuildRequires: ant-junit
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: javapackages-local >= 6
|
||||
BuildRequires: xerces-j2
|
||||
BuildRequires: xml-apis
|
||||
Requires: xerces-j2
|
||||
Requires: xml-apis
|
||||
BuildArch: noarch
|
||||
|
||||
%description
|
||||
JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty
|
||||
printer. Like its non-Java cousin, JTidy can be used as a tool for
|
||||
cleaning up malformed and faulty HTML. In addition, JTidy provides a
|
||||
DOM parser for real-world HTML.
|
||||
|
||||
%package javadoc
|
||||
Summary: HTML syntax checker and pretty printer
|
||||
Group: Development/Libraries/Java
|
||||
|
||||
%description javadoc
|
||||
JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty
|
||||
printer. Like its non-Java cousin, JTidy can be used as a tool for
|
||||
cleaning up malformed and faulty HTML. In addition, JTidy provides a
|
||||
DOM parser for real-world HTML.
|
||||
|
||||
%package scripts
|
||||
Summary: HTML syntax checker and pretty printer
|
||||
Group: Development/Libraries/Java
|
||||
Requires: %{name} = %{version}
|
||||
Requires: javapackages-tools
|
||||
|
||||
%description scripts
|
||||
JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty
|
||||
printer. Like its non-Java cousin, JTidy can be used as a tool for
|
||||
cleaning up malformed and faulty HTML. In addition, JTidy provides a
|
||||
DOM parser for real-world HTML.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
cp -p %{SOURCE1} build.xml
|
||||
|
||||
%build
|
||||
mkdir -p lib
|
||||
build-jar-repository -s lib xerces-j2 xml-apis
|
||||
%{ant} \
|
||||
package javadoc
|
||||
|
||||
%install
|
||||
|
||||
# jar
|
||||
install -d -m 0755 %{buildroot}%{_javadir}
|
||||
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
|
||||
# pom
|
||||
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
||||
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar -a net.sf.jtidy:%{name}
|
||||
|
||||
# javadoc
|
||||
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -aL target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
||||
|
||||
# shell script
|
||||
%jpackage_script org.w3c.tidy.Tidy "" "" %{name}:xerces-j2:xml-apis %{name} true
|
||||
|
||||
# ant.d
|
||||
install -d -m 0755 %{buildroot}%{_sysconfdir}/ant.d
|
||||
cat > %{buildroot}%{_sysconfdir}/ant.d/%{name} << EOF
|
||||
jtidy xerces-j2 xml-apis
|
||||
EOF
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE.txt
|
||||
%{_javadir}/%{name}.jar
|
||||
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
|
||||
|
||||
%files javadoc
|
||||
%defattr(0644,root,root,0755)
|
||||
%doc %{_javadocdir}/%{name}
|
||||
|
||||
%files scripts
|
||||
%defattr(0755,root,root,0755)
|
||||
%{_bindir}/*
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user