Blame SPECS/javassist.spec

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