!2 Upgrade to 3.0.2

From: @houyingchao
Reviewed-by: @wangchong1995924
Signed-off-by: @wangchong1995924
This commit is contained in:
openeuler-ci-bot 2021-09-03 06:11:55 +00:00 committed by Gitee
commit 3035f445a8
3 changed files with 25 additions and 5 deletions

BIN
jsr-305-3.0.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,13 +1,18 @@
Name: jsr-305 Name: jsr-305
Version: 0 Version: 3.0.2
Release: 0.25 Release: 1
Summary: Correctness annotations for Java code Summary: Correctness annotations for Java code
License: BSD and CC-BY License: BSD and CC-BY
URL: https://github.com/amaembo/jsr-305 URL: https://code.google.com/p/jsr-305
BuildArch: noarch BuildArch: noarch
Source0: https://github.com/amaembo/%{name}/archive/fdeb2abc16865fdd13f205c8f8afb7a34272e93e/%{name}.tar.gz Source0: %{name}-%{version}.tar.gz
Source1: NOTICE-CC-BY.txt Source1: NOTICE-CC-BY.txt
BuildRequires: maven-local BuildRequires: maven-local
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%endif
%description %description
This package contains reference implementations, test cases, and other This package contains reference implementations, test cases, and other
@ -21,8 +26,12 @@ Summary: Javadoc documentation for jsr-305
This package contains the API documentation for jsr-305. This package contains the API documentation for jsr-305.
%prep %prep
%autosetup -n jsr-305-fdeb2abc16865fdd13f205c8f8afb7a34272e93e -p1 %autosetup -n jsr-305-3.0.2 -p1
cp %{SOURCE1} NOTICE-CC-BY cp %{SOURCE1} NOTICE-CC-BY
%pom_xpath_set "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/*" 1.6
sed -i 's|<groupId>com\.google\.code\.findbugs</groupId>|<groupId>org.jsr-305</groupId>|' ri/pom.xml
sed -i 's|<artifactId>jsr305</artifactId>|<artifactId>ri</artifactId>|' ri/pom.xml
%mvn_file :ri jsr-305 %mvn_file :ri jsr-305
%mvn_alias :ri com.google.code.findbugs:jsr305 %mvn_alias :ri com.google.code.findbugs:jsr305
@ -30,6 +39,14 @@ cp %{SOURCE1} NOTICE-CC-BY
%pom_disable_module sampleUses %pom_disable_module sampleUses
%pom_remove_parent ri
%pom_add_parent org.jsr-305:jsr-305:0.1-SNAPSHOT ri
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin ri
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin ri
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin ri
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin ri
%build %build
%mvn_build %mvn_build
@ -43,5 +60,8 @@ cp %{SOURCE1} NOTICE-CC-BY
%doc ri/LICENSE NOTICE-CC-BY %doc ri/LICENSE NOTICE-CC-BY
%changelog %changelog
* Fri Sep 3 2021 houyingchao <houyingchao@huawei.com> - 3.0.2-1
- Upgrade to 3.0.2
* Tue Jan 21 2020 Jiangping Hu <hujp1985@foxmail.com> - 0-0.25 * Tue Jan 21 2020 Jiangping Hu <hujp1985@foxmail.com> - 0-0.25
- Package init - Package init

Binary file not shown.