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