Fridrich Strba 2024-10-20 16:29:50 +00:00 committed by Git OBS Bridge
parent f30eeffb52
commit 8e157cb49b
3 changed files with 26 additions and 20 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:d453efb4af6ab5b5f2387449197b857f1684d59deb017414539e7a8c1c5fb334
size 50411

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5099506e5455bb0dc40e956afa811cf45b9fcaf9615c47a4fdcae84bac27ca8e
size 52973

View File

@ -17,20 +17,21 @@
Name: xmlstreambuffer Name: xmlstreambuffer
Version: 2.1.0.a Version: 1.5.4
Release: 0 Release: 0
Summary: XML Stream Buffer Summary: XML Stream Buffer
License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0 License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0
Group: Development/Libraries/Java Group: Development/Libraries/Java
URL: https://github.com/eclipse-ee4j/metro-xmlstreambuffer URL: https://java.net/projects/xmlstreambuffer/
Source0: https://github.com/eclipse-ee4j/metro-%{name}/archive/refs/tags/%{version}.tar.gz Source0: https://github.com/kohsuke/xmlstreambuffer/archive/streambuffer-%{version}.tar.gz
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 BuildRequires: java-devel >= 1.8
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(jakarta.activation:jakarta.activation-api) BuildRequires: stax-ex
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.ee4j:project:pom:)
BuildRequires: mvn(org.jvnet.staxex:stax-ex) BuildRequires: mvn(org.jvnet.staxex:stax-ex)
Requires: stax-ex
BuildArch: noarch BuildArch: noarch
%description %description
@ -62,35 +63,40 @@ Group: Documentation/HTML
This package contains javadoc for %{name}. This package contains javadoc for %{name}.
%prep %prep
%setup -q -n metro-%{name}-%{version} %setup -q -n %{name}-streambuffer-%{version}
pushd streambuffer find ./ -name '*.class' -delete
find ./ -name '*.jar' -delete
find ./ -name '*.zip' -delete
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin %pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :buildnumber-maven-plugin %pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :build-helper-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-enforcer-plugin
rm -r test/com/sun/xml/stream/buffer/stax/InscopeNamespaceTest.java
%{mvn_file} :streambuffer %{name} %{mvn_file} :streambuffer %{name}
popd
%build %build
pushd streambuffer
%{mvn_build} -f -- \ %{mvn_build} -f -- \
%if %{?pkg_vcmp:%pkg_vcmp java-devel >= 9}%{!?pkg_vcmp:0}
-Dmaven.compiler.release=8 \
%endif
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \ -Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ) \
-Dsource=8 -Dsource=8
popd
%install %install
pushd streambuffer
%mvn_install %mvn_install
%fdupes -s %{buildroot}%{_javadocdir} %fdupes -s %{buildroot}%{_javadocdir}
popd
%files -f streambuffer/.mfiles %files -f .mfiles
%license LICENSE.md NOTICE.md %license copyright.txt
%files javadoc -f streambuffer/.mfiles-javadoc %files javadoc -f .mfiles-javadoc
%license LICENSE.md NOTICE.md %license copyright.txt
%changelog %changelog