diff --git a/jtidy.jtidy.script b/jtidy.jtidy.script new file mode 100644 index 0000000000000000000000000000000000000000..421d5bee141569df4ee7f9b8044c790edb7f87dd --- /dev/null +++ b/jtidy.jtidy.script @@ -0,0 +1,26 @@ +#!/bin/sh +# +# JTidy script +# JPackage Project +# $Id: jtidy.jtidy.script,v 1.1 2002/08/30 20:27:06 scop Exp $ + +# Source functions library +if [ -f /usr/share/java-utils/java-functions ] ; then + . /usr/share/java-utils/java-functions +else + echo "Can't find functions library, aborting" + exit 1 +fi + +# Configuration +MAIN_CLASS=org.w3c.tidy.Tidy +BASE_JARS="jtidy" + +# Set parameters +set_jvm +set_classpath $BASE_JARS +set_flags $BASE_FLAGS +set_options $BASE_OPTIONS + +# Let's start +run "$@" diff --git a/jtidy.spec b/jtidy.spec new file mode 100644 index 0000000000000000000000000000000000000000..983826373e108f72f117b51ba087996b329defbc --- /dev/null +++ b/jtidy.spec @@ -0,0 +1,56 @@ +Name: jtidy +Version: 1.0 +Release: 0.29.20100930svn1125 +Epoch: 2 +Summary: HTML syntax checker and pretty printer +License: zlib +URL: http://jtidy.sourceforge.net/ +Source0: jtidy.tar.xz +Source1: jtidy.jtidy.script +BuildArch: noarch +BuildRequires: javapackages-local ant mvn(xerces:dom3-xml-apis) +Requires: javapackages-tools + +%description +JTidy is the Java port for HTML Tidy, which is an HTML syntax checker and a nice printer. +JTidy can be used as a tool to clean up misformatted HTML. +In addition, JTidy provides a DOM interface to the documents being processed, +effectively enabling you to use JTidy as a DOM parser for real HTML. + +%package help +Summary: Documentation for jtidy package +Provides: jtidy-javadoc = 2:%{version}-%{release} +Obsoletes: jtidy-javadoc < 2:%{version}-%{release} + +%description help +Documentation for jtidy package. + +%prep +%autosetup -n jtidy + +%build +ant -Dant.build.javac.source=1.4 + +%install +%mvn_file : jtidy +%mvn_alias : net.sf.jtidy:jtidy +%mvn_artifact pom.xml target/jtidy-*.jar +%mvn_install -J target/javadoc + +install -d %{buildroot}%{_bindir} +cp -ap %{SOURCE1} %{buildroot}%{_bindir}/jtidy + +install -d %{buildroot}%{_sysconfdir}/ant.d +echo jtidy > %{buildroot}%{_sysconfdir}/ant.d/jtidy + + +%files -f .mfiles +%license LICENSE.txt +%attr(755, root, root) %{_bindir}/* +%config(noreplace) %{_sysconfdir}/ant.d/jtidy + +%files help -f .mfiles-javadoc + +%changelog +* Thu Dec 26 2019 zhujunhao 2:1.0-0.29.20100930svn1125 +- Package init diff --git a/jtidy.tar.xz b/jtidy.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..e58b02ca310b401f7b8ab30bc7b4fb0a21c76750 Binary files /dev/null and b/jtidy.tar.xz differ diff --git a/jtidy.yaml b/jtidy.yaml new file mode 100644 index 0000000000000000000000000000000000000000..bc237bde0d3486efd2390d0b12352dcfc1d57346 --- /dev/null +++ b/jtidy.yaml @@ -0,0 +1,4 @@ +version_control: svn +src_repo: https://svn.code.sf.net/p/jtidy/code/trunk +tag_prefix: "^v" +separator: ""