auto-import bcel-5.1-1jpp_2rh from bcel-5.1-1jpp_2rh.src.rpm

This commit is contained in:
cvsdist 2004-09-09 03:28:53 +00:00
parent 85575573c0
commit dd9cdd64b9
3 changed files with 134 additions and 119 deletions

View File

@ -1 +1 @@
bcel-5.0-src.tar.gz
bcel-5.1-src.tar.gz

249
bcel.spec
View File

@ -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.
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.
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 javadoc
Summary: Javadoc for %{name}
Group: Development/Documentation
%package devel
Summary: CNI headers for developing BCEL applications
Group: Development/Libraries
Requires: bcel = %{version}-%{release}
%description javadoc
Javadoc for %{name}.
%description devel
The bcel-devel package contains the headers required to develop
Cygnus Native Interface (CNI) extensions that use BCEL.
%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 {} \;
# very broken build
perl -p -i -e 's| depends=\"examples\"||g;' build.xml
touch manifest.txt
%build
CLASSPATH=%{_datadir}/java/jakarta-regexp.jar bootstrap-ant
mv bin/%{name}.jar katana/%{name}-%{version}.jar
katana build
mv src/java/org katana
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
rm -rf $RPM_BUILD_ROOT
%pre
rm -f %{_javadir}/bcel.jar
%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}
%postun javadoc
if [ "$1" = "0" ]; then
rm -f %{_javadocdir}/%{name}
fi
%files
%defattr(-,root,root)
%doc LICENSE README docs
%{_libdir}/*.so
%{_datadir}/java/*.jar
%{_datadir}/katana/*.cp
%defattr(0644,root,root,0755)
%doc LICENSE.txt
%{_javadir}/*
%files devel
%defattr(-,root,root)
%{_includedir}/org/apache/bcel
%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%if 0
%files manual
%defattr(0644,root,root,0755)
%doc docs/*
%endif
# -----------------------------------------------------------------------------
%changelog
* Fri May 28 2004 Gary Benson <gbenson@redhat.com> 5.0-14
- Build with katana.
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:5.1-1jpp_2rh
- add RHUG upgrade cleanup
* Tue May 4 2004 Gary Benson <gbenson@redhat.com> 5.0-13
- Rebuild with new compiler.
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:5.1-1jpp_1rh
- RH vacuuming
* Thu Apr 15 2004 Gary Benson <gbenson@redhat.com> 5.0-12
- Rebuild with new compiler (#120844).
* Sun May 11 2003 David Walluck <david@anti-microsoft.org> 0:5.1-1jpp
- 5.1
- update for JPackage 1.5
* Tue Mar 2 2004 Elliot Lee <sopwith@redhat.com>
- Rebuilt.
* Mon Mar 24 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> - 5.0-6jpp
- For jpackage-utils 1.5
* Fri Feb 13 2004 Gary Benson <gbenson@redhat.com> 5.0-11
- Rebuild for Fedora.
* Tue Feb 25 2003 Ville Skyttä <ville.skytta at iki.fi> - 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).
* Mon Dec 15 2003 Gary Benson <gbenson@redhat.com>
- Apply hammer multilib fix to all multilib archs.
- Correctly link local libraries on hammer.
* Tue Jun 11 2002 Henri Gomez <hgomez@slib.fr> 5.0-4jpp
- use sed instead of bash 2.x extension in link area to make spec compatible
with distro using bash 1.1x
* Wed Dec 10 2003 Gary Benson <gbenson@redhat.com>
- Upgraded to fluorinated RHUG tarball.
* Tue May 07 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 5.0-3jpp
- vendor, distribution, group tags
* Fri Sep 5 2003 Gary Benson <gbenson@redhat.com> 5.0-10
- Ensure we have a working javaconfig.
* Wed Jan 23 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 5.0-2jpp
- section macro
- no dependencies for manual and javadoc package
* Thu Sep 4 2003 Gary Benson <gbenson@redhat.com>
- Remove workarounds used to support alpha releases.
* Tue Jan 22 2002 Henri Gomez <hgomez@slib.fr> 5.0-1jpp
- bcel is now a jakarta apache project
- dependency on jakarta-regexp instead of gnu.regexp
- created manual package
* Fri Aug 15 2003 Gary Benson <gbenson@redhat.com> 5.0-9
- Rebuild with new compiler.
* Sat Dec 8 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.4.1-2jpp
- javadoc into javadoc package
- Requires: and BuildRequires: gnu.regexp
* Thu Aug 7 2003 Gary Benson <gbenson@redhat.com> 5.0-8
- Rebuild with new compiler.
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 4.4.1-1jpp
- removed packager tag
- new jpp extension
- 4.4.1
* Fri Jul 25 2003 Gary Benson <gbenson@redhat.com> 5.0-7
- Clarify the -devel subpackage's summary and description.
- Remove unnecessary -devel build-time dependencies (#99077).
* Thu Oct 11 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.4.0-2jpp
- first unified release
- used lower case for name
- used original tarball
- s/jPackage/JPackage
* Mon Jun 30 2003 Gary Benson <gbenson@redhat.com> 5.0-6
- Rebuild with new compiler and enable ia64 build.
* Fri Jun 6 2003 Gary Benson <gbenson@redhat.com> 5.0-5
- Rebuild with new compiler.
* Thu Jun 5 2003 Gary Benson <gbenson@redhat.com>
- Add build time dependency on C++ compiler.
* Thu May 29 2003 Gary Benson <gbenson@redhat.com> 5.0-4
- Rebuild with new compiler.
* Fri May 23 2003 Gary Benson <gbenson@redhat.com> 5.0-3
- Move unversioned library symlink into main package.
* Sat May 3 2003 Gary Benson <gbenson@redhat.com> 5.0-2
- Rebuild with new compiler.
* Fri Apr 26 2003 Gary Benson <gbenson@redhat.com> 5.0-1
- Initial Red Hat Linux build.
* Tue Nov 26 2002 Gary Benson <gbenson@redhat.com>
- Upgraded to 5.0.
- Added dependencies on gcc-java and libgcj.
* Sat Mar 2 2002 Anthony Green <green@redhat.com>
- Initial RHUG build.
* Mon Aug 27 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 4.4.0-1mdk
- first Mandrake release

View File

@ -1 +1 @@
90d777a81c4e8cdb24dc4487c2553d46 bcel-5.0-src.tar.gz
c9ebfa7373eb4416e590205fd0005039 bcel-5.1-src.tar.gz