2640bb
%bcond_with bootstrap
2640bb
2640bb
Name:           apache-commons-codec
2640bb
Version:        1.15
2640bb
Release:        7%{?dist}
2640bb
Summary:        Implementations of common encoders and decoders
2640bb
License:        ASL 2.0
2640bb
URL:            https://commons.apache.org/codec/
2640bb
BuildArch:      noarch
2640bb
ExclusiveArch:  %{java_arches} noarch
2640bb
2640bb
Source0:        https://archive.apache.org/dist/commons/codec/source/commons-codec-%{version}-src.tar.gz
2640bb
# Data in DoubleMetaphoneTest.java originally has an inadmissible license.
2640bb
# The author gives MIT in e-mail communication.
2640bb
Source1:        aspell-mail.txt
2640bb
2640bb
%if %{with bootstrap}
2640bb
BuildRequires:  javapackages-bootstrap-openjdk8
2640bb
%else
2640bb
BuildRequires:  maven-local-openjdk8
2640bb
BuildRequires:  mvn(junit:junit)
2640bb
BuildRequires:  mvn(org.apache.commons:commons-lang3)
2640bb
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
2640bb
%endif
2640bb
2640bb
%description
2640bb
Commons Codec is an attempt to provide definitive implementations of
2640bb
commonly used encoders and decoders. Examples include Base64, Hex,
2640bb
Phonetic and URLs.
2640bb
2640bb
%{?javadoc_package}
2640bb
2640bb
%prep
2640bb
%autosetup -n commons-codec-%{version}-src
2640bb
cp %{SOURCE1} aspell-mail.txt
2640bb
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
2640bb
2640bb
%mvn_file : commons-codec %{name}
2640bb
%mvn_alias : commons-codec:commons-codec
2640bb
2640bb
%build
2640bb
# Avoid running out of heap on s390x during test suite execution
2640bb
export MAVEN_OPTS="-Xmx1024m"
2640bb
2640bb
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.codec
2640bb
2640bb
%install
2640bb
%mvn_install
2640bb
2640bb
%files -f .mfiles
2640bb
%license LICENSE.txt NOTICE.txt aspell-mail.txt
2640bb
%doc RELEASE-NOTES*
2640bb
2640bb
%changelog
2640bb
* Wed Jul 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-7
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
2640bb
2640bb
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1.15-6
2640bb
- Rebuilt for java-17-openjdk as system jdk
2640bb
2640bb
* Wed Jan 19 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-5
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
2640bb
2640bb
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-4
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
2640bb
2640bb
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.15-3
2640bb
- Bootstrap build
2640bb
- Non-bootstrap build
2640bb
2640bb
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.15-2
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2640bb
2640bb
* Fri Sep 11 2020 Marian Koncek <mkoncek@redhat.com> - 1.15-1
2640bb
- Update to upstream version 1.15
2640bb
2640bb
* Fri Sep 04 2020 Mat Booth <mat.booth@redhat.com> - 1.15-1
2640bb
- Update to latest upstream release
2640bb
2640bb
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-4
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2640bb
2640bb
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 1.13-3
2640bb
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
2640bb
2640bb
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-2
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2640bb
2640bb
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.14-2
2640bb
- Build with OpenJDK 8
2640bb
2640bb
* Wed Jan 22 2020 Marian Koncek <mkoncek@redhat.com> - 1.14-1
2640bb
- Update to upstream version 1.14
2640bb
2640bb
* Thu Dec 12 2019 Mat Booth <mat.booth@redhat.com> - 1.13-1
2640bb
- Update to upstream version 1.13
2640bb
2640bb
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13-2
2640bb
- Mass rebuild for javapackages-tools 201902
2640bb
2640bb
* Mon Jul 29 2019 Marian Koncek <mkoncek@redhat.com> - 1.13-1
2640bb
- Update to upstream version 1.13
2640bb
2640bb
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-7
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
2640bb
2640bb
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12-2
2640bb
- Mass rebuild for javapackages-tools 201901
2640bb
2640bb
* Mon May 13 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.12-1
2640bb
- Update to upstream version 1.12
2640bb
2640bb
* Thu Feb 07 2019 Mat Booth <mat.booth@redhat.com> - 1.11-6
2640bb
- Rebuild to regenerate OSGi metadata
2640bb
2640bb
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-5
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2640bb
2640bb
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-4
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2640bb
2640bb
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-3
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2640bb
2640bb
* Mon Jan 29 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.11-2
2640bb
- Cleanup spec file
2640bb
2640bb
* Fri Nov 24 2017 Mat Booth <mat.booth@redhat.com> - 1.11-1
2640bb
- Update to latest upstream version
2640bb
2640bb
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-5
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2640bb
2640bb
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-4
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
2640bb
2640bb
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.10-3
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2640bb
2640bb
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
2640bb
2640bb
* Mon Nov 17 2014 Mat Booth <mat.booth@redhat.com> - 1.10-1
2640bb
- Update to upstream version 1.10
2640bb
2640bb
* Tue Oct 14 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-5
2640bb
- Remove legacy Obsoletes/Provides for jakarta-commons
2640bb
2640bb
* Wed Jul 30 2014 Mat Booth <mat.booth@redhat.com> - 1.9-4
2640bb
- Fix incorrect parent BR causing FTBFS
2640bb
2640bb
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-3
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2640bb
2640bb
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.9-2
2640bb
- Use Requires: java-headless rebuild (#1067528)
2640bb
2640bb
* Mon Jan  6 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.9-1
2640bb
- Update to upstream version 1.9
2640bb
- Update to current packaging guidelines
2640bb
2640bb
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8-5
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
2640bb
2640bb
* Mon Jul 08 2013 Tomas Radej <tradej@redhat.com> - 1.8-4
2640bb
- Fixed license tag (MIT is only in test that doesn't make it into binary RPM)
2640bb
2640bb
* Tue Jun 25 2013 Tomas Radej <tradej@redhat.com> - 1.8-2
2640bb
- Clarified licensing of DoubleMetaphoneTest.java
2640bb
2640bb
* Fri May 03 2013 Mat Booth <fedora@matbooth.co.uk> - 1.8-1
2640bb
- Update to 1.8, rhbz #957598
2640bb
2640bb
* Mon Apr 29 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7-5
2640bb
- Remove unneeded BR: maven-idea-plugin
2640bb
2640bb
* Mon Feb 18 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.7-4
2640bb
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
2640bb
- Replace maven BuildRequires with maven-local
2640bb
2640bb
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7-3
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
2640bb
2640bb
* Mon Nov 19 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.7-2
2640bb
- Add Provides/Obsoletes for jakarta-commons-codec
2640bb
2640bb
* Thu Oct 25 2012 Mat Booth <fedora@matbooth.co.uk> - 1.7-1
2640bb
- Update to 1.7.
2640bb
- Can finally remove the provides/obsoletes on the old jakarta name.
2640bb
2640bb
* Mon Sep 17 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-5
2640bb
- Restore apache-commons-codec.jar symlink, resolves #857947
2640bb
2640bb
* Tue Aug  7 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6-4
2640bb
- Enable tests
2640bb
- Install NOTICE with javadoc package
2640bb
- Fix file permissions
2640bb
- Remove versioned symlinks
2640bb
2640bb
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-3
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2640bb
2640bb
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6-2
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
2640bb
2640bb
* Wed Dec 7 2011 akurtakov <akurtakov@rh.akurtakov> 1.6-1
2640bb
- Update to latest upstream (1.6).
2640bb
2640bb
* Wed Nov 30 2011 Alexander Kurtakov <akurtako@redhat.com> 1.4-13
2640bb
- Build with maven 3.
2640bb
- Adapt to current guidelines.
2640bb
2640bb
* Thu Feb 10 2011 mbooth <fedora@matbooth.co.uk> 1.4-12
2640bb
- Drop versioned jars and javadocs.
2640bb
2640bb
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4-11
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2640bb
2640bb
* Fri May 21 2010 Mat Booth <fedora@matbooth.co.uk> 1.4-10
2640bb
- Correct dep-map names #594717.
2640bb
2640bb
* Fri May 21 2010 Alexander Kurtakov <akurtako@redhat.com> 1.4-9
2640bb
- Obsolete/Provide commons-codec.
2640bb
2640bb
* Fri May 14 2010 Mat Booth <fedora@matbooth.co.uk> - 1.4-8
2640bb
- Obsolete jakarta javadoc package.
2640bb
- Keep legacy depmap around.
2640bb
2640bb
* Thu May 13 2010 Mat Booth <fedora@matbooth.co.uk> - 1.4-7
2640bb
- Use global instead of define.
2640bb
- Drop really old obsoletes/provides on short_name.
2640bb
- Fix requires.
2640bb
2640bb
* Tue May 11 2010 Mat Booth <fedora@matbooth.co.uk> - 1.4-6
2640bb
- Rename package (jakarta-commons-codec->apache-commons-codec).
2640bb
2640bb
* Tue Dec 8 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-5
2640bb
- Enable OSGi automatic depsolving (from Alphonse Van Assche).
2640bb
2640bb
* Sun Nov 8 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-4
2640bb
- Fix javadoc package requires
2640bb
2640bb
* Sat Nov 7 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-3
2640bb
- Correct Obsoletes/Provides according to naming guidelines
2640bb
2640bb
* Sat Nov 7 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-2
2640bb
- Add all maven related build reqs
2640bb
- Require Java 1.6 because tests fail on GCJ
2640bb
2640bb
* Sat Nov 7 2009 Mat Booth <fedora@matbooth.co.uk> - 1.4-1
2640bb
- Update to 1.4
2640bb
- Rewrite spec file to build using upstream-preferred maven instead of ant
2640bb
- Drop patch to add OSGi manifest (done automatically in the maven build)
2640bb
- Install pom and add to maven dep-map
2640bb
- Re-enable all tests
2640bb
2640bb
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-11.4
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
2640bb
2640bb
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.3-10.4
2640bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2640bb
2640bb
* Thu Jul 24 2008 Andrew Overholt <overholt@redhat.com> 1.3-9.4
2640bb
- Update OSGi manifest.
2640bb
2640bb
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.3-9.3
2640bb
- drop repotag
2640bb
- fix license tag
2640bb
2640bb
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.3-9jpp.2
2640bb
- Autorebuild for GCC 4.3
2640bb
2640bb
* Thu Sep 06 2007 Andrew Overholt <overholt@redhat.com> 1.3-8jpp.2
2640bb
- Add OSGi manifest.
2640bb
2640bb
* Wed Mar 21 2007 Matt Wringe <mwringe@redhat.com> 0:1.3-8jpp.1
2640bb
- Update to latest jpp version
2640bb
- Fix rpmlint issues
2640bb
2640bb
* Wed Mar 21 2007 Matt Wringe <mwringe@redhat.com> 0:1.3-8jpp
2640bb
- Fix some rpmlint warnings
2640bb
- Update copyright year
2640bb
2640bb
* Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> 0:1.3-7jpp.2
2640bb
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
2640bb
2640bb
* Tue Sep 26 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-7jpp.1
2640bb
- Merge with upstream version.
2640bb
2640bb
* Tue Sep 26 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-7jpp
2640bb
- Add missing java-javadoc requires and buildrequires.
2640bb
2640bb
* Mon Sep 25 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-6jpp.1
2640bb
- Merge with upstream version.
2640bb
2640bb
* Mon Sep 25 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-6jpp
2640bb
- Update jakarta-commons-codec-1.3-buildscript.patch to build
2640bb
  offline.
2640bb
2640bb
* Thu Aug 10 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-5jpp.1
2640bb
- Merge with upstream version
2640bb
 - Add missing javadoc requires
2640bb
2640bb
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.3-4jpp_2fc
2640bb
- Rebuilt
2640bb
2640bb
* Thu Jul 20 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-4jpp_1fc
2640bb
- Merged with upstream version
2640bb
- Now is natively compiled
2640bb
2640bb
* Thu Jul 20 2006 Matt Wringe <mwringe at redhat.com> 0:1.3-4jpp
2640bb
- Added conditional native compiling
2640bb
2640bb
* Tue Apr 04 2006 Ralph Apel <r.apel@r-apel.de> 0:1.3-3jpp
2640bb
- First JPP-1.7 release
2640bb
2640bb
* Wed Sep 08 2004 Fernando Nasser <fnasser@redhat.com> 0:1.3-2jpp
2640bb
- Do not stop on test failure
2640bb
2640bb
* Tue Sep 07 2004 Fernando Nasser <fnasser@redhat.com> 0:1.3-1jpp
2640bb
- Upgrade to 1.3
2640bb
- Rebuilt with Ant 1.6.2
2640bb
2640bb
* Thu Jan 22 2004 David Walluck <david@anti-microsoft.org> 0:1.2-1jpp
2640bb
- 1.2
2640bb
- use perl instead of patch
2640bb
2640bb
* Wed May 28 2003 Ville Skyttä <jpackage-discuss at zarb.org> - 0:1.1-1jpp
2640bb
- First JPackage release.