File attoparser.spec of Package attoparser
#
# spec file for package attoparser
#
# Copyright (c) 2024 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: attoparser
Version: 2.0.7
Release: 0
Summary: A tiny but fast java event-style markup parser
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://www.%{name}.org/
Source0: https://github.com/%{name}/%{name}/archive/refs/tags/%{name}-%{version}.RELEASE.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildArch: noarch
%description
attoparser is a Java parser for XML and HTML markup. It is a SAX-style
event-based parser —though it does not implement the SAX standard— but it can
also act as a DOM-style parser.
Its goals are:
* To be easy to use. Few lines of code needed. And no more parser library hell
worrying about your JDK's parser API versions.
* To be fast. As fast as the fastest standard parsers. And in many scenarios,
faster.
* To offer a powerful interface. Consider well-formedness optional, line +
column location, ability to reconstruct the original document, etc.
* To simplify your parsing experience. By removing the need to worry about
validation or entity resolution —both unneeded in many cases.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup -n %{name}-%{name}-%{version}.RELEASE
chmod 0644 *.txt
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-assembly-plugin
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dsource=8 \
-Dmaven.compile.{source,target}=8
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license {NOTICE,LICENSE}.txt
%doc {USAGE,README}.txt
%files javadoc -f .mfiles-javadoc
%license {NOTICE,LICENSE}.txt
%changelog