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/jsr-305.spec b/jsr-305.spec new file mode 100644 index 0000000..62afe1e --- /dev/null +++ b/jsr-305.spec @@ -0,0 +1,47 @@ +Name: jsr-305 +Version: 0 +Release: 0.25 +Summary: Correctness annotations for Java code +License: BSD and CC-BY +URL: https://github.com/amaembo/jsr-305 +BuildArch: noarch +Source0: https://github.com/amaembo/%{name}/archive/fdeb2abc16865fdd13f205c8f8afb7a34272e93e/%{name}.tar.gz +Source1: NOTICE-CC-BY.txt +BuildRequires: maven-local + +%description +This package contains reference implementations, test cases, and other +documents for Java Specification Request 305: Annotations for Software Defect +Detection. + +%package javadoc +Summary: Javadoc documentation for jsr-305 + +%description javadoc +This package contains the API documentation for jsr-305. + +%prep +%autosetup -n jsr-305-fdeb2abc16865fdd13f205c8f8afb7a34272e93e -p1 +cp %{SOURCE1} NOTICE-CC-BY + +%mvn_file :ri jsr-305 +%mvn_alias :ri com.google.code.findbugs:jsr305 +%mvn_package ":{proposedAnnotations,tcl}" __noinstall + +%pom_disable_module sampleUses + +%build +%mvn_build + +%install +%mvn_install + +%files -f .mfiles +%doc ri/LICENSE NOTICE-CC-BY sampleUses + +%files javadoc -f .mfiles-javadoc +%doc ri/LICENSE NOTICE-CC-BY + +%changelog +* Tue Jan 21 2020 Jiangping Hu - 0-0.25 +- Package init diff --git a/jsr-305.tar.gz b/jsr-305.tar.gz new file mode 100644 index 0000000..06e4e7a Binary files /dev/null and b/jsr-305.tar.gz differ