diff --git a/.cvsignore b/.cvsignore index e69de29..1e35a41 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +javassist3.9.GA.zip diff --git a/import.log b/import.log new file mode 100644 index 0000000..2a4c61b --- /dev/null +++ b/import.log @@ -0,0 +1 @@ +javassist-3_9_0-1_fc11:HEAD:javassist-3.9.0-1.fc11.src.rpm:1231537758 diff --git a/javassist-buildfile-nosource1.4-nosrcjar.patch b/javassist-buildfile-nosource1.4-nosrcjar.patch new file mode 100644 index 0000000..b8b467d --- /dev/null +++ b/javassist-buildfile-nosource1.4-nosrcjar.patch @@ -0,0 +1,23 @@ +--- build.xml.old 2008-10-09 19:51:16.000000000 +0200 ++++ build.xml 2008-12-09 16:27:29.000000000 +0100 +@@ -155,17 +155,19 @@ + to ${build.classes.dir}. + + +- ++ + + + + + ++ + + + diff --git a/javassist.spec b/javassist.spec new file mode 100644 index 0000000..130f92e --- /dev/null +++ b/javassist.spec @@ -0,0 +1,86 @@ +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 diff --git a/sources b/sources index e69de29..1612d76 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b1a54a77359355f10b40129a91f30b00 javassist3.9.GA.zip