2009-05-19 04:38:24 +02:00
|
|
|
#
|
2012-06-16 06:55:51 +02:00
|
|
|
# spec file for package jtidy
|
2009-05-19 04:38:24 +02:00
|
|
|
#
|
2024-02-19 13:39:52 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2009-05-19 04:38:24 +02:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-29 10:38:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2009-05-19 04:38:24 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: jtidy
|
2023-07-24 21:29:33 +02:00
|
|
|
Version: 1.0.4
|
2012-06-16 06:55:51 +02:00
|
|
|
Release: 0
|
2009-05-19 04:38:24 +02:00
|
|
|
Summary: HTML syntax checker and pretty printer
|
2024-02-19 13:39:52 +01:00
|
|
|
License: HTMLTIDY
|
2009-05-19 04:38:24 +02:00
|
|
|
Group: Development/Libraries/Java
|
2023-07-24 21:29:33 +02:00
|
|
|
URL: https://github.com/jtidy/jtidy
|
|
|
|
Source0: https://github.com/jtidy/jtidy/archive/refs/tags/jtidy-1.0.4.tar.gz
|
2024-02-19 14:06:06 +01:00
|
|
|
Source1: %{name}-build.xml
|
|
|
|
Source100: %{name}-rpmlintrc
|
2009-05-19 04:38:24 +02:00
|
|
|
BuildRequires: ant >= 1.6
|
|
|
|
BuildRequires: ant-junit
|
2018-10-29 10:38:58 +01:00
|
|
|
BuildRequires: fdupes
|
2024-02-19 14:06:06 +01:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2009-05-19 04:38:24 +02:00
|
|
|
BuildRequires: xerces-j2
|
2024-02-19 14:06:06 +01:00
|
|
|
BuildRequires: xml-apis
|
2018-10-29 10:38:58 +01:00
|
|
|
Requires: xerces-j2
|
2024-02-19 14:06:06 +01:00
|
|
|
Requires: xml-apis
|
2009-05-19 04:38:24 +02:00
|
|
|
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.
|
|
|
|
|
2018-10-29 10:38:58 +01:00
|
|
|
%package javadoc
|
|
|
|
Summary: HTML syntax checker and pretty printer
|
|
|
|
Group: Development/Libraries/Java
|
2009-05-19 04:38:24 +02:00
|
|
|
|
2018-10-29 10:38:58 +01:00
|
|
|
%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.
|
2009-05-19 04:38:24 +02:00
|
|
|
|
|
|
|
%package scripts
|
|
|
|
Summary: HTML syntax checker and pretty printer
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
Requires: %{name} = %{version}
|
2013-09-09 13:58:46 +02:00
|
|
|
Requires: javapackages-tools
|
2009-05-19 04:38:24 +02:00
|
|
|
|
|
|
|
%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
|
2023-07-24 21:29:33 +02:00
|
|
|
%setup -q -n %{name}-%{name}-%{version}
|
2022-03-20 13:42:34 +01:00
|
|
|
cp -p %{SOURCE1} build.xml
|
2012-06-16 06:55:51 +02:00
|
|
|
|
2009-05-19 04:38:24 +02:00
|
|
|
%build
|
2022-03-20 13:42:34 +01:00
|
|
|
mkdir -p lib
|
2024-02-19 14:06:06 +01:00
|
|
|
build-jar-repository -s lib xerces-j2 xml-apis
|
2009-05-19 04:38:24 +02:00
|
|
|
%{ant} \
|
2018-10-29 10:38:58 +01:00
|
|
|
package javadoc
|
2009-05-19 04:38:24 +02:00
|
|
|
|
|
|
|
%install
|
2012-06-16 06:55:51 +02:00
|
|
|
|
2009-05-19 04:38:24 +02:00
|
|
|
# jar
|
2018-10-29 10:38:58 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadir}
|
2022-03-20 13:42:34 +01:00
|
|
|
install -m 644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2018-10-29 10:38:58 +01:00
|
|
|
|
|
|
|
# pom
|
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
2024-02-19 14:06:06 +01:00
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
2018-10-29 10:38:58 +01:00
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar -a net.sf.jtidy:%{name}
|
2012-06-16 06:55:51 +02:00
|
|
|
|
2009-05-19 04:38:24 +02:00
|
|
|
# javadoc
|
2018-10-29 10:38:58 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -aL target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2012-06-16 06:55:51 +02:00
|
|
|
|
2009-05-19 04:38:24 +02:00
|
|
|
# shell script
|
2022-03-20 13:42:34 +01:00
|
|
|
%jpackage_script org.w3c.tidy.Tidy "" "" %{name}:xerces-j2:xml-apis %{name} true
|
2012-06-16 06:55:51 +02:00
|
|
|
|
2009-05-19 04:38:24 +02:00
|
|
|
# ant.d
|
2018-10-29 10:38:58 +01:00
|
|
|
install -d -m 0755 %{buildroot}%{_sysconfdir}/ant.d
|
|
|
|
cat > %{buildroot}%{_sysconfdir}/ant.d/%{name} << EOF
|
2022-03-20 13:42:34 +01:00
|
|
|
jtidy xerces-j2 xml-apis
|
2009-05-19 04:38:24 +02:00
|
|
|
EOF
|
|
|
|
|
2022-03-20 13:42:34 +01:00
|
|
|
%files -f .mfiles
|
2018-10-29 10:38:58 +01:00
|
|
|
%license LICENSE.txt
|
2009-05-19 04:38:24 +02:00
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
|
|
|
|
|
2018-10-29 10:38:58 +01:00
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc %{_javadocdir}/%{name}
|
2009-05-19 04:38:24 +02:00
|
|
|
|
|
|
|
%files scripts
|
|
|
|
%defattr(0755,root,root,0755)
|
|
|
|
%{_bindir}/*
|
|
|
|
|
|
|
|
%changelog
|