commit c1afe0299ea70cab584e90092de062aabf41b7cdcfdc64273917d72ca45485d8 Author: Fridrich Strba Date: Wed May 18 08:33:52 2022 +0000 OBS-URL: https://build.opensuse.org/package/show/Java:packages/google-errorprone?expand=0&rev=4 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/_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..1fccba0 --- /dev/null +++ b/google-errorprone-annotations.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Tue May 17 11:40:20 UTC 2022 - Fridrich Strba + +- Initial packaging of org.google.error_prone:error_prone_annotations + artifact version 3.11.0 diff --git a/google-errorprone-annotations.spec b/google-errorprone-annotations.spec new file mode 100644 index 0000000..dfb4800 --- /dev/null +++ b/google-errorprone-annotations.spec @@ -0,0 +1,83 @@ +# +# spec file +# +# Copyright (c) 2022 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..30f4544 --- /dev/null +++ b/google-errorprone.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +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..36b801e --- /dev/null +++ b/google-errorprone.spec @@ -0,0 +1,122 @@ +# +# spec file for package google-errorprone +# +# Copyright (c) 2022 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-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