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