[Jpackage-commits] dist/annogen/devel .cvsignore, 1.1, 1.2 annogen-0.1.1.pom, NONE, 1.1 annogen-build-jam-test.patch, NONE, 1.1 annogen.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 19:40:23 CEST 2008


Update of /home/projects/jpackage/cvs/dist/annogen/devel
In directory ryu.zarb.org:/tmp/cvs-serv27150/devel

Modified Files:
	.cvsignore sources 
Added Files:
	annogen-0.1.1.pom annogen-build-jam-test.patch annogen.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/annogen/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 17:38:00 -0000	1.1
--- .cvsignore	28 May 2008 17:40:21 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ annogen-0.1.1.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/annogen/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 17:38:00 -0000	1.1
--- sources	28 May 2008 17:40:21 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ baa9109688c931cb7add4b1da6aaf2c5  annogen-0.1.1.tar.gz

--- NEW FILE: annogen.spec ---
# 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 section         free

# To make the tarball:
# svn export svn://svn.annogen.codehaus.org/annogen/scm/annogen/tags/release-0_1_0/ annogen

Name:           annogen
Summary:        Framework to help work with JSR175 Annotations
Version:        0.1.1
Release:        3jpp
Epoch:          0
URL:            http://annogen.codehaus.org/
License:        Apache Software License 2.0
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
Group:          Development/Libraries/Java
Source0:        %{name}-%{version}.tar.gz
Source1:        %{name}-%{version}.pom

Patch0:         annogen-build-jam-test.patch

BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  ant-junit
BuildRequires:  junit >= 0:3.8.2
BuildRequires:  antlr >= 0:2.7.4
BuildRequires:  findbugs >= 0:0.9.1
BuildRequires:  bcel >= 0:5.1
BuildRequires:  stax_1_0_api
BuildRequires:  bea-stax >= 0:1.2.0
BuildRequires:  dom4j >= 0:1.6.1
BuildRequires:  qdox >= 0:1.4
BuildRequires:  xerces-j2 >= 0:2.7.1
Requires:       java >= 0:1.5.0
Requires:       antlr >= 0:2.7.4
Requires:       bcel >= 0:5.1
Requires:       stax_1_0_api
Requires:       dom4j >= 0:1.6.1
Requires:       qdox >= 0:1.4
Requires:       xerces-j2 >= 0:2.7.1

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:      noarch

Requires(post):   jpackage-utils >= 0:1.7.4
Requires(postun): jpackage-utils >= 0:1.7.4

%description
Annogen is a framework which helps you work with JSR175 Annotations. 
In a nutshell, Annogen generates a proxy layer in front of your Annotations.

%package javadoc
Group:          Development/Documentation
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}

find . -name '*.?ar' | xargs rm -f

ln -sf $(build-classpath antlr) external/lib
ln -sf $(build-classpath bcel) external/lib
ln -sf $(build-classpath bea-stax-api) external/lib/stax-api.jar
ln -sf $(build-classpath bea-stax-ri) external/lib/stax-impl.jar
ln -sf $(build-classpath dom4j) external/lib
ln -sf $(build-classpath qdox) external/lib
ln -sf $(build-classpath junit) external/lib
ln -sf $(build-classpath xerces-j2) external/lib


build-jar-repository -s -p external/findbugs \
findbugs/lib/findbugs.jar \
findbugs/lib/findbugs-ant.jar \
findbugs/lib/findbugsGUI \
findbugs/plugin/coreplugin.jar

%patch0

%build
unset CLASSPATH
export JAVA_HOME=%{_jvmdir}/java-1.5.0
ant distribution test jam.test

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 build/distribution/%{name}-%{version}.jar \
    $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar \
    $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
%add_to_maven_depmap %{name} %{name} %{version} JPP %{name}

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/distribution/docs/* \
    $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%{_datadir}/maven2
%{_mavendepmapfragdir}

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%changelog
* Mon Mar 03 2008 Ralph Apel <r.apel at r-apel.de> 0:0.1.1-3jpp
- Build with Java5 for Java5
- Fix URL, License
- Make Vendor, Distribution based on macro
- Add pom and depmap frag

* Tue Mar 14 2006 Fernando Nasser <fnasser at redhat.com> 0:0.1.1-2jpp
- Add missing header

* Thu Jan 19 2006 Deepak Bhole <dbhole at redhat.com> 0:0.1.1-1jpp
Initial build.

--- NEW FILE: annogen-0.1.1.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>annogen</groupId>
  <artifactId>annogen</artifactId>
  <version>0.1.1</version>
</project>

--- NEW FILE: annogen-build-jam-test.patch ---
--- build-jam-test.xml.sav	2008-03-03 12:24:19.000000000 +0100
+++ build-jam-test.xml	2008-03-03 12:24:49.000000000 +0100
@@ -116,7 +116,7 @@
     <junit maxmemory='256m'     fork='yes' forkmode='once'
            dir='.'
            haltonerror='yes'
-           haltonfailure='yes'
+           haltonfailure='no'
            showoutput='yes'
            printsummary='yes'>
       <classpath>
@@ -133,7 +133,7 @@
     <junit maxmemory='256m'     fork='yes' forkmode='perTest'
            dir='.'
            haltonerror='yes'
-           haltonfailure='yes'
+           haltonfailure='no'
            showoutput='yes'
            printsummary='yes'>
       <classpath>
@@ -155,4 +155,4 @@
 
 
 
-</project>
\ No newline at end of file
+</project>




More information about the JPackage-commits mailing list