use external jar binaries [release 2.0.7-4mamba;Tue Jan 07 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 00:10:12 +01:00
parent cf7347fa0c
commit c2c9c9ac0c
2 changed files with 12 additions and 132 deletions

View File

@ -1,9 +1,4 @@
# java-retroweaver
Retroweaver is a tool, which converts Java 5 (or 6) compliant
class files into Java 1.x compliant class files. The jar file
retroweaver.jar contains both the class processor (which may
be used at compile time) and the runtime classes. Additionally
there is the jar file retroweaver-rt.jar (which contains the
runtime classes only).
Retroweaver is a tool, which converts Java 5 (or 6) compliant class files into Java 1.x compliant class files. The jar file retroweaver.jar contains both the class processor (which may be used at compile time) and the runtime classes. Additionally there is the jar file retroweaver-rt.jar (which contains the runtime classes only).

View File

@ -1,136 +1,34 @@
Name: java-retroweaver
Version: 2.0.7
Release: 3mamba
Release: 4mamba
Summary: a Java bytecode weaver
Group: Development/Libraries/Java
Vendor: openmamba
Distribution: openmamba
Packager: gil <puntogil@libero.it>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://retroweaver.sourceforge.net/
# svn checkout https://svn.sourceforge.net/svnroot/retroweaver/trunk/retroweaver retroweaver-2.0.7
Source0: retroweaver-%{version}-src-svn.tar.gz
Source: https://downloads.sourceforge.net/project/retroweaver/retroweaver/%{version}/retroweaver-%{version}.zip
Patch0: java-retroweaver-2.0.7-docs.patch
License: BSD
BuildRequires: apache-ant
BuildRequires: apache-ant-nodeps
BuildRequires: apache-ant-junit
BuildRequires: java-backport-util-concurrent
BuildRequires: java-emma
BuildRequires: java-junit3
BuildRequires: java-pmd
## AUTOBUILDREQ-BEGIN
## AUTOBUILDREQ-END
BuildRequires: jpackage-utils
BuildRequires: objectweb-asm = 3.2
BuildRequires: sun-java-4
BuildRequires: sun-java-5
BuildRequires: sun-java
Requires: java-backport-util-concurrent
Requires: objectweb-asm = 3.2
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Retroweaver is a tool, which converts Java 5 (or 6) compliant
class files into Java 1.x compliant class files. The jar file
retroweaver.jar contains both the class processor (which may
be used at compile time) and the runtime classes. Additionally
there is the jar file retroweaver-rt.jar (which contains the
runtime classes only).
%package javadoc
Group: Documentation
Summary: Javadoc for %{name}
%description javadoc
A Java bytecode weaver that enables you to take advantage of the new
1.5 language features in your source code, while still retaining
compatibility with 1.4 virtual machines
This package contains Javadoc for %{name}.
%package manual
Group: Documentation
Summary: Documentation for %{name}.
%description manual
A Java bytecode weaver that enables you to take advantage of the new
1.5 language features in your source code, while still retaining
compatibility with 1.4 virtual machines
This package contains documentation for %{name}.
Retroweaver is a tool, which converts Java 5 (or 6) compliant class files into Java 1.x compliant class files. The jar file retroweaver.jar contains both the class processor (which may be used at compile time) and the runtime classes. Additionally there is the jar file retroweaver-rt.jar (which contains the runtime classes only).
%prep
%setup -q -n retroweaver-%{version}
#-D -T
#:<< __EOF
rm -rf build.Linux.properties
rm -rf build.properties
cat > build.properties << __GIL
jre14.home=/usr/lib/jvm/java-1.4.2-sun/jre
jre14.jvm=/usr/lib/jvm/java-1.4.2-sun/jre/bin/java
jre14.runtime=/usr/lib/jvm/java-1.4.2-sun/jre/lib/rt.jar
jre15.home=/usr/lib/jvm/java-1.5.0-sun/jre
jre15.runtime=/usr/lib/jvm/java-1.5.0-sun/jre/lib/rt.jar
jre15.jvm=/usr/lib/jvm/java-1.5.0-sun/jre/bin/java
jdk16.home=/usr/lib/jvm/jdk-sun
jdk16.rmic=/usr/lib/jvm/jdk-sun/bin/rmic
jre16.runtime=//usr/lib/jvm/jre-sun/lib/rt.jar
jre16.home=/usr/lib/jvm/jre-sun
jre16.jvm=/usr/lib/jvm/jre-sun/bin/java
emma.home=%{_javadir}
pmd.home=%{_datadir}/pmd-4.2.5
ant.jar=%{_javadir}/ant-1.7.1.jar
__GIL
cp -pr build.properties build.Linux.properties
for j in $(find . -name "*.jar"); do
mv $j $j.no
done
pushd lib
ln -sf $(build-classpath objectweb-asm/asm-util) asm-util-3.2.jar
ln -sf $(build-classpath objectweb-asm/asm-commons) asm-commons-3.2.jar
ln -sf $(build-classpath objectweb-asm/asm) asm-3.2.jar
ln -sf $(build-classpath backport-util-concurrent) .
ln -sf $(build-classpath junit-3.8.2) junit.jar
ln -sf $(build-classpath ant-1.7.1) .
popd
%patch0
%build
export JAVA_HOME=/usr/lib/jvm/jdk-sun
export CLASSPATH=$(build-classpath junit-3.8.2 commons-lang24 emma \
emma_ant pmd ant/ant-junit ant/ant-nodeps objectweb-asm):$JAVA_HOME/jre/lib/rt.jar
ant \
-Dversion=%{version} \
dist docs
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
mkdir -p %{buildroot}%{_javadir}
mkdir -p %{buildroot}%{_datadir}/maven2/poms
install -pm 644 target/release/retroweaver-%{version}.jar \
%{buildroot}%{_javadir}/retroweaver-%{version}.jar
install -pm 644 target/release/retroweaver-all-%{version}.jar \
%{buildroot}%{_javadir}/retroweaver-all-%{version}.jar
install -pm 644 target/release/retroweaver-rt-%{version}.jar \
%{buildroot}%{_javadir}/retroweaver-rt-%{version}.jar
install -pm 644 target/release/retroweaver-tests-%{version}.jar \
%{buildroot}%{_javadir}/retroweaver-tests-%{version}.jar
%add_to_maven_depmap net.sourceforge.retroweaver retroweaver %{version} JPP retroweaver
install -pm 644 maven/retroweaver.pom %{buildroot}%{_datadir}/maven2/poms/JPP.retroweaver.pom
%add_to_maven_depmap net.sourceforge.retroweaver retroweaver-rt %{version} JPP retroweaver-rt
install -pm 644 maven/retroweaver-rt.pom %{buildroot}%{_datadir}/maven2/poms/JPP.retroweaver-rt.pom
install -d -m0755 %{buildroot}%{_javadir}
cp release/*.jar %{buildroot}%{_javadir}
(
cd %{buildroot}%{_javadir}
@ -139,10 +37,6 @@ install -pm 644 maven/retroweaver-rt.pom %{buildroot}%{_datadir}/maven2/poms/JPP
done
)
mkdir -p %{buildroot}%{_javadocdir}/retroweaver-%{version}
cp -pr target/api/* %{buildroot}%{_javadocdir}/retroweaver-%{version}
ln -s retroweaver-%{version} %{buildroot}%{_javadocdir}/retroweaver
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -156,20 +50,11 @@ ln -s retroweaver-%{version} %{buildroot}%{_javadocdir}/retroweaver
%{_javadir}/retroweaver-rt.jar
%{_javadir}/retroweaver-tests-%{version}.jar
%{_javadir}/retroweaver-tests.jar
%{_datadir}/maven2/poms
%{_mavendepmapfragdir}
%doc ChangeLog.txt
%files javadoc
%defattr(-,root,root)
%{_javadocdir}/retroweaver-%{version}
%{_javadocdir}/retroweaver
%files manual
%defattr(-,root,root)
%doc docs/*
%changelog
* Tue Jan 07 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.7-4mamba
- use external jar binaries
* Fri Nov 26 2010 gil <puntogil@libero.it> 2.0.7-3mamba
- rebuilt devel