From dd9cdd64b92baf5573668e544aee825c671e667f Mon Sep 17 00:00:00 2001 From: cvsdist Date: Sep 09 2004 03:28:53 +0000 Subject: auto-import bcel-5.1-1jpp_2rh from bcel-5.1-1jpp_2rh.src.rpm --- diff --git a/.cvsignore b/.cvsignore index a5a51ca..9ae5e9c 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -bcel-5.0-src.tar.gz +bcel-5.1-src.tar.gz diff --git a/bcel.spec b/bcel.spec index b7f29cd..88c2847 100644 --- a/bcel.spec +++ b/bcel.spec @@ -1,149 +1,164 @@ -Summary: Bytecode Engineering Library -Name: bcel -Version: 5.0 -Release: 14 -URL: http://jakarta.apache.org/bcel/ -Source: %{name}-%{version}-src.tar.gz -Source1: katana.omissions -Patch3: %{name}-jdk14.patch -License: Apache Software License -Group: System Environment/Libraries -BuildRoot: %{_tmppath}/%{name}-%{version}-root -BuildPrereq: katana-build -BuildPrereq: bootstrap-ant -BuildPrereq: jakarta-regexp >= 1.2-16 -Prereq: katana -Requires: libgcj >= 3.4.0 -Requires: jakarta-regexp >= 1.2-16 -ExcludeArch: ppc64 ia64 +%define name bcel +%define version 5.1 +%define release 1jpp_2rh +%define section free + +Name: %{name} +Version: %{version} +Release: %{release} +Epoch: 0 +Summary: Byte Code Engineering Library +License: Apache Software License +Source0: http://jakarta.apache.org/builds/jakarta-bcel/release/v5.1/bcel-5.1-src.tar.gz +URL: http://jakarta.apache.org/%{name}/ +Group: Development/Libraries/Java +#Vendor: JPackage Project +#Distribution: JPackage +Requires: regexp +BuildRequires: ant +BuildRequires: regexp +BuildRequires: jpackage-utils >= 0:1.5 +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description The Byte Code Engineering Library (formerly known as JavaClass) is -intended to give users a convenient possibility to analyze, create, -and manipulate (binary) Java class files (those ending with -.class). Classes are represented by objects which contain all the -symbolic information of the given class: methods, fields and byte code -instructions, in particular. - -Such objects can be read from an existing file, be transformed by a -program (e.g. a class loader at run-time) and dumped to a file -again. An even more interesting application is the creation of classes -from scratch at run-time. The Byte Code Engineering Library (BCEL) may -be also useful if you want to learn about the Java Virtual Machine -(JVM) and the format of Java .class files. - -%package devel -Summary: CNI headers for developing BCEL applications -Group: Development/Libraries -Requires: bcel = %{version}-%{release} - -%description devel -The bcel-devel package contains the headers required to develop -Cygnus Native Interface (CNI) extensions that use BCEL. +intended to give users a convenient possibility to analyze, create, and +manipulate (binary) Java class files (those ending with .class). Classes +are represented by objects which contain all the symbolic information of +the given class: methods, fields and byte code instructions, in +particular. Such objects can be read from an existing file, be +transformed by a program (e.g. a class loader at run-time) and dumped to +a file again. An even more interesting application is the creation of +classes from scratch at run-time. The Byte Code Engineering Library +(BCEL) may be also useful if you want to learn about the Java Virtual +Machine (JVM) and the format of Java .class files. BCEL is already +being used successfully in several projects such as compilers, +optimizers, obsfuscators and analysis tools, the most popular probably +being the Xalan XSLT processor at Apache. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Documentation + +%description javadoc +Javadoc for %{name}. + +%if 0 +%package manual +Summary: Manual for %{name} +Group: Development/Libraries/Java + +%description manual +Documentation for %{name}. +%endif %prep %setup -q -%patch3 -p1 -b .jdk14 -katana prep +# remove all binary libs +find . -name "*.jar" -exec rm -f {} \; -%build -CLASSPATH=%{_datadir}/java/jakarta-regexp.jar bootstrap-ant - -mv bin/%{name}.jar katana/%{name}-%{version}.jar -katana build +# very broken build +perl -p -i -e 's| depends=\"examples\"||g;' build.xml +touch manifest.txt -mv src/java/org katana +%build +export CLASSPATH=%(build-classpath regexp) +ant -Dbuild.dest=./build -Dbuild.dir=./build -Dname=%{name} compile +ant -Dbuild.dest=./build -Dbuild.dir=./build -Dname=%{name} jar +ant -Dbuild.dest=./build -Dbuild.dir=./build -Dname=%{name} apidocs %install -katana install - -%post -%{_sbindir}/javaconfig \ - %{_libdir}/lib-org-apache-bcel.so \ - %{_datadir}/java/bcel.jar - -%postun -%{_sbindir}/javaconfig \ - %{_libdir}/lib-org-apache-bcel.so \ - %{_datadir}/java/bcel.jar +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir} +install -m 644 build/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && 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 docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +rm -rf docs/api %clean -katana clean - -%files -%defattr(-,root,root) -%doc LICENSE README docs -%{_libdir}/*.so -%{_datadir}/java/*.jar -%{_datadir}/katana/*.cp - -%files devel -%defattr(-,root,root) -%{_includedir}/org/apache/bcel - -%changelog -* Fri May 28 2004 Gary Benson 5.0-14 -- Build with katana. +rm -rf $RPM_BUILD_ROOT -* Tue May 4 2004 Gary Benson 5.0-13 -- Rebuild with new compiler. +%pre +rm -f %{_javadir}/bcel.jar -* Thu Apr 15 2004 Gary Benson 5.0-12 -- Rebuild with new compiler (#120844). +%post javadoc +rm -f %{_javadocdir}/%{name} +ln -s %{name}-%{version} %{_javadocdir}/%{name} -* Tue Mar 2 2004 Elliot Lee -- Rebuilt. +%postun javadoc +if [ "$1" = "0" ]; then + rm -f %{_javadocdir}/%{name} +fi -* Fri Feb 13 2004 Gary Benson 5.0-11 -- Rebuild for Fedora. +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt +%{_javadir}/* -* Mon Dec 15 2003 Gary Benson -- Apply hammer multilib fix to all multilib archs. -- Correctly link local libraries on hammer. +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} -* Wed Dec 10 2003 Gary Benson -- Upgraded to fluorinated RHUG tarball. +%if 0 +%files manual +%defattr(0644,root,root,0755) +%doc docs/* +%endif -* Fri Sep 5 2003 Gary Benson 5.0-10 -- Ensure we have a working javaconfig. +# ----------------------------------------------------------------------------- -* Thu Sep 4 2003 Gary Benson -- Remove workarounds used to support alpha releases. +%changelog +* Fri Mar 26 2004 Frank Ch. Eigler 0:5.1-1jpp_2rh +- add RHUG upgrade cleanup -* Fri Aug 15 2003 Gary Benson 5.0-9 -- Rebuild with new compiler. +* Thu Mar 4 2004 Frank Ch. Eigler 0:5.1-1jpp_1rh +- RH vacuuming -* Thu Aug 7 2003 Gary Benson 5.0-8 -- Rebuild with new compiler. +* Sun May 11 2003 David Walluck 0:5.1-1jpp +- 5.1 +- update for JPackage 1.5 -* Fri Jul 25 2003 Gary Benson 5.0-7 -- Clarify the -devel subpackage's summary and description. -- Remove unnecessary -devel build-time dependencies (#99077). +* Mon Mar 24 2003 Nicolas Mailhot - 5.0-6jpp +- For jpackage-utils 1.5 -* Mon Jun 30 2003 Gary Benson 5.0-6 -- Rebuild with new compiler and enable ia64 build. +* Tue Feb 25 2003 Ville Skytt� - 5.0-5jpp +- Rebuild to get docdir right on modern distros. +- Fix License tag and source file perms. +- Built with IBM's 1.3.1SR3 (doesn't build with Sun's 1.4.1_01). -* Fri Jun 6 2003 Gary Benson 5.0-5 -- Rebuild with new compiler. +* Tue Jun 11 2002 Henri Gomez 5.0-4jpp +- use sed instead of bash 2.x extension in link area to make spec compatible + with distro using bash 1.1x -* Thu Jun 5 2003 Gary Benson -- Add build time dependency on C++ compiler. +* Tue May 07 2002 Guillaume Rousse 5.0-3jpp +- vendor, distribution, group tags -* Thu May 29 2003 Gary Benson 5.0-4 -- Rebuild with new compiler. +* Wed Jan 23 2002 Guillaume Rousse 5.0-2jpp +- section macro +- no dependencies for manual and javadoc package -* Fri May 23 2003 Gary Benson 5.0-3 -- Move unversioned library symlink into main package. +* Tue Jan 22 2002 Henri Gomez 5.0-1jpp +- bcel is now a jakarta apache project +- dependency on jakarta-regexp instead of gnu.regexp +- created manual package -* Sat May 3 2003 Gary Benson 5.0-2 -- Rebuild with new compiler. +* Sat Dec 8 2001 Guillaume Rousse 4.4.1-2jpp +- javadoc into javadoc package +- Requires: and BuildRequires: gnu.regexp -* Fri Apr 26 2003 Gary Benson 5.0-1 -- Initial Red Hat Linux build. +* Wed Nov 21 2001 Christian Zoffoli 4.4.1-1jpp +- removed packager tag +- new jpp extension +- 4.4.1 -* Tue Nov 26 2002 Gary Benson -- Upgraded to 5.0. -- Added dependencies on gcc-java and libgcj. +* Thu Oct 11 2001 Guillaume Rousse 4.4.0-2jpp +- first unified release +- used lower case for name +- used original tarball +- s/jPackage/JPackage -* Sat Mar 2 2002 Anthony Green -- Initial RHUG build. +* Mon Aug 27 2001 Guillaume Rousse 4.4.0-1mdk +- first Mandrake release diff --git a/sources b/sources index d413dd8..548438f 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -90d777a81c4e8cdb24dc4487c2553d46 bcel-5.0-src.tar.gz +c9ebfa7373eb4416e590205fd0005039 bcel-5.1-src.tar.gz