116b4d
%global upstream_version rel_%(sed s/\\\\./_/g <<<"%{version}")_ga
116b4d
116b4d
Name:           javassist
116b4d
Version:        3.18.1
116b4d
Release:        8%{?dist}
116b4d
Summary:        The Java Programming Assistant provides simple Java bytecode manipulation
116b4d
Group:          Development/Libraries
116b4d
License:        MPLv1.1 or LGPLv2+ or ASL 2.0
116b4d
URL:            http://www.csg.is.titech.ac.jp/~chiba/%{name}/
116b4d
BuildArch:      noarch
116b4d
116b4d
Source0:        http://github.com/jboss-%{name}/%{name}/archive/%{upstream_version}.tar.gz
116b4d
116b4d
Patch0:         0001-Remove-usage-of-junit.awtui-and-junit.swingui.patch
116b4d
116b4d
BuildRequires:  maven-local
116b4d
BuildRequires:  mvn(junit:junit)
116b4d
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
116b4d
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
116b4d
116b4d
%description
116b4d
Javassist enables Java programs to define a new class at runtime and to
116b4d
modify a class file when the JVM loads it. Unlike other similar
116b4d
bytecode editors, Javassist provides two levels of API: source level
116b4d
and bytecode level. If the users use the source-level API, they can
116b4d
edit a class file without knowledge of the specifications of the Java
116b4d
bytecode. The whole API is designed with only the vocabulary of the
116b4d
Java language. You can even specify inserted bytecode in the form of
116b4d
source text; Javassist compiles it on the fly. On the other hand, the
116b4d
bytecode-level API allows the users to directly edit a class file as
116b4d
other editors.
116b4d
116b4d
%package javadoc
116b4d
Summary:           Javadocs for javassist
116b4d
Group:             Documentation
116b4d
Requires:          jpackage-utils
116b4d
116b4d
%description javadoc
116b4d
javassist development documentation.
116b4d
116b4d
%prep
116b4d
%setup -q -n %{name}-%{upstream_version}
116b4d
find . -name \*.jar -type f -delete
116b4d
mkdir runtest
116b4d
%patch0 -p1
116b4d
%pom_xpath_remove "pom:profile[pom:id='default-tools']"
116b4d
%pom_add_dep com.sun:tools
116b4d
116b4d
%mvn_file : %{name}
116b4d
%mvn_alias : %{name}:%{name}
116b4d
116b4d
%build
116b4d
# TODO: enable tests
116b4d
%mvn_build -f
116b4d
116b4d
%install
116b4d
%mvn_install
116b4d
116b4d
%files -f .mfiles
116b4d
%doc License.html Readme.html
116b4d
116b4d
%files javadoc -f .mfiles-javadoc
116b4d
%doc License.html
116b4d
116b4d
%changelog
116b4d
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.1-8
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
116b4d
116b4d
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.1-7
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
116b4d
116b4d
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.1-6
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
116b4d
116b4d
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.18.1-5
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
116b4d
116b4d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18.1-4
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
116b4d
116b4d
* Mon Mar 16 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.18.1-3
116b4d
- Simplify build dependencies
116b4d
116b4d
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18.1-2
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
116b4d
116b4d
* Mon Apr 28 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.18.1-1
116b4d
- Update to upstream version 3.18.1
116b4d
- Remove workaround for rpm bug, can be removed in F-18
116b4d
- Update to current packaging guidelines
116b4d
116b4d
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.16.1-7
116b4d
- Use Requires: java-headless rebuild (#1067528)
116b4d
116b4d
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16.1-6
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
116b4d
116b4d
* Tue Feb 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.16.1-5
116b4d
- Remove unneeded BR on maven-doxia
116b4d
- Resolves: rhbz#915607
116b4d
116b4d
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16.1-4
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
116b4d
116b4d
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.16.1-3
116b4d
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
116b4d
- Replace maven BuildRequires with maven-local
116b4d
116b4d
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16.1-2
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
116b4d
116b4d
* Tue Apr 24 2012 Andy Grimm <agrimm@gmail.com> - 3.16.1-1
116b4d
- Update to latest upstream release.
116b4d
116b4d
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.15.0-2
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
116b4d
116b4d
* Tue Sep 20 2011 Alexander Kurtakov <akurtako@redhat.com> 3.15.0-1
116b4d
- Update to latest upstream release.
116b4d
- Add javassist:javassist depmap.
116b4d
- The project is now triple licensed.
116b4d
116b4d
* Wed Aug 31 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.14.0-5
116b4d
- Fixes according to current guidelines
116b4d
116b4d
* Tue Aug 30 2011 Andy Grimm <agrimm@gmail.com> - 3.14.0-4
116b4d
- Switch to Maven 3 build.
116b4d
116b4d
* Tue Aug 30 2011 John5342 <john5342 at, fedoraproject.org> - 3.14.0-3
116b4d
- Remove ext_ver macro usage leftover after last rebase (rhbz#734255)
116b4d
116b4d
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.14.0-2
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
116b4d
116b4d
* Thu Nov 4 2010 Alexander Kurtakov <akurtako@redhat.com> 3.14.0-1
116b4d
- Update to 3.14.0 upstream version.
116b4d
- Various fixes in preparation for merge review.
116b4d
116b4d
* Fri Feb 12 2010 Alexander Kurtakov <akurtako@redhat.com> 3.9.0-7
116b4d
- Add maven-doxia BRs.
116b4d
116b4d
* Fri Feb 12 2010 Alexander Kurtakov <akurtako@redhat.com> 3.9.0-6
116b4d
- Remove not needed BR. Fixes rhbz#539176.
116b4d
116b4d
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-5
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
116b4d
116b4d
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.9.0-4
116b4d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
116b4d
116b4d
* Tue Jan 27 2009 John5342 <john5342 at, fedoraproject.org> - 3.9.0-3
116b4d
- Correct group id for maven depmap
116b4d
116b4d
* Mon Jan 26 2009 John5342 <john5342 at, fedoraproject.org> - 3.9.0-2
116b4d
- Build using maven and install maven stuff (fixes bug 480428)
116b4d
116b4d
* Tue Dec 16 2008 Sandro Mathys <red at fedoraproject.org> - 3.9.0-1
116b4d
- initial build