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