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
|
|
|
#
|
2017-05-19 14:18:50 +02:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2012-01-26 11:48:20 +01:00
|
|
|
|
2009-06-03 14:52:18 +02:00
|
|
|
Name: jsr-305
|
|
|
|
Version: 0.1
|
2011-12-12 10:09:28 +01:00
|
|
|
Release: 0
|
2009-06-03 14:52:18 +02:00
|
|
|
Summary: JSR 305: Annotations for Software Defect Detection in Java
|
2017-05-19 14:18:50 +02:00
|
|
|
# http://groups.google.com/group/jsr-305/browse_thread/thread/8105869a258c8c4f
|
2011-12-12 10:09:28 +01:00
|
|
|
License: BSD-3-Clause
|
2009-06-03 14:52:18 +02:00
|
|
|
Group: Development/Libraries/Java
|
2010-11-15 23:55:53 +01:00
|
|
|
Url: http://code.google.com/p/jsr-305/
|
2009-06-03 14:52:18 +02:00
|
|
|
# svn export -r20080806 http://jsr-305.googlecode.com/svn/trunk/ jsr-305-0.1
|
|
|
|
# tar cjf jsr-305-0.1.bz2 jsr-305-0.1
|
2012-01-26 11:48:20 +01:00
|
|
|
Source0: jsr-305-0.1.tar.bz2
|
2009-06-03 14:52:18 +02:00
|
|
|
Source1: jsr-305-ri-build.xml
|
2010-11-15 11:09:12 +01:00
|
|
|
# bnc#653551
|
|
|
|
# The URL reffers to New BSD License - used <OWNER> == Bill Pugh, <YEAR> == 2008
|
|
|
|
Source2: license
|
2009-06-03 14:52:18 +02:00
|
|
|
BuildRequires: ant
|
2017-09-19 11:49:43 +02:00
|
|
|
BuildRequires: fdupes
|
2009-06-03 14:52:18 +02:00
|
|
|
BuildRequires: java-devel
|
2017-05-19 14:18:50 +02:00
|
|
|
BuildRequires: javapackages-local
|
2013-09-09 13:58:10 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2017-05-19 14:18:50 +02:00
|
|
|
Provides: jsr305 = %{version}-%{release}
|
2010-11-15 23:55:53 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-05-19 14:18:50 +02:00
|
|
|
BuildArch: noarch
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
This project contains reference implementations, test cases, and other
|
|
|
|
documents under source code control for Java Specification Request 305:
|
|
|
|
Annotations for Software Defect Detection. More information at the Google
|
|
|
|
group: http://groups.google.com/group/jsr-305.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
2010-11-15 11:09:12 +01:00
|
|
|
Group: Documentation/HTML
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%description javadoc
|
2009-06-03 15:01:50 +02:00
|
|
|
This project contains reference implementations, test cases, and other
|
|
|
|
documents under source code control for Java Specification Request 305:
|
|
|
|
Annotations for Software Defect Detection. More information at the Google
|
|
|
|
group: http://groups.google.com/group/jsr-305.
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2017-05-19 14:18:50 +02:00
|
|
|
cp -a %{SOURCE1} ri/build.xml
|
|
|
|
cp %{SOURCE2} .
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export OPT_JAR_LIST=:
|
|
|
|
export CLASSPATH=
|
|
|
|
pushd ri
|
2017-09-19 11:49:43 +02:00
|
|
|
%{ant} -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
|
2009-06-03 14:52:18 +02:00
|
|
|
-Dversion=%{version} -Djava.javadoc=%{_javadocdir}/java
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
2017-05-19 14:18:50 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadir}
|
|
|
|
cp -a ri/jsr-305-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
|
|
|
|
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/jsr305.jar
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
# poms
|
2017-05-19 14:18:50 +02:00
|
|
|
mkdir -p %{buildroot}%{_mavenpomdir}
|
|
|
|
cp -a ri/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
2013-09-10 13:19:59 +02:00
|
|
|
%add_maven_depmap
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
# javadoc
|
2017-05-19 14:18:50 +02:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -a ri/javadoc/* %{buildroot}%{_javadocdir}/%{name}
|
2017-09-19 11:49:43 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
2010-11-15 11:09:12 +01:00
|
|
|
%doc license
|
2009-06-03 14:52:18 +02:00
|
|
|
%{_javadir}/%{name}.jar
|
|
|
|
%{_javadir}/jsr305.jar
|
2013-09-10 13:19:59 +02:00
|
|
|
%{_mavenpomdir}/*
|
2015-03-18 11:07:43 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml*
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|