Name: javassist Version: 3.9.0 Release: 1%{?dist} Summary: The Java Programming Assistant provides simple Java bytecode manipulation Group: Development/Libraries License: MPLv1.1 or LGPLv2+ URL: http://www.csg.is.titech.ac.jp/~chiba/javassist/ Source0: http://downloads.sourceforge.net/jboss/%{name}3.9.GA.zip Patch0: javassist-buildfile-nosource1.4-nosrcjar.patch BuildArch: noarch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: java-devel >= 1:1.6.0 BuildRequires: jpackage-utils BuildRequires: ant Requires: java >= 1:1.6.0 Requires: jpackage-utils %description Javassist enables Java programs to define a new class at runtime and to modify a class file when the JVM loads it. Unlike other similar bytecode editors, Javassist provides two levels of API: source level and bytecode level. If the users use the source-level API, they can edit a class file without knowledge of the specifications of the Java bytecode. The whole API is designed with only the vocabulary of the Java language. You can even specify inserted bytecode in the form of source text; Javassist compiles it on the fly. On the other hand, the bytecode-level API allows the users to directly edit a class file as other editors. %package javadoc Summary: Javadocs for javassist Group: Documentation Requires: %{name} = %{version}-%{release} Requires: jpackage-utils %description javadoc javassist development documentation. %prep %setup -q # -n %{name}-%{version} %patch0 -p0 rm -rf *.jar html %build ant clean jar javadocs %install rm -rf $RPM_BUILD_ROOT # jar install -d $RPM_BUILD_ROOT%{_javadir} install -m644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar # javadoc install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -rp html/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc License.html %{_javadir}/%{name}.jar %{_javadir}/%{name}-%{version}.jar %files javadoc %defattr(-,root,root,-) %dir %{_javadocdir}/%{name}-%{version} %{_javadocdir}/%{name} %{_javadocdir}/%{name}-%{version}/* %changelog * Tue Dec 16 2008 Sandro Mathys - 3.9.0-1 - initial build