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