Name:                xmlstreambuffer
Version:             1.5.6
Release:             1
Summary:             XML Stream Buffer
License:             CDDL-1.1 or GPLv2 with exceptions
URL:                 http://java.net/projects/xmlstreambuffer/
Source0:             https://github.com/javaee/metro-xmlstreambuffer/archive/refs/tags/%{version}.tar.gz
Patch0:              0001-adapt-maven-compiler-plugin.patch
BuildRequires:       jvnet-parent maven-local maven-enforcer-plugin maven-plugin-bundle
BuildRequires:       maven-surefire-provider-junit stax-ex >= 1.7.1 junit woodstox-core
BuildArch:           noarch
%description
This project defines a stream-based representation,a stream buffer
,of an XML infoset in JAVA and  mechanisms to create and processs
stream buffers using standard XML APIs. Supports SAX and StAX.

%package help
Summary:             man files for xmlstreambuffer
Provides:            xmlstreambuffer-javadoc = %{version}-%{release}
Obsoletes:           xmlstreambuffer-javadoc < %{version}-%{release}
%description help
This package contains of man files  for xmlstreambuffer.

%prep
%autosetup -n metro-xmlstreambuffer-%{version} -p1
cd streambuffer
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
rm -r test/com/sun/xml/stream/buffer/stax/InscopeNamespaceTest.java
%mvn_file :streambuffer  xmlstreambuffer
cd -

%build
cd streambuffer
rm -rf src/module-info.java
%mvn_build --xmvn-javadoc
cd -

%install
cd streambuffer
%mvn_install
cd -

%files -f streambuffer/.mfiles

%files help -f streambuffer/.mfiles-javadoc

%changelog
* Fri May 05 2023 Ge Wang <wang__ge@126.com> - 1.5.6-1
- Update to version 1.5.6

* Mon Jun 20 2022 Chenyx <chenyixiong3@huawei.com> - 1.5.4-2
- License compliance rectification

* Sat Aug 22 2020 liyanan <liyanan32@huawei.com> - 1.5.4-1
- package init
