2010-11-15 23:55:53 +01:00
|
|
|
#
|
2011-12-12 10:09:28 +01:00
|
|
|
# spec file for package jsr-305
|
2010-11-15 23:55:53 +01:00
|
|
|
#
|
2021-08-26 08:14:58 +02:00
|
|
|
# Copyright (c) 2021 SUSE LLC
|
2010-11-15 23:55:53 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-10-25 08:59:52 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-11-15 23:55:53 +01:00
|
|
|
#
|
|
|
|
|
2012-01-26 11:48:20 +01:00
|
|
|
|
2009-06-03 14:52:18 +02:00
|
|
|
Name: jsr-305
|
2021-08-26 08:14:58 +02:00
|
|
|
Version: 3.0.2
|
2011-12-12 10:09:28 +01:00
|
|
|
Release: 0
|
2018-10-25 08:59:52 +02:00
|
|
|
Summary: Correctness annotations for Java code
|
2011-12-12 10:09:28 +01:00
|
|
|
License: BSD-3-Clause
|
2009-06-03 14:52:18 +02:00
|
|
|
Group: Development/Libraries/Java
|
2021-08-26 08:14:58 +02:00
|
|
|
URL: https://code.google.com/p/jsr-305/
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2009-06-03 14:52:18 +02:00
|
|
|
Source1: jsr-305-ri-build.xml
|
2018-10-25 08:59:52 +02:00
|
|
|
# File containing URL to CC-BY license text
|
|
|
|
Source2: NOTICE-CC-BY.txt
|
2009-06-03 14:52:18 +02:00
|
|
|
BuildRequires: ant
|
2018-10-25 08:59:52 +02:00
|
|
|
BuildRequires: dos2unix
|
2017-09-19 11:49:43 +02:00
|
|
|
BuildRequires: fdupes
|
2017-05-19 14:18:50 +02:00
|
|
|
BuildRequires: javapackages-local
|
|
|
|
BuildArch: noarch
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%package javadoc
|
2018-10-25 08:59:52 +02:00
|
|
|
Summary: Javadoc documentation for %{name}
|
2019-02-06 19:39:44 +01:00
|
|
|
Group: Documentation/HTML
|
2018-10-25 08:59:52 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains reference implementations, test cases, and other
|
|
|
|
documents for Java Specification Request 305: Annotations for Software Defect
|
|
|
|
Detection.
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%description javadoc
|
2018-10-25 08:59:52 +02:00
|
|
|
This package contains the API documentation for %{name}.
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%prep
|
2021-08-26 08:14:58 +02:00
|
|
|
%setup -q
|
2017-05-19 14:18:50 +02:00
|
|
|
cp -a %{SOURCE1} ri/build.xml
|
2018-10-25 08:59:52 +02:00
|
|
|
cp %{SOURCE2} NOTICE-CC-BY
|
|
|
|
dos2unix sampleUses/pom.xml
|
|
|
|
|
|
|
|
# do not build sampleUses module - it causes Javadoc generation to fail
|
|
|
|
%pom_disable_module sampleUses
|
2009-06-03 14:52:18 +02:00
|
|
|
|
2019-10-05 14:52:01 +02:00
|
|
|
for module in ri tcl sampleUses proposedAnnotations; do
|
|
|
|
%pom_remove_parent ${module}
|
|
|
|
done
|
|
|
|
|
2009-06-03 14:52:18 +02:00
|
|
|
%build
|
|
|
|
pushd ri
|
2021-08-26 08:14:58 +02:00
|
|
|
%{ant} jar javadoc
|
2009-06-03 14:52:18 +02:00
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2019-02-06 19:39:44 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_javadir}
|
2021-08-26 08:14:58 +02:00
|
|
|
install -pm 0644 ri/target/jsr305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
2019-03-13 18:58:41 +01:00
|
|
|
ln -s %{name}.jar %{buildroot}%{_javadir}/jsr305.jar
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
# poms
|
2019-02-06 19:39:44 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
|
|
|
install -pm 0644 ri/pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
2021-08-26 09:05:59 +02:00
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
# javadoc
|
2019-02-06 19:39:44 +01:00
|
|
|
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
2021-08-26 08:14:58 +02:00
|
|
|
cp -pr ri/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}
|
2019-02-06 19:39:44 +01:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
2009-06-03 14:52:18 +02:00
|
|
|
|
2019-02-06 19:39:44 +01:00
|
|
|
%files -f .mfiles
|
|
|
|
%license ri/LICENSE NOTICE-CC-BY
|
2009-06-03 14:52:18 +02:00
|
|
|
%{_javadir}/jsr305.jar
|
|
|
|
|
|
|
|
%files javadoc
|
2019-02-06 19:39:44 +01:00
|
|
|
%license ri/LICENSE NOTICE-CC-BY
|
2009-06-03 14:52:18 +02:00
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|