Sync from SUSE:SLFO:Main jsr-305 revision 7246c9645c44c6cb4c7aea80432860a7
This commit is contained in:
commit
b9c932bdd1
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
NOTICE-CC-BY.txt
Normal file
4
NOTICE-CC-BY.txt
Normal file
@ -0,0 +1,4 @@
|
||||
Copyright (c) 2005 Brian Goetz
|
||||
Released under the Creative Commons Attribution License
|
||||
(http://creativecommons.org/licenses/by/2.5)
|
||||
Official home: http://www.jcip.net
|
13
_service
Normal file
13
_service
Normal file
@ -0,0 +1,13 @@
|
||||
<services>
|
||||
<service name="tar_scm" mode="disabled">
|
||||
<param name="scm">git</param>
|
||||
<param name="url">https://github.com/amaembo/jsr-305.git</param>
|
||||
<param name="revision">d7734b13c61492982784560ed5b4f4bd6cf9bb2c</param>
|
||||
<param name="versionformat">3.0.2</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
jsr-305-3.0.2.tar.xz
(Stored with Git LFS)
Normal file
BIN
jsr-305-3.0.2.tar.xz
(Stored with Git LFS)
Normal file
Binary file not shown.
115
jsr-305-ri-build.xml
Normal file
115
jsr-305-ri-build.xml
Normal file
@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="jsr305" default="package" basedir=".">
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Build environment properties -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<property file="build.properties"/>
|
||||
|
||||
<property name="project.name" value="FindBugs-jsr305"/>
|
||||
<property name="project.groupId" value="com.google.code.findbugs"/>
|
||||
<property name="project.artifactId" value="jsr305"/>
|
||||
<property name="project.version" value="3.0.2"/>
|
||||
<property name="project.description" value="JSR305 Annotations for Findbugs"/>
|
||||
|
||||
<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/resources"/>
|
||||
|
||||
<property name="compiler.source" value="1.8"/>
|
||||
<property name="compiler.target" value="${compiler.source}"/>
|
||||
|
||||
<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"
|
||||
optimize="false"
|
||||
deprecation="true"
|
||||
target="${compiler.target}"
|
||||
verbose="false"
|
||||
fork="false"
|
||||
source="${compiler.source}">
|
||||
<src>
|
||||
<pathelement location="${build.srcDir}"/>
|
||||
</src>
|
||||
</javac>
|
||||
</target>
|
||||
|
||||
<!-- ====================================================================== -->
|
||||
<!-- Javadoc target -->
|
||||
<!-- ====================================================================== -->
|
||||
|
||||
<target name="javadoc" description="Generates the Javadoc of the application">
|
||||
<javadoc sourcepath="${build.srcDir}"
|
||||
packagenames="*"
|
||||
destdir="${reporting.outputDirectory}/apidocs"
|
||||
access="protected"
|
||||
old="false"
|
||||
verbose="false"
|
||||
version="true"
|
||||
use="true"
|
||||
author="true"
|
||||
splitindex="false"
|
||||
nodeprecated="false"
|
||||
nodeprecatedlist="false"
|
||||
notree="false"
|
||||
noindex="false"
|
||||
nohelp="false"
|
||||
nonavbar="false"
|
||||
serialwarn="false"
|
||||
source="${compiler.source}"
|
||||
charset="ISO-8859-1"
|
||||
linksource="false"
|
||||
breakiterator="false"/>
|
||||
</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="Bundle-Description" value="${project.description}"/>
|
||||
<attribute name="Bundle-License" value="https://opensource.org/licenses/BSD-3-Clause"/>
|
||||
<attribute name="Bundle-ManifestVersion" value="2"/>
|
||||
<attribute name="Bundle-Name" value="${project.name}"/>
|
||||
<attribute name="Bundle-SymbolicName" value="org.jsr-305"/>
|
||||
<attribute name="Bundle-Version" value="${project.version}"/>
|
||||
<attribute name="Export-Package" value="javax.annotation.concurrent;version="${project.version}",javax.annotation.meta;uses:="javax.annotation";version="${project.version}""/>
|
||||
<attribute name="Import-Package" value="javax.annotation,javax.annotation.meta"/>
|
||||
<attribute name="Require-Capability" value="osgi.ee;filter:="(&(osgi.ee=JavaSE)(version=${compiler.target}))""/>
|
||||
</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>
|
95
jsr-305.changes
Normal file
95
jsr-305.changes
Normal file
@ -0,0 +1,95 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 23 23:38:54 UTC 2022 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Build with java source and target levels 8
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 27 06:59:45 UTC 2021 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Upgrade to upstream version 3.0.2
|
||||
* needed by the fix for bsc#1189749, CVE-2021-37714 in jsoup
|
||||
package
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 5 12:51:38 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Remove references to parent from all pom files
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 13 17:57:20 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Fix a broken link
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Feb 6 18:36:28 UTC 2019 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Cleanup of spec file
|
||||
- Do not distribute sampleUses as documentation
|
||||
- Fix javadoc group
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 31 02:14:05 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Package also the parent pom
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 25 06:58:50 UTC 2018 - Fridrich Strba <fstrba@suse.com>
|
||||
|
||||
- Update to newer snapshot (svn revision 51)
|
||||
- Add com.google.code.findbugs:jsr305 alias to the maven provides
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 19 09:49:18 UTC 2017 - fstrba@suse.com
|
||||
|
||||
- Fix build with jdk9: specify java target and source 1.6
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 19 10:53:24 UTC 2017 - dziolkowski@suse.com
|
||||
|
||||
- New build dependency: javapackages-local
|
||||
- removed "section free" tag
|
||||
- spec cleaned using spec-cleaner
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 18 09:46:15 UTC 2015 - tchvatal@suse.com
|
||||
|
||||
- Fix build with new javapackages-tools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 27 14:00:02 UTC 2014 - tchvatal@suse.com
|
||||
|
||||
- Remove java-javadoc dep as it is not needed to sort out SLE11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 10 09:58:16 UTC 2013 - mvyskocil@suse.com
|
||||
|
||||
- use add_maven_depmap from javapackages-tools
|
||||
- don't install versioned jars and javadocs
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 9 11:06:06 UTC 2013 - tchvatal@suse.com
|
||||
|
||||
- Move from jpackage-utils to javapackage-tools
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 26 10:47:40 UTC 2012 - mvyskocil@suse.cz
|
||||
|
||||
- remove non working url from spec
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 9 08:41:38 UTC 2011 - coolo@suse.com
|
||||
|
||||
- fix license to be in spdx.org format
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 15 09:54:19 UTC 2010 - mvyskocil@suse.cz
|
||||
|
||||
- fix bnc#653551 - No license indicators in jsr-305 package
|
||||
* add license file with BSD license text
|
||||
as written on http://code.google.com/p/jsr-305/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 14:58:27 CEST 2009 - mvyskocil@suse.cz
|
||||
|
||||
- Initial SUSE packaging based on jpp 5.0
|
||||
|
90
jsr-305.spec
Normal file
90
jsr-305.spec
Normal file
@ -0,0 +1,90 @@
|
||||
#
|
||||
# spec file for package jsr-305
|
||||
#
|
||||
# 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/
|
||||
#
|
||||
|
||||
|
||||
Name: jsr-305
|
||||
Version: 3.0.2
|
||||
Release: 0
|
||||
Summary: Correctness annotations for Java code
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://code.google.com/p/jsr-305/
|
||||
Source0: %{name}-%{version}.tar.xz
|
||||
Source1: jsr-305-ri-build.xml
|
||||
# File containing URL to CC-BY license text
|
||||
Source2: NOTICE-CC-BY.txt
|
||||
BuildRequires: ant
|
||||
BuildRequires: dos2unix
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: javapackages-local
|
||||
BuildArch: noarch
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc documentation for %{name}
|
||||
Group: Documentation/HTML
|
||||
|
||||
%description
|
||||
This package contains reference implementations, test cases, and other
|
||||
documents for Java Specification Request 305: Annotations for Software Defect
|
||||
Detection.
|
||||
|
||||
%description javadoc
|
||||
This package contains the API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
cp -a %{SOURCE1} ri/build.xml
|
||||
cp %{SOURCE2} NOTICE-CC-BY
|
||||
dos2unix sampleUses/pom.xml
|
||||
|
||||
# do not build sampleUses module - it causes Javadoc generation to fail
|
||||
%pom_disable_module sampleUses
|
||||
|
||||
for module in ri tcl sampleUses proposedAnnotations; do
|
||||
%pom_remove_parent ${module}
|
||||
done
|
||||
|
||||
%build
|
||||
pushd ri
|
||||
%{ant} jar javadoc
|
||||
popd
|
||||
|
||||
%install
|
||||
# jars
|
||||
install -dm 0755 %{buildroot}%{_javadir}
|
||||
install -pm 0644 ri/target/jsr305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
||||
ln -s %{name}.jar %{buildroot}%{_javadir}/jsr305.jar
|
||||
|
||||
# poms
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 0644 ri/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
||||
%add_maven_depmap %{name}.pom %{name}.jar
|
||||
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr ri/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%license ri/LICENSE NOTICE-CC-BY
|
||||
%{_javadir}/jsr305.jar
|
||||
|
||||
%files javadoc
|
||||
%license ri/LICENSE NOTICE-CC-BY
|
||||
%{_javadocdir}/%{name}
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user