osc copypac from project:Java:jpackage-5.0 package:jsr-305 revision:2
OBS-URL: https://build.opensuse.org/package/show/Java:packages/jsr-305?expand=0&rev=1
This commit is contained in:
commit
21e3cad7bd
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
## Default LFS
|
||||||
|
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.png filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||||
|
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
.osc
|
3
jsr-305-0.1.tar.bz2
Normal file
3
jsr-305-0.1.tar.bz2
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d6ec4fe52382a39ecdd87ecb66e7e10bf433082602153e33017e71fea698a92f
|
||||||
|
size 9009
|
41
jsr-305-ri-build.xml
Normal file
41
jsr-305-ri-build.xml
Normal file
@ -0,0 +1,41 @@
|
|||||||
|
<project name="JSR305-ri" default="build">
|
||||||
|
<target name="build" depends="clean,classes,jar,javadoc"/>
|
||||||
|
<target name="classes">
|
||||||
|
<mkdir dir="src/main/java"/>
|
||||||
|
<javac destdir="src/main/java" source="1.5" debug="on">
|
||||||
|
<src path="src/main/java"/>
|
||||||
|
<classpath>
|
||||||
|
<pathelement location="src/main/java"/>
|
||||||
|
</classpath>
|
||||||
|
</javac>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="jar" depends="classes">
|
||||||
|
<jar destfile="jsr-305-${version}.jar" basedir="src/main/java">
|
||||||
|
</jar>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="javadoc">
|
||||||
|
<mkdir dir="javadoc"/>
|
||||||
|
<javadoc packagenames="javax.annotation.*"
|
||||||
|
sourcepath="src/main/java"
|
||||||
|
defaultexcludes="yes"
|
||||||
|
destdir="javadoc"
|
||||||
|
version="true"
|
||||||
|
use="true"
|
||||||
|
windowtitle="JSR 305: Annotations for Software Defect Detection in Java">
|
||||||
|
<link href="${java.javadoc}"/>
|
||||||
|
</javadoc>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
<target name="clean">
|
||||||
|
<fileset dir="src/main/java" includes="**/*.class"/>
|
||||||
|
<fileset dir="." includes="jsr-305-${version}.jar"/>
|
||||||
|
<delete dir="javadoc"/>
|
||||||
|
</target>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</project>
|
||||||
|
|
||||||
|
<!-- vim:set ts=4: -->
|
152
jsr-305.spec
Normal file
152
jsr-305.spec
Normal file
@ -0,0 +1,152 @@
|
|||||||
|
# Copyright (c) 2000-2008, JPackage Project
|
||||||
|
# All rights reserved.
|
||||||
|
#
|
||||||
|
# Redistribution and use in source and binary forms, with or without
|
||||||
|
# modification, are permitted provided that the following conditions
|
||||||
|
# are met:
|
||||||
|
#
|
||||||
|
# 1. Redistributions of source code must retain the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer.
|
||||||
|
# 2. Redistributions in binary form must reproduce the above copyright
|
||||||
|
# notice, this list of conditions and the following disclaimer in the
|
||||||
|
# documentation and/or other materials provided with the
|
||||||
|
# distribution.
|
||||||
|
# 3. Neither the name of the JPackage Project nor the names of its
|
||||||
|
# contributors may be used to endorse or promote products derived
|
||||||
|
# from this software without specific prior written permission.
|
||||||
|
#
|
||||||
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||||
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
||||||
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
||||||
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
||||||
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||||
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||||
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||||
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||||
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||||
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
#
|
||||||
|
|
||||||
|
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
||||||
|
|
||||||
|
%define section free
|
||||||
|
|
||||||
|
Name: jsr-305
|
||||||
|
Version: 0.1
|
||||||
|
%define jpp_release 1
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Epoch: 0
|
||||||
|
Summary: JSR 305: Annotations for Software Defect Detection in Java
|
||||||
|
# http://groups.google.com/group/jsr-305/browse_thread/thread/8105869a258c8c4f
|
||||||
|
License: BSD
|
||||||
|
Group: Development/Libraries/Java
|
||||||
|
URL: http://code.google.com/p/jsr-305/
|
||||||
|
# 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
|
||||||
|
Source0: http://code.google.com/p/jsr-305/jsr-305-0.1.tar.bz2
|
||||||
|
Source1: jsr-305-ri-build.xml
|
||||||
|
Provides: jsr305 = %{epoch}:%{version}-%{release}
|
||||||
|
Requires: jpackage-utils
|
||||||
|
BuildRequires: ant
|
||||||
|
BuildRequires: java-devel
|
||||||
|
BuildRequires: java-javadoc
|
||||||
|
BuildRequires: jpackage-utils
|
||||||
|
%if %{gcj_support}
|
||||||
|
BuildRequires: java-gcj-compat-devel
|
||||||
|
%else
|
||||||
|
Buildarch: noarch
|
||||||
|
%endif
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
|
||||||
|
%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}
|
||||||
|
Group: Development/Documentation
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
Javadoc for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q
|
||||||
|
%{__cp} -a %{SOURCE1} ri/build.xml
|
||||||
|
|
||||||
|
%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
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
# jars
|
||||||
|
%{__mkdir_p} %{buildroot}%{_javadir}
|
||||||
|
%{__cp} -a ri/jsr-305-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
|
||||||
|
%{__ln_s} %{name}-%{version}.jar %{buildroot}%{_javadir}/jsr305-%{version}.jar
|
||||||
|
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)
|
||||||
|
|
||||||
|
# poms
|
||||||
|
%add_to_maven_depmap org.jsr-305 %{name} %{version} JPP %{name}
|
||||||
|
|
||||||
|
%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
|
||||||
|
%{__cp} -a ri/pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}.pom
|
||||||
|
|
||||||
|
# javadoc
|
||||||
|
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
|
%{__cp} -a ri/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
|
||||||
|
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
%{_bindir}/aot-compile-rpm
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%clean
|
||||||
|
%{__rm} -rf %{buildroot}
|
||||||
|
|
||||||
|
%post
|
||||||
|
%update_maven_depmap
|
||||||
|
%if %{gcj_support}
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db || :
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%update_maven_depmap
|
||||||
|
%if %{gcj_support}
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db || :
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_javadir}/%{name}-%{version}.jar
|
||||||
|
%{_javadir}/%{name}.jar
|
||||||
|
%{_javadir}/jsr305-%{version}.jar
|
||||||
|
%{_javadir}/jsr305.jar
|
||||||
|
%{_datadir}/maven2/poms/*
|
||||||
|
%{_mavendepmapfragdir}/*
|
||||||
|
%if %{gcj_support}
|
||||||
|
%dir %{_libdir}/gcj/%{name}
|
||||||
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/*
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%files javadoc
|
||||||
|
%defattr(0644,root,root,0755)
|
||||||
|
%{_javadocdir}/%{name}-%{version}
|
||||||
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Fri Aug 08 2008 David Walluck <dwalluck@redhat.com> 0:0.1-1
|
||||||
|
- release
|
Loading…
Reference in New Issue
Block a user