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