|
|
ba16b5e |
%define ext_ver .GA
|
|
|
ba16b5e |
|
|
|
a040770 |
Name: javassist
|
|
|
a040770 |
Version: 3.9.0
|
|
|
c729e64 |
Release: 7%{?dist}
|
|
|
a040770 |
Summary: The Java Programming Assistant provides simple Java bytecode manipulation
|
|
|
a040770 |
Group: Development/Libraries
|
|
|
a040770 |
License: MPLv1.1 or LGPLv2+
|
|
|
a040770 |
URL: http://www.csg.is.titech.ac.jp/~chiba/javassist/
|
|
|
a040770 |
Source0: http://downloads.sourceforge.net/jboss/%{name}3.9.GA.zip
|
|
|
a040770 |
Patch0: javassist-buildfile-nosource1.4-nosrcjar.patch
|
|
|
a040770 |
BuildArch: noarch
|
|
|
a040770 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
a040770 |
|
|
|
a040770 |
BuildRequires: java-devel >= 1:1.6.0
|
|
|
a040770 |
BuildRequires: jpackage-utils
|
|
|
ba16b5e |
|
|
|
ba16b5e |
BuildRequires: maven2
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-compiler
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-install
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-jar
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-javadoc
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-resources
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-surefire
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-source
|
|
|
ba16b5e |
BuildRequires: maven2-plugin-antrun
|
|
|
c729e64 |
BuildRequires: maven-doxia
|
|
|
c729e64 |
BuildRequires: maven-doxia-sitetools
|
|
|
ba16b5e |
|
|
|
a040770 |
Requires: java >= 1:1.6.0
|
|
|
a040770 |
Requires: jpackage-utils
|
|
|
a040770 |
|
|
|
ba16b5e |
Requires(post): jpackage-utils
|
|
|
ba16b5e |
Requires(postun): jpackage-utils
|
|
|
ba16b5e |
|
|
|
a040770 |
%description
|
|
|
a040770 |
Javassist enables Java programs to define a new class at runtime and to
|
|
|
a040770 |
modify a class file when the JVM loads it. Unlike other similar
|
|
|
a040770 |
bytecode editors, Javassist provides two levels of API: source level
|
|
|
a040770 |
and bytecode level. If the users use the source-level API, they can
|
|
|
a040770 |
edit a class file without knowledge of the specifications of the Java
|
|
|
a040770 |
bytecode. The whole API is designed with only the vocabulary of the
|
|
|
a040770 |
Java language. You can even specify inserted bytecode in the form of
|
|
|
a040770 |
source text; Javassist compiles it on the fly. On the other hand, the
|
|
|
a040770 |
bytecode-level API allows the users to directly edit a class file as
|
|
|
a040770 |
other editors.
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
a040770 |
%package javadoc
|
|
|
a040770 |
Summary: Javadocs for javassist
|
|
|
a040770 |
Group: Documentation
|
|
|
a040770 |
Requires: %{name} = %{version}-%{release}
|
|
|
a040770 |
Requires: jpackage-utils
|
|
|
a040770 |
|
|
|
a040770 |
%description javadoc
|
|
|
a040770 |
javassist development documentation.
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
a040770 |
%prep
|
|
|
a040770 |
%setup -q # -n %{name}-%{version}
|
|
|
a040770 |
%patch0 -p0
|
|
|
a040770 |
|
|
|
ba16b5e |
find . -name \*.jar -type f -delete
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
a040770 |
%build
|
|
|
ba16b5e |
|
|
|
ba16b5e |
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
|
|
|
ba16b5e |
mkdir -p $MAVEN_REPO_LOCAL
|
|
|
ba16b5e |
|
|
|
ba16b5e |
mvn-jpp \
|
|
|
ba16b5e |
-Dmaven.repo.local=$MAVEN_REPO_LOCAL \
|
|
|
ba16b5e |
install javadoc:javadoc
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
a040770 |
%install
|
|
|
a040770 |
rm -rf $RPM_BUILD_ROOT
|
|
|
a040770 |
|
|
|
ba16b5e |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
|
ba16b5e |
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
|
|
ba16b5e |
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_datadir}/maven2/poms/JPP-%{name}.pom
|
|
|
36a09e3 |
%add_to_maven_depmap %{name} %{name} %{version}%{ext_ver} JPP %{name}
|
|
|
ba16b5e |
|
|
|
ba16b5e |
|
|
|
a040770 |
# jar
|
|
|
a040770 |
install -d $RPM_BUILD_ROOT%{_javadir}
|
|
|
ba16b5e |
install -m644 target/%{name}-%{version}%{ext_ver}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}%{ext_ver}.jar
|
|
|
ba16b5e |
ln -s %{name}-%{version}%{ext_ver}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
a040770 |
|
|
|
a040770 |
# javadoc
|
|
|
a040770 |
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
ba16b5e |
cp -rp target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
a040770 |
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
a040770 |
%clean
|
|
|
a040770 |
rm -rf $RPM_BUILD_ROOT
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
ba16b5e |
%post
|
|
|
ba16b5e |
%update_maven_depmap
|
|
|
ba16b5e |
|
|
|
ba16b5e |
%postun
|
|
|
ba16b5e |
%update_maven_depmap
|
|
|
ba16b5e |
|
|
|
ba16b5e |
|
|
|
a040770 |
%files
|
|
|
a040770 |
%defattr(-,root,root,-)
|
|
|
a040770 |
%doc License.html
|
|
|
a040770 |
%{_javadir}/%{name}.jar
|
|
|
ba16b5e |
%{_javadir}/%{name}-%{version}%{ext_ver}.jar
|
|
|
6b5688e |
%{_datadir}/maven2/poms/*
|
|
|
ba16b5e |
%{_mavendepmapfragdir}
|
|
|
ba16b5e |
|
|
|
a040770 |
|
|
|
a040770 |
%files javadoc
|
|
|
a040770 |
%defattr(-,root,root,-)
|
|
|
a040770 |
%dir %{_javadocdir}/%{name}-%{version}
|
|
|
a040770 |
%{_javadocdir}/%{name}
|
|
|
a040770 |
%{_javadocdir}/%{name}-%{version}/*
|
|
|
a040770 |
|
|
|
a040770 |
|
|
|
a040770 |
%changelog
|
|
|
c729e64 |
* Fri Feb 12 2010 Alexander Kurtakov <akurtako@redhat.com> 3.9.0-7
|
|
|
c729e64 |
- Add maven-doxia BRs.
|
|
|
c729e64 |
|
|
|
50d50ec |
* Fri Feb 12 2010 Alexander Kurtakov <akurtako@redhat.com> 3.9.0-6
|
|
|
50d50ec |
- Remove not needed BR. Fixes rhbz#539176.
|
|
|
50d50ec |
|
|
|
1a48f1b |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-5
|
|
|
1a48f1b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
1a48f1b |
|
|
|
2469658 |
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-4
|
|
|
2469658 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
2469658 |
|
|
|
36a09e3 |
* Tue Jan 27 2009 John5342 <john5342 at, fedoraproject.org> - 3.9.0-3
|
|
|
36a09e3 |
- Correct group id for maven depmap
|
|
|
36a09e3 |
|
|
|
ba16b5e |
* Mon Jan 26 2009 John5342 <john5342 at, fedoraproject.org> - 3.9.0-2
|
|
|
ba16b5e |
- Build using maven and install maven stuff (fixes bug 480428)
|
|
|
ba16b5e |
|
|
|
a040770 |
* Tue Dec 16 2008 Sandro Mathys <red at fedoraproject.org> - 3.9.0-1
|
|
|
a040770 |
- initial build
|