From 0ee70766c5f5e242736a5e82cc66d25241aa2e0e69893cab033b8dee186f0036 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 13:10:25 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main google-errorprone revision b1a301c4bc445b9cd8741197302d7ee1 --- .gitattributes | 23 +++++ _multibuild | 4 + _service | 15 +++ error-prone-2.11.0.tar.xz | 3 + google-errorprone-annotations-build.xml | 112 +++++++++++++++++++++ google-errorprone-annotations.changes | 11 +++ google-errorprone-annotations.spec | 83 ++++++++++++++++ google-errorprone.changes | 9 ++ google-errorprone.spec | 123 ++++++++++++++++++++++++ 9 files changed, 383 insertions(+) create mode 100644 .gitattributes create mode 100644 _multibuild create mode 100644 _service create mode 100644 error-prone-2.11.0.tar.xz create mode 100644 google-errorprone-annotations-build.xml create mode 100644 google-errorprone-annotations.changes create mode 100644 google-errorprone-annotations.spec create mode 100644 google-errorprone.changes create mode 100644 google-errorprone.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/_multibuild b/_multibuild new file mode 100644 index 0000000..27072ed --- /dev/null +++ b/_multibuild @@ -0,0 +1,4 @@ + + google-errorprone-annotations + + diff --git a/_service b/_service new file mode 100644 index 0000000..9b196f9 --- /dev/null +++ b/_service @@ -0,0 +1,15 @@ + + + git + https://github.com/google/error-prone.git + v2.11.0 + v* + @PARENT_TAG@ + v(.*) + + + *.tar + xz + + + diff --git a/error-prone-2.11.0.tar.xz b/error-prone-2.11.0.tar.xz new file mode 100644 index 0000000..01816ae --- /dev/null +++ b/error-prone-2.11.0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:35825e370845d517ebfc59e6c6f7be1d2bcd5835a4d1fa0e83fd684d5b84c440 +size 1281292 diff --git a/google-errorprone-annotations-build.xml b/google-errorprone-annotations-build.xml new file mode 100644 index 0000000..3cae61e --- /dev/null +++ b/google-errorprone-annotations-build.xml @@ -0,0 +1,112 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Error Prone ${project.version} API + + + + + + + + + + + + + + + + + + + + + + diff --git a/google-errorprone-annotations.changes b/google-errorprone-annotations.changes new file mode 100644 index 0000000..4972653 --- /dev/null +++ b/google-errorprone-annotations.changes @@ -0,0 +1,11 @@ +------------------------------------------------------------------- +Thu May 4 11:40:47 UTC 2023 - Dominique Leuenberger + +- Add _multibuild to define 2nd spec file as additional flavor. + Eliminates the need for source package links in OBS. + +------------------------------------------------------------------- +Tue May 17 11:40:20 UTC 2022 - Fridrich Strba + +- Initial packaging of org.google.error_prone:error_prone_annotations + artifact version 2.11.0 diff --git a/google-errorprone-annotations.spec b/google-errorprone-annotations.spec new file mode 100644 index 0000000..21b10db --- /dev/null +++ b/google-errorprone-annotations.spec @@ -0,0 +1,83 @@ +# +# spec file +# +# Copyright (c) 2023 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/ +# + + +%global source_name error-prone +%global artifactId error_prone_annotations +%global group_name google-errorprone +Name: %{group_name}-annotations +Version: 2.11.0 +Release: 0 +Summary: error-prone annotations +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://errorprone.info +Source0: %{source_name}-%{version}.tar.xz +Source1: %{name}-build.xml +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: javapackages-local +BuildArch: noarch + +%description +Google Error Prone is a static analysis tool for Java that catches +common programming mistakes at compile-time. + +This package contains Google Error Prone annotations + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{source_name}-%{version} +cp %{SOURCE1} annotations/build.xml +%pom_remove_parent annotations +%pom_xpath_inject pom:project " + com.google.errorprone + 2.11.0" annotations + +%build +pushd annotations +%{ant} jar javadoc +popd + +%install +# jars +install -d -m 0755 %{buildroot}%{_javadir}/%{group_name} +install -p -m 0644 annotations/target/%{artifactId}-%{version}.jar %{buildroot}%{_javadir}/%{group_name}/annotations.jar +# pom +install -d -m 755 %{buildroot}%{_mavenpomdir}/%{group_name} +install -pm 644 annotations/pom.xml %{buildroot}%{_mavenpomdir}/%{group_name}/annotations.pom +%add_maven_depmap %{group_name}/annotations.pom %{group_name}/annotations.jar +# javadoc +install -d -m 755 %{buildroot}%{_javadocdir}/%{name} +cp -pr annotations/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name} +%fdupes -s %{buildroot}%{_javadocdir} + +%files -f .mfiles +%license COPYING + +%files javadoc +%{_javadocdir}/%{name} +%license COPYING +%doc README.md + +%changelog diff --git a/google-errorprone.changes b/google-errorprone.changes new file mode 100644 index 0000000..d3ebfca --- /dev/null +++ b/google-errorprone.changes @@ -0,0 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 19 11:00:56 UTC 2023 - Fridrich Strba + +- Do not require maven-javadoc-plugin that we don't use + +------------------------------------------------------------------- +Mon Mar 7 14:17:02 UTC 2022 - Fridrich Strba + +- Initial packaging of some error_prone artifacts version 2.11.0 diff --git a/google-errorprone.spec b/google-errorprone.spec new file mode 100644 index 0000000..5697d79 --- /dev/null +++ b/google-errorprone.spec @@ -0,0 +1,123 @@ +# +# spec file for package google-errorprone +# +# Copyright (c) 2023 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/ +# + + +%global source_name error-prone +Name: google-errorprone +Version: 2.11.0 +Release: 0 +Summary: Google Error Prone +License: Apache-2.0 +Group: Development/Libraries/Java +URL: https://errorprone.info +Source0: %{source_name}-%{version}.tar.xz +BuildRequires: fdupes +BuildRequires: maven-local +BuildRequires: mvn(com.google.auto.service:auto-service) +BuildRequires: mvn(com.google.auto.service:auto-service-annotations) +BuildRequires: mvn(com.google.code.gson:gson) +BuildRequires: mvn(com.google.errorprone:error_prone_annotations) +BuildRequires: mvn(com.google.guava:guava) +BuildArch: noarch + +%description +Error Prone is a static analysis tool for Java that catches +common programming mistakes at compile-time. + +%package annotation +Summary: @BugPattern annotation +Group: Development/Libraries/Java + +%description annotation +@BugPattern annotation for Google Error Prone + +%package docgen_processor +Summary: @BugPattern annotation processor +Group: Development/Libraries/Java + +%description docgen_processor +JSR-269 annotation processor for @BugPattern annotation + +%package type_annotations +Summary: error-prone type annotations +Group: Development/Libraries/Java + +%description type_annotations +Google Error Prone type annotations + +%package parent +Summary: Error Prone parent POM +Group: Development/Libraries/Java + +%description parent +Error Prone is a static analysis tool for Java that catches +common programming mistakes at compile-time. + +%package javadoc +Summary: Javadoc for %{name} +Group: Documentation/HTML + +%description javadoc +This package contains the API documentation for %{name}. + +%prep +%setup -q -n %{source_name}-%{version} +# already built with different spec +%pom_disable_module annotations +# Disable modules that we cannot build because of dependencies +%pom_disable_module check_api +%pom_disable_module test_helpers +%pom_disable_module core +%pom_disable_module docgen +%pom_disable_module refaster + +%pom_remove_plugin -r :maven-enforcer-plugin +%pom_remove_plugin -r :maven-javadoc-plugin +%pom_remove_plugin -r :maven-site-plugin +%pom_remove_plugin -r :maven-source-plugin + +%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:compilerArgs" +%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" 8 +%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" 8 + +%{mvn_package} ":error_prone_{*}" @1 +%{mvn_file} ":error_prone_{*}" %{name}/@1 + +%build +%{mvn_build} -f + +%install +%mvn_install +%fdupes -s %{buildroot}%{_javadocdir} + +%files annotation -f .mfiles-annotation +%license COPYING + +%files docgen_processor -f .mfiles-docgen_processor +%license COPYING + +%files type_annotations -f .mfiles-type_annotations +%license COPYING + +%files parent -f .mfiles-parent +%license COPYING + +%files javadoc -f .mfiles-javadoc +%license COPYING +%doc README.md + +%changelog