Files
staxmate/staxmate.spec

81 lines
2.8 KiB
RPMSpec

#
# spec file for package staxmate
#
# 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: staxmate
Version: 2.4.1
Release: 0
Summary: Automatic Shifting for Streaming XML Processing
License: BSD-3-Clause
Group: Development/Libraries/Java
URL: https://github.com/FasterXML/StaxMate
Source0: %{url}/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml:oss-parent:pom:)
BuildRequires: mvn(org.codehaus.woodstox:stax2-api)
BuildArch: noarch
%description
StaxMate is an Open Source helper library (or, mini-framework), written in
Java, designed to simplify common tasks for which Stax-based streaming pull
parsers are used (and good) for. This simplification, and added convenience is
to be achieved without compromising positive performance characteristics of
good Stax implementations, such as low memory usage and high processing
throughput.
As with Stax API, input and output sides are separate, and distinction may be
even more pronounced. However, whereas Stax API has division between “raw”
cursor API, and more object-oriented Event API, StaxMate presents only a single
level of abstraction, on input and output sides. StaxMate reader-side
abstractions are mostly based on Cursor API, but some support for Event API is
also planned for interoperability purposes.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n StaxMate-%{name}-%{version}
%pom_xpath_set 'pom:properties/pom:javac.src.version' 8
%pom_xpath_set 'pom:properties/pom:javac.target.version' 8
%pom_xpath_set 'pom:properties/pom:maven.compiler.source' 8
%pom_xpath_set 'pom:properties/pom:maven.compiler.target' 8
%{mvn_file} : %{name}
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE.txt
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog