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