# # spec file for package htmlparser # # Copyright (c) 2025 SUSE LLC # # 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 License: BSD-2-Clause AND MIT Group: Development/Libraries/Java URL: https://about.validator.nu/htmlparser/ Source0: https://github.com/validator/htmlparser/archive/refs/tags/RELEASE_1_4.tar.gz BuildRequires: fdupes BuildRequires: java-devel >= 1.8 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) BuildRequires: mvn(xom:xom) 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 %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" %build %{mvn_build} -f %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENSE.txt %doc README.txt %files javadoc -f .mfiles-javadoc %changelog