2021-07-06 07:08:50 +00:00
|
|
|
#
|
|
|
|
# spec file for package htmlparser
|
|
|
|
#
|
2025-03-27 18:08:46 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2021-07-06 07:08:50 +00: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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: htmlparser
|
|
|
|
Version: 1.4
|
|
|
|
Release: 0
|
|
|
|
Summary: The Validator.nu HTML parser
|
2025-03-27 18:08:46 +00:00
|
|
|
License: BSD-2-Clause AND MIT
|
2021-07-06 07:08:50 +00:00
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: https://about.validator.nu/htmlparser/
|
|
|
|
Source0: https://github.com/validator/htmlparser/archive/refs/tags/RELEASE_1_4.tar.gz
|
2025-03-27 18:08:46 +00:00
|
|
|
BuildRequires: fdupes
|
2021-07-06 07:34:19 +00:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2021-07-06 07:08:50 +00:00
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(com.ibm.icu:icu4j)
|
|
|
|
BuildRequires: mvn(net.sourceforge.jchardet:jchardet)
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
|
2021-07-06 07:34:19 +00:00
|
|
|
BuildRequires: mvn(xom:xom)
|
2021-07-06 07:08:50 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
The Validator.nu HTML Parser is an implementation of the HTML5 parsing
|
|
|
|
algorithm in Java for applications. The parser is designed to work as a drop-in
|
|
|
|
replacement for the XML parser in applications that already support XHTML 1.x
|
|
|
|
content with an XML parser and use SAX, DOM or XOM to interface with the
|
|
|
|
parser.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
API documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-RELEASE_1_4
|
|
|
|
|
|
|
|
chmod 0644 README.txt
|
|
|
|
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:rpm-maven-plugin
|
|
|
|
|
2025-03-27 18:08:46 +00:00
|
|
|
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-antrun-plugin"]//pom:dependencies'
|
|
|
|
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:source" "8"
|
|
|
|
%pom_xpath_set "pom:plugin[pom:artifactId[text()='maven-compiler-plugin']]/pom:configuration/pom:target" "8"
|
|
|
|
|
2021-07-06 07:08:50 +00:00
|
|
|
%build
|
2021-07-06 07:34:19 +00:00
|
|
|
%{mvn_build} -f
|
2021-07-06 07:08:50 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
2025-03-27 18:08:46 +00:00
|
|
|
%fdupes %{buildroot}%{_javadocdir}/%{name}
|
2021-07-06 07:08:50 +00:00
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE.txt
|
|
|
|
%doc README.txt
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
|
|
|
|
%changelog
|