commit 1b0dffe7d70f8f9085ec90fb5bf6cc2199a2467b Author: Adrian Schröter Date: Mon Oct 14 14:38:58 2024 +0200 Sync from SUSE:ALP:Source:Standard:1.0 jsr-305 revision 7246c9645c44c6cb4c7aea80432860a7 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fecc750 --- /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/NOTICE-CC-BY.txt b/NOTICE-CC-BY.txt new file mode 100644 index 0000000..ab3e0dd --- /dev/null +++ b/NOTICE-CC-BY.txt @@ -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 diff --git a/_service b/_service new file mode 100644 index 0000000..744cf53 --- /dev/null +++ b/_service @@ -0,0 +1,13 @@ + + + git + https://github.com/amaembo/jsr-305.git + d7734b13c61492982784560ed5b4f4bd6cf9bb2c + 3.0.2 + + + *.tar + xz + + + diff --git a/jsr-305-3.0.2.tar.xz b/jsr-305-3.0.2.tar.xz new file mode 100644 index 0000000..61685f9 --- /dev/null +++ b/jsr-305-3.0.2.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3c5beee060062f2e34ce81bf67a22e105c51e5b143d4d700b79f18a75788ffed +size 25324 diff --git a/jsr-305-ri-build.xml b/jsr-305-ri-build.xml new file mode 100644 index 0000000..dd60b80 --- /dev/null +++ b/jsr-305-ri-build.xml @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/jsr-305.changes b/jsr-305.changes new file mode 100644 index 0000000..6a39532 --- /dev/null +++ b/jsr-305.changes @@ -0,0 +1,95 @@ +------------------------------------------------------------------- +Wed Mar 23 23:38:54 UTC 2022 - Fridrich Strba + +- Build with java source and target levels 8 + +------------------------------------------------------------------- +Fri Aug 27 06:59:45 UTC 2021 - Fridrich Strba + +- 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 + +- Remove references to parent from all pom files + +------------------------------------------------------------------- +Wed Mar 13 17:57:20 UTC 2019 - Fridrich Strba + +- Fix a broken link + +------------------------------------------------------------------- +Wed Feb 6 18:36:28 UTC 2019 - Fridrich Strba + +- Cleanup of spec file +- Do not distribute sampleUses as documentation +- Fix javadoc group + +------------------------------------------------------------------- +Wed Oct 31 02:14:05 UTC 2018 - Fridrich Strba + +- Package also the parent pom + +------------------------------------------------------------------- +Thu Oct 25 06:58:50 UTC 2018 - Fridrich Strba + +- 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 + diff --git a/jsr-305.spec b/jsr-305.spec new file mode 100644 index 0000000..b913cfb --- /dev/null +++ b/jsr-305.spec @@ -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