[Jpackage-commits] dist/jboss-test/devel .cvsignore, 1.1, 1.2 jboss-test-libraries.patch, NONE, 1.1 jboss-test.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:52:07 CEST 2008


Update of /home/projects/jpackage/cvs/dist/jboss-test/devel
In directory ryu.zarb.org:/tmp/cvs-serv15726/devel

Modified Files:
	.cvsignore sources 
Added Files:
	jboss-test-libraries.patch jboss-test.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jboss-test/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:51:49 -0000	1.1
--- .cvsignore	28 May 2008 18:52:04 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ jboss-test-4.2.2-src.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jboss-test/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:51:49 -0000	1.1
--- sources	28 May 2008 18:52:04 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 0201ad3214e7a32b21e8a8fa68052d35  jboss-test-4.2.2-src.tar.gz

--- NEW FILE: jboss-test-libraries.patch ---
--- thirdparty/libraries.ent.sav0	2007-11-03 13:58:27.000000000 +0100
+++ thirdparty/libraries.ent	2007-11-03 13:59:39.000000000 +0100
@@ -73,6 +73,9 @@
   <path id="apache.ant.classpath">
     <pathelement path="${apache.ant.lib}/ant.jar"/>
   </path>
+  <path id="apache.ant.junit.classpath">
+    <pathelement path="${apache.ant.lib}/ant-junit.jar"/>
+  </path>
 
   <!-- Apache Addressing -->
   <property name="apache.addressing.root" value="${project.thirdparty}/apache-addressing"/>
@@ -258,6 +261,13 @@
   <!-- JBoss -->
   <property name="jboss.external.root" value="${project.thirdparty}/jboss"/>
 
+  <!-- COMMON -->
+  <property name="jboss.common.root" value="${jboss.external.root}/common"/>
+  <property name="jboss.common.lib" value="${jboss.common.root}/lib"/>
+  <path id="jboss.common.classpath">
+    <pathelement path="${jboss.common.lib}/jboss-common.jar"/>
+  </path>
+
   <!-- AOP -->
   <property name="jboss.aop.root" value="${jboss.external.root}/aop"/>
   <property name="jboss.aop.lib" value="${jboss.aop.root}/lib"/>

--- NEW FILE: jboss-test.spec ---
# Copyright (c) 2000-2007, 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

Summary:        JBoss Test
URL:            http://www.jboss.com/
Source0:        jboss-test-4.2.2-src.tar.gz
# mkdir jboss-test-4.2.2-src
# cd jboss-test-4.2.2-src
# svn export http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_2_GA/test
# svn export http://anonsvn.jboss.org/repos/jbossas/tags/JBoss_4_2_2_GA/tools

Patch0:         jboss-test-libraries.patch

Name:           jboss-test
Version:        4.2.2.0
Release:        1jpp
Epoch:          0
License:        LGPL
Group:          Development/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildArch:      noarch
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  ant-junit
BuildRequires:  ant-nodeps
BuildRequires:  jboss-common-bootstrap = 0:1.2.1
BuildRequires:  jboss4-buildmagic-tasks
Requires:       jpackage-utils >= 0:1.7.3
Requires:       jboss-common
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
JBoss test module.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post): /bin/rm /bin/ln
Requires(postun): /bin/rm

%description javadoc
%{summary}

%prep
%setup -q -n jboss-test-4.2.2-src
chmod -R go=u-w *
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

mkdir thirdparty
cp tools/etc/buildmagic/libraries.ent thirdparty

pushd tools/lib
ln -sf $(build-classpath jboss4/jboss4-buildmagic-tasks) buildmagic-tasks.jar
ln -sf $(build-classpath ant)
ln -sf $(build-classpath ant/ant-junit)
popd

%patch0 -b .sav0

mkdir -p thirdparty/jboss/common/lib
pushd thirdparty/jboss/common/lib
ln -sf $(build-classpath jboss-common/jboss-common) .
popd

mkdir -p thirdparty/junit-junit/lib
pushd thirdparty/junit-junit/lib
ln -sf $(build-classpath junit) .
popd

mkdir -p thirdparty/apache-log4j/lib
pushd thirdparty/apache-log4j/lib
ln -sf $(build-classpath log4j) .
popd


%build
export JAVA_HOME=/usr/lib/jvm/java-1.5.0
export OPT_JAR_LIST="ant/ant-nodeps"
cd test
ant all

%install
rm -rf $RPM_BUILD_ROOT

# jar
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/jboss
install -p -m 0644 test/output/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/jboss/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir}/jboss && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr test/output/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%clean
rm -rf $RPM_BUILD_ROOT

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

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

%files
%defattr(-,root,root,-)
%{_javadir}/*

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

%changelog
* Mon Nov 05 2007 Ralph Apel <r.apel at r-apel.de> 0:4.2.2.0-1jpp
- First standalone release




More information about the JPackage-commits mailing list