update
This commit is contained in:
parent
70489d9f9c
commit
80649fbe3b
26
jtidy.jtidy.script
Normal file
26
jtidy.jtidy.script
Normal file
@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# JTidy script
|
||||
# JPackage Project <http://www.jpackage.org/>
|
||||
# $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 "$@"
|
||||
56
jtidy.spec
Normal file
56
jtidy.spec
Normal file
@ -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 <zhujunhao5@huawei.com> 2:1.0-0.29.20100930svn1125
|
||||
- Package init
|
||||
BIN
jtidy.tar.xz
Normal file
BIN
jtidy.tar.xz
Normal file
Binary file not shown.
4
jtidy.yaml
Normal file
4
jtidy.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: svn
|
||||
src_repo: https://svn.code.sf.net/p/jtidy/code/trunk
|
||||
tag_prefix: "^v"
|
||||
separator: ""
|
||||
Loading…
x
Reference in New Issue
Block a user