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
|
|
|
#
|
2014-06-27 16:00:23 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products 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
|
|
|
%define section free
|
|
|
|
|
|
|
|
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
|
2011-12-12 10:09:28 +01:00
|
|
|
License: BSD-3-Clause
|
2009-06-03 14:52:18 +02:00
|
|
|
Group: Development/Libraries/Java
|
2011-12-12 10:09:28 +01:00
|
|
|
# http://groups.google.com/group/jsr-305/browse_thread/thread/8105869a258c8c4f
|
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 15:01:50 +02:00
|
|
|
Provides: jsr305 = %{version}-%{release}
|
2013-09-09 13:58:10 +02:00
|
|
|
Requires: javapackages-tools
|
2009-06-03 14:52:18 +02:00
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: java-devel
|
2013-09-09 13:58:10 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2010-11-15 23:55:53 +01:00
|
|
|
BuildArch: noarch
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
|
|
|
%{__cp} -a %{SOURCE1} ri/build.xml
|
2010-11-15 11:09:12 +01:00
|
|
|
%{__cp} %{SOURCE2} .
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
export OPT_JAR_LIST=:
|
|
|
|
export CLASSPATH=
|
|
|
|
pushd ri
|
|
|
|
%{ant} -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
|
|
|
|
-Dversion=%{version} -Djava.javadoc=%{_javadocdir}/java
|
|
|
|
popd
|
|
|
|
|
|
|
|
%install
|
|
|
|
# jars
|
|
|
|
%{__mkdir_p} %{buildroot}%{_javadir}
|
2013-09-10 13:19:59 +02:00
|
|
|
%{__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
|
2013-09-10 13:19:59 +02:00
|
|
|
%{__mkdir_p} %{buildroot}%{_mavenpomdir}
|
|
|
|
%{__cp} -a ri/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_maven_depmap
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
# javadoc
|
2013-09-10 13:19:59 +02:00
|
|
|
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
%{__cp} -a ri/javadoc/* %{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}/*
|
2009-06-03 15:01:50 +02:00
|
|
|
%config %{_mavendepmapfragdir}/*
|
2009-06-03 14:52:18 +02:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|