[Jpackage-commits] dist/jbossretro/devel .cvsignore, 1.1, 1.2 jbossretro.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 20:50:13 CEST 2008


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

Modified Files:
	.cvsignore sources 
Added Files:
	jbossretro.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jbossretro/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 18:49:48 -0000	1.1
--- .cvsignore	28 May 2008 18:50:11 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ jbossretro-1.0.0.GA-src.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/jbossretro/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 18:49:48 -0000	1.1
--- sources	28 May 2008 18:50:11 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 0a3ce20bba17fbb7f791b754e6c18773  jbossretro-1.0.0.GA-src.tar.gz

--- NEW FILE: jbossretro.spec ---
# Copyright (c) 2000-2005, 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 Retro
URL:		http://wiki.jboss.org/wiki/Wiki.jsp?page=JBossRetro
Source0:	jbossretro-1.0.0.GA-src.tar.gz
# cvs -d:pserver:anonymous at anoncvs.forge.jboss.com:/cvsroot/jboss export -r JBossRetro_1_0_0_GA jbossretro

Name:		jbossretro
Version:	1.0.0
Release:	1jpp
Epoch:		0
License:	LGPL
Group:		Development/Java
Vendor:		JPackage Project
Distribution:	JPackage
BuildArch:	noarch
BuildRequires:	jpackage-utils >= 0:1.6
BuildRequires:	ant >= 0:1.6
BuildRequires:	java-devel >= 0:1.5.0
BuildRequires:	java-devel < 0:1.5.0
BuildRequires:	jboss4-buildmagic-tasks
BuildRequires:	backport-util-concurrent >= 0:2.1
BuildRequires:	javassist
BuildRequires:	junit
Requires:	jpackage-utils >= 0:1.6
Requires:	backport-util-concurrent >= 0:2.1
Requires:	javassist
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
We want to develop software that can take of advantage of JDK5 
features while still being able to run the software in JDK1.4
The Solution
* Weave the classes such that the bytecode is 48.0 version compatible
* Replace invocations to JDK5 api with code that does the same thing.


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

%description javadoc
%{summary}
%endif

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

#mkdir -p tools/lib
#pushd tools/lib
#ln -sf $(build-classpath jboss4/jboss4-buildmagic-tasks) buildmagic-tasks.jar
#popd

pushd thirdparty
#BUILD/jbossretro-1.0.0.GA-src/thirdparty/ant/lib:
pushd ant/lib
ln -sf $(build-classpath ant) .
popd

#BUILD/jbossretro-1.0.0.GA-src/thirdparty/concurrent/lib:
pushd concurrent/lib
ln -sf $(build-classpath backport-util-concurrent) jboss-backport-concurrent.jar
popd

#BUILD/jbossretro-1.0.0.GA-src/thirdparty/javassist/lib:
pushd javassist/lib
ln -sf $(build-classpath javassist) .
popd

#BUILD/jbossretro-1.0.0.GA-src/thirdparty/junit/lib:
pushd junit/lib
ln -sf $(build-classpath junit) .
popd

popd

%build

export JAVA_HOME=/usr/lib/jvm/java-1.5.0
ant \
	-Djdk14.home=/usr/lib/jvm/java-1.4.2 \
	-Djdk15.home=/usr/lib/jvm/java-1.5.0 \
        dist
export JAVA_HOME=/usr/lib/jvm/java-1.4.2
ant \
	-Djdk14.home=/usr/lib/jvm/java-1.4.2 \
	-Djdk15.home=/usr/lib/jvm/java-1.5.0 \
        tests


%install
rm -rf $RPM_BUILD_ROOT

# jar
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}

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

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

%clean
rm -rf $RPM_BUILD_ROOT

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

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

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

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

%changelog
* Fri Jun 23 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0.0-1jpp
- First JPP-5.0 release




More information about the JPackage-commits mailing list