From 8e157cb49bf1ba82f4e23b5d6b10d1a97d1215d011edb18638b75370dfaf8b9a Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 20 Oct 2024 16:29:50 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/xmlstreambuffer?expand=0&rev=14 --- 2.1.0.a.tar.gz | 3 --- streambuffer-1.5.4.tar.gz | 3 +++ xmlstreambuffer.spec | 40 ++++++++++++++++++++++----------------- 3 files changed, 26 insertions(+), 20 deletions(-) delete mode 100644 2.1.0.a.tar.gz create mode 100644 streambuffer-1.5.4.tar.gz diff --git a/2.1.0.a.tar.gz b/2.1.0.a.tar.gz deleted file mode 100644 index de6a469..0000000 --- a/2.1.0.a.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d453efb4af6ab5b5f2387449197b857f1684d59deb017414539e7a8c1c5fb334 -size 50411 diff --git a/streambuffer-1.5.4.tar.gz b/streambuffer-1.5.4.tar.gz new file mode 100644 index 0000000..47c6569 --- /dev/null +++ b/streambuffer-1.5.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5099506e5455bb0dc40e956afa811cf45b9fcaf9615c47a4fdcae84bac27ca8e +size 52973 diff --git a/xmlstreambuffer.spec b/xmlstreambuffer.spec index cd967ed..bd37f4d 100644 --- a/xmlstreambuffer.spec +++ b/xmlstreambuffer.spec @@ -17,20 +17,21 @@ Name: xmlstreambuffer -Version: 2.1.0.a +Version: 1.5.4 Release: 0 Summary: XML Stream Buffer License: CDDL-1.0 OR GPL-2.0-only WITH Classpath-exception-2.0 Group: Development/Libraries/Java -URL: https://github.com/eclipse-ee4j/metro-xmlstreambuffer -Source0: https://github.com/eclipse-ee4j/metro-%{name}/archive/refs/tags/%{version}.tar.gz +URL: https://java.net/projects/xmlstreambuffer/ +Source0: https://github.com/kohsuke/xmlstreambuffer/archive/streambuffer-%{version}.tar.gz BuildRequires: fdupes BuildRequires: java-devel >= 1.8 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.eclipse.ee4j:project:pom:) BuildRequires: mvn(org.jvnet.staxex:stax-ex) +Requires: stax-ex BuildArch: noarch %description @@ -62,35 +63,40 @@ Group: Documentation/HTML This package contains javadoc for %{name}. %prep -%setup -q -n metro-%{name}-%{version} -pushd streambuffer +%setup -q -n %{name}-streambuffer-%{version} +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 :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 :build-helper-maven-plugin %pom_remove_plugin :maven-enforcer-plugin +rm -r test/com/sun/xml/stream/buffer/stax/InscopeNamespaceTest.java + %{mvn_file} :streambuffer %{name} -popd %build -pushd streambuffer %{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) \ -Dsource=8 -popd %install -pushd streambuffer %mvn_install %fdupes -s %{buildroot}%{_javadocdir} -popd -%files -f streambuffer/.mfiles -%license LICENSE.md NOTICE.md +%files -f .mfiles +%license copyright.txt -%files javadoc -f streambuffer/.mfiles-javadoc -%license LICENSE.md NOTICE.md +%files javadoc -f .mfiles-javadoc +%license copyright.txt %changelog