Sync from SUSE:ALP:Source:Standard:1.0 google-errorprone revision b1a301c4bc445b9cd8741197302d7ee1
This commit is contained in:
commit
00280e1b05
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
4
_multibuild
Normal file
4
_multibuild
Normal file
@ -0,0 +1,4 @@
|
||||
<multibuild>
|
||||
<package>google-errorprone-annotations</package>
|
||||
</multibuild>
|
||||
|
15
_service
Normal file
15
_service
Normal file
@ -0,0 +1,15 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/google/error-prone.git</param>
|
||||
<param name="revision">v2.11.0</param>
|
||||
<param name="match-tag">v*</param>
|
||||
<param name="versionformat">@PARENT_TAG@</param>
|
||||
<param name="versionrewrite-pattern">v(.*)</param>
|
||||
</service>
|
||||
<service name="recompress" mode="disabled">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="set_version" mode="disabled"/>
|
||||
</services>
|
BIN
error-prone-2.11.0.tar.xz
(Stored with Git LFS)
Normal file
BIN
error-prone-2.11.0.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
112
google-errorprone-annotations-build.xml
Normal file
112
google-errorprone-annotations-build.xml
Normal file
@ -0,0 +1,112 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="error_prone_annotations" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property name="project.groupId" value="com.google.errorprone"/>
|
||||
<property name="project.artifactId" value="error_prone_annotations"/>
|
||||
<property name="project.version" value="2.11.0"/>
|
||||
|
||||
<property name="compiler.source" value="1.8"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
|
||||
<property name="build.dir" value="target"/>
|
||||
<property name="build.outputDir" value="${build.dir}/classes"/>
|
||||
<property name="build.srcDir" value="src/main/java"/>
|
||||
<property name="build.resourceDir" value="src/main/java"/>
|
||||
|
||||
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Cleaning up target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="clean" description="Clean the output directory">
|
||||
<delete dir="${build.dir}"/>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Compilation target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="compile" description="Compile the code">
|
||||
<mkdir dir="${build.outputDir}"/>
|
||||
<javac destdir="${build.outputDir}"
|
||||
nowarn="false"
|
||||
debug="true"
|
||||
encoding="UTF-8"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="${compiler.source}">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</src>
|
||||
</javac>
|
||||
<copy todir="${build.outputDir}">
|
||||
<fileset dir="${build.resourceDir}">
|
||||
<include name="**/*.properties"/>
|
||||
<include name="**/*.binarypb"/>
|
||||
</fileset>
|
||||
</copy>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${build.srcDir}"
|
||||
packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
encoding="UTF-8"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
charset="ISO-8859-1"
|
||||
source="${compiler.source}"
|
||||
linksource="false"
|
||||
breakiterator="false">
|
||||
<doctitle>Error Prone ${project.version} API</doctitle>
|
||||
</javadoc>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Package target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="package" depends="compile" description="Package the application">
|
||||
<jar jarfile="${build.dir}/${build.finalName}.jar"
|
||||
compress="true"
|
||||
index="false"
|
||||
basedir="${build.outputDir}"
|
||||
excludes="**/package.html">
|
||||
<manifest>
|
||||
<attribute name="Automatic-Module-Name" value="com.google.errorprone.annotations"/>
|
||||
</manifest>
|
||||
</jar>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- A dummy target for the package named after the type it creates -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="jar" depends="package" description="Builds the jar for the application"/>
|
||||
|
||||
</project>
|
11
google-errorprone-annotations.changes
Normal file
11
google-errorprone-annotations.changes
Normal file
@ -0,0 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu May 4 11:40:47 UTC 2023 - Dominique Leuenberger <dimstar@opensuse.org>
|
||||
|
||||
- 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 <fstrba@suse.com>
|
||||
|
||||
- Initial packaging of org.google.error_prone:error_prone_annotations
|
||||
artifact version 2.11.0
|
83
google-errorprone-annotations.spec
Normal file
83
google-errorprone-annotations.spec
Normal file
@ -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 "
|
||||
<groupId>com.google.errorprone</groupId>
|
||||
<version>2.11.0</version>" 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
|
9
google-errorprone.changes
Normal file
9
google-errorprone.changes
Normal file
@ -0,0 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 19 11:00:56 UTC 2023 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Do not require maven-javadoc-plugin that we don't use
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Mar 7 14:17:02 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Initial packaging of some error_prone artifacts version 2.11.0
|
123
google-errorprone.spec
Normal file
123
google-errorprone.spec
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user