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