From 6928f169811768077b4821dcaaeee3baa3616178c53ae7e7d85050c68afb4302 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 21 Mar 2024 08:36:11 +0000 Subject: [PATCH 1/4] Accepting request 1159824 from home:urbic:java Submitting a new package OBS-URL: https://build.opensuse.org/request/show/1159824 OBS-URL: https://build.opensuse.org/package/show/Java:packages/s2-geometry-library-java?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + s2-geometry-library-java-2.0.0.tar.gz | 3 ++ s2-geometry-library-java.changes | 4 ++ s2-geometry-library-java.spec | 71 +++++++++++++++++++++++++++ 5 files changed, 102 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 s2-geometry-library-java-2.0.0.tar.gz create mode 100644 s2-geometry-library-java.changes create mode 100644 s2-geometry-library-java.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/s2-geometry-library-java-2.0.0.tar.gz b/s2-geometry-library-java-2.0.0.tar.gz new file mode 100644 index 0000000..cd68f82 --- /dev/null +++ b/s2-geometry-library-java-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:574ae268dd6692eec49c6622e85a0b6cbfff4538ec8fb02be9a4c61ea3b465d8 +size 531691 diff --git a/s2-geometry-library-java.changes b/s2-geometry-library-java.changes new file mode 100644 index 0000000..1d93793 --- /dev/null +++ b/s2-geometry-library-java.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Nov 3 23:15:46 UTC 2023 - Anton Shvetz + +- Initial packaging with v2.0.0 diff --git a/s2-geometry-library-java.spec b/s2-geometry-library-java.spec new file mode 100644 index 0000000..c617013 --- /dev/null +++ b/s2-geometry-library-java.spec @@ -0,0 +1,71 @@ +# +# spec file for package s2-geometry-library-java +# +# 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: s2-geometry-library-java +Version: 2.0.0 +Release: 0 +Summary: S2 Geometry Library +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://s2geometry.io/ +Source0: https://github.com/google/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: maven-local +BuildRequires: mvn(com.google.errorprone:error_prone_annotations) +BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) +BuildArch: noarch + +%description +This is a package for manipulating geometric shapes. Unlike many geometry +libraries, S2 is primarily designed to work with spherical geometry, i.e., +shapes drawn on a sphere rather than on a planar 2D map. This makes it +especially suitable for working with geographic data. + +%package javadoc +Summary: API documentation for %{name} +Group: Documentation/HTML + +%description javadoc +API documentation for %{name}. + +%prep +%setup -q + +%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin +%pom_remove_plugin :maven-source-plugin +%pom_remove_plugin :maven-javadoc-plugin + +%pom_add_dep com.google.errorprone:error_prone_annotations + +%{mvn_file} ':{*}' @1 + +%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 + +%files javadoc -f .mfiles-javadoc +%license LICENSE + +%changelog -- 2.51.1 From c9626eed715b77f3420c4b80d15e31e4abe90ba2a4d5236ca47f0c07007793db Mon Sep 17 00:00:00 2001 From: Ana Guerrero Date: Tue, 29 Oct 2024 13:36:11 +0000 Subject: [PATCH 2/4] Accepting request 1218934 from Java:packages new package OBS-URL: https://build.opensuse.org/request/show/1218934 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/s2-geometry-library-java?expand=0&rev=1 -- 2.51.1 From c3bbc7661e1db4b177b1cbc6f1d39aafe887195cda90c4478cf3cb5b61bd00f3 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 1 May 2025 07:51:48 +0000 Subject: [PATCH 3/4] OBS-URL: https://build.opensuse.org/package/show/Java:packages/s2-geometry-library-java?expand=0&rev=3 --- s2-geometry-library-java.changes | 5 +++++ s2-geometry-library-java.spec | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/s2-geometry-library-java.changes b/s2-geometry-library-java.changes index 1d93793..7f5ab1e 100644 --- a/s2-geometry-library-java.changes +++ b/s2-geometry-library-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu May 1 07:51:04 UTC 2025 - Fridrich Strba + +- Explicitely declare jsr305 build requirement + ------------------------------------------------------------------- Fri Nov 3 23:15:46 UTC 2023 - Anton Shvetz diff --git a/s2-geometry-library-java.spec b/s2-geometry-library-java.spec index c617013..b71a25a 100644 --- a/s2-geometry-library-java.spec +++ b/s2-geometry-library-java.spec @@ -1,7 +1,7 @@ # # spec file for package s2-geometry-library-java # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ URL: http://s2geometry.io/ Source0: https://github.com/google/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz BuildRequires: fdupes BuildRequires: maven-local +BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(com.google.errorprone:error_prone_annotations) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) BuildArch: noarch -- 2.51.1 From fdc975d329d61ce526705b1af268caca676a5c00d25bf600e52bf83eed744e23 Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Thu, 3 Jul 2025 09:59:30 +0000 Subject: [PATCH 4/4] OBS-URL: https://build.opensuse.org/package/show/Java:packages/s2-geometry-library-java?expand=0&rev=5 --- s2-geometry-library-java.changes | 5 +++++ s2-geometry-library-java.spec | 2 ++ 2 files changed, 7 insertions(+) diff --git a/s2-geometry-library-java.changes b/s2-geometry-library-java.changes index 7f5ab1e..6b4233f 100644 --- a/s2-geometry-library-java.changes +++ b/s2-geometry-library-java.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jul 3 09:57:47 UTC 2025 - Fridrich Strba + +- Specify the right version in pom file + ------------------------------------------------------------------- Thu May 1 07:51:04 UTC 2025 - Fridrich Strba diff --git a/s2-geometry-library-java.spec b/s2-geometry-library-java.spec index b71a25a..9ca7bd7 100644 --- a/s2-geometry-library-java.spec +++ b/s2-geometry-library-java.spec @@ -47,6 +47,8 @@ API documentation for %{name}. %prep %setup -q +%pom_xpath_set pom:project/pom:version %{version} + %pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-javadoc-plugin -- 2.51.1