Blame SPECS/javassist.spec

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