jsr-305/jsr-305.spec

71 lines
2.0 KiB
RPMSpec
Raw Normal View History

2020-02-14 15:38:20 +08:00
Name: jsr-305
2021-09-03 09:52:21 +08:00
Version: 3.0.2
Release: 2
2020-02-14 15:38:20 +08:00
Summary: Correctness annotations for Java code
License: BSD-3-Clause AND CC-BY-2.5
2021-09-03 09:52:21 +08:00
URL: https://code.google.com/p/jsr-305
2020-02-14 15:38:20 +08:00
BuildArch: noarch
2021-09-03 09:52:21 +08:00
Source0: %{name}-%{version}.tar.gz
2020-02-14 15:38:20 +08:00
Source1: NOTICE-CC-BY.txt
BuildRequires: maven-local
2021-09-03 09:52:21 +08:00
%if %{with bootstrap}
BuildRequires: javapackages-bootstrap
%else
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%endif
2020-02-14 15:38:20 +08:00
%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
2021-09-03 09:52:21 +08:00
%autosetup -n jsr-305-3.0.2 -p1
2020-02-14 15:38:20 +08:00
cp %{SOURCE1} NOTICE-CC-BY
2021-09-03 09:52:21 +08:00
%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
2020-02-14 15:38:20 +08:00
%mvn_file :ri jsr-305
%mvn_alias :ri com.google.code.findbugs:jsr305
%mvn_package ":{proposedAnnotations,tcl}" __noinstall
%pom_disable_module sampleUses
2021-09-03 09:52:21 +08:00
%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
2020-02-14 15:38:20 +08:00
%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
* Thu Jun 13 2024 wangkai <13474090681@163.com> - 3.0.2-2
- License compliance rectification
2021-09-03 09:52:21 +08:00
* Fri Sep 3 2021 houyingchao <houyingchao@huawei.com> - 3.0.2-1
- Upgrade to 3.0.2
2020-02-14 15:38:20 +08:00
* Tue Jan 21 2020 Jiangping Hu <hujp1985@foxmail.com> - 0-0.25
- Package init