Sync from SUSE:ALP:Source:Standard:1.0 apache-commons-codec revision 2ce0e13d6158ed4a6df5b6714f89f04d

This commit is contained in:
Adrian Schröter 2024-02-21 14:11:45 +01:00
commit ab9f8a907c
7 changed files with 742 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

View File

@ -0,0 +1,163 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="commons-codec" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="build.properties"/>
<property name="project.groupId" value="commons-codec"/>
<property name="project.artifactId" value="commons-codec"/>
<property name="project.version" value="1.16.1"/>
<property name="project.name" value="Apache Commons Codec"/>
<property name="project.description" value="The Apache Commons Codec package
contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.
In addition to these widely used encoders and decoders, the codec package also maintains a
collection of phonetic encoding utilities."/>
<property name="project.organization.name" value="The Apache Software Foundation"/>
<property name="project.organization.url" value="http://commons.apache.org/proper/commons-codec/"/>
<property name="bundle.version" value="${project.version}.0"/>
<property name="bundle.symbolicName" value="org.apache.commons.codec"/>
<property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/>
<property name="build.dir" value="target"/>
<property name="build.outputDir" value="${build.dir}/classes"/>
<property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir.0" value="src/main/resources"/>
<property name="build.resourceDir.1" value="."/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<fileset dir="lib">
<include name="**/*.jar"/>
</fileset>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<mkdir dir="${build.outputDir}"/>
<javac destdir="${build.outputDir}"
encoding="UTF-8"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
release="${compiler.release}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.srcDir}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
<copy todir="${build.outputDir}">
<fileset dir="${build.resourceDir.0}"/>
</copy>
<mkdir dir="${build.outputDir}/META-INF"/>
<copy todir="${build.outputDir}/META-INF">
<fileset dir="${build.resourceDir.1}">
<include name="NOTICE.txt"/>
<include name="LICENSE.txt"/>
</fileset>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${build.srcDir}"
packagenames="*"
destdir="${reporting.outputDirectory}/apidocs"
access="protected"
verbose="false"
encoding="UTF-8"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
docencoding="UTF-8"
source="${compiler.source}"
linksource="true"
breakiterator="false">
</javadoc>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true"
index="false"
basedir="${build.outputDir}"
excludes="**/package.html">
<manifest>
<attribute name="Automatic-Module-Name" value="${bundle.symbolicName}"/>
<attribute name="Bundle-Description" value="${project.description}"/>
<attribute name="Bundle-DocURL" value="${project.organization.url}"/>
<attribute name="Bundle-License" value="https://www.apache.org/licenses/LICENSE-2.0.txt"/>
<attribute name="Bundle-ManifestVersion" value="2"/>
<attribute name="Bundle-Name" value="${project.name}"/>
<attribute name="Bundle-SymbolicName" value="${bundle.symbolicName}"/>
<attribute name="Bundle-Vendor" value="${project.organization.name}"/>
<attribute name="Bundle-Version" value="${bundle.version}"/>
<attribute name="Export-Package" value="org.apache.commons.codec;version=&quot;${project.version}&quot;,org.apache.commons.codec.binary;version=&quot;${project.version}&quot;,org.apache.commons.codec.cli;version=&quot;${project.version}&quot;,org.apache.commons.codec.digest;version=&quot;${project.version}&quot;,org.apache.commons.codec.language;version=&quot;${project.version}&quot;,org.apache.commons.codec.language.bm;version=&quot;${project.version}&quot;,org.apache.commons.codec.net;version=&quot;${project.version}&quot;"/>
<attribute name="Implementation-Title" value="${project.name}"/>
<attribute name="Implementation-URL" value="${project.organization.url}"/>
<attribute name="Implementation-Vendor" value="${project.organization.name}"/>
<attribute name="Implementation-Vendor-Id" value="${project.groupId}"/>
<attribute name="Implementation-Version" value="${project.version}"/>
<attribute name="Import-Package" value="javax.crypto,javax.crypto.spec"/>
<attribute name="JavaPackages-ArtifactId" value="${project.artifactId}"/>
<attribute name="JavaPackages-GroupId" value="${project.groupId}"/>
<attribute name="JavaPackages-Version" value="${project.version}"/>
<attribute name="Require-Capability" value="osgi.ee;filter:=&quot;(&amp;(osgi.ee=JavaSE)(version=${compiler.target}))&quot;"/>
<attribute name="Specification-Title" value="${project.name}"/>
<attribute name="Specification-Vendor" value="${project.organization.name}"/>
<attribute name="Specification-Version" value="${project.version}"/>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
</project>

View File

@ -0,0 +1,352 @@
-------------------------------------------------------------------
Mon Feb 19 17:47:30 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Update to 1.16.1:
* New features:
+ Add Maven property project.build.outputTimestamp for build
reproducibility
* Fixed Bugs:
+ CODEC-295: Test clean ups
+ CODEC-295: Correct error in Base64 Javadoc
+ CODEC-295: Add minimum Java version in changes.xml
+ CODEC-310: Documentation update for the
org.apache.commons.codec.digest.* package
+ Precompile regular expression in UnixCrypt.crypt(byte[],
String)
+ CODEC-315: Fix possible IndexOutOfBoundException in
PhoneticEngine.encode method
+ CODEC-313: Fix possible ArrayIndexOutOfBoundsException in
QuotedPrintableCodec.encodeQuotedPrintable() method
+ CODEC-312: Fix possible StringIndexOutOfBoundException in
MatchRatingApproachEncoder.encode() method
+ CODEC-311: Fix possible ArrayIndexOutOfBoundException in
RefinedSoundex.getMappingCode()
+ CODEC-314: Fix possible IndexOutOfBoundsException in
PercentCodec.insertAlwaysEncodeChars() method
+ Deprecate UnixCrypt 0-argument constructor
+ Deprecate Md5Crypt 0-argument constructor
+ Deprecate Crypt 0-argument constructor
+ Deprecate StringUtils 0-argument constructor
+ Deprecate Resources 0-argument constructor
+ Deprecate Charsets 0-argument constructor
+ Deprecate CharEncoding 0-argument constructor
-------------------------------------------------------------------
Wed Oct 18 11:30:31 UTC 2023 - David Anes <david.anes@suse.com>
- Update to 1.16.0:
* Minor improvements #67. Fixes CODEC-295.
* Remove duplicated words from Javadocs.
* Simplify assertion #84. Fixes CODEC-301.
* Simplify assertion #84. Fixes CODEC-300.
* Use Standard Charset object #82. Fixes CODEC-298.
* Use String.contains() functions #125.
* Avoid use toString() or substring() in favor of a simplified expression #126.
* Fix byte-skipping in Base16 decoding #135. Fixes CODEC-305.
* Fix several typos, improve writing in some javadocs #139.
* BaseNCodecOutputStream.eof() should not throw IOException.
* Javadoc improvements and cleanups.
* Deprecate BaseNCodec.isWhiteSpace(byte) and use Character.isWhitespace(int).
* Add support for Blake3 family of hashes. Fixes CODEC-296.
* Add github/codeql-action.
* Bump actions/cache from v2 to v3.0.10 #75, #99, #119, #138, #149, #152.
* Bump actions/setup-java from v1.4.1 to 3.5.1 #60, #62, #121.
* Bump actions/checkout from 2.3.2 to 3.1.0 #65, #98, #114, #153.
* Bump commons-parent from 52 to 58, #147, #165, #170.
* Bump junit from 4.13.1 to 5.9.1 #76, #39, #140, #148. Fixes CODEC-285.
* Bump Java 7 to 8.
* Bump japicmp-maven-plugin from 0.14.3 to 0.17.1.
* Bump jacoco-maven-plugin from 0.8.5 to 0.8.8 (Fixes Java 15 builds).
* Bump maven-surefire-plugin from 2.22.2 to 3.0.0-M7 #122, #134.
* Bump maven-javadoc-plugin from 3.2.0 to 3.4.1.
* Bump animal-sniffer-maven-plugin from 1.19 to 1.22.
* Bump maven-pmd-plugin from 3.13.0 to 3.19.0, #133, #142, #145.
* Bump pmd from 6.47.0 to 6.52.0.
* Bump maven-checkstyle-plugin from 2.17 to 3.2.0 #143.
* Bump checkstyle from 8.45.1 to 9.3 #97, #100, #101, #103.
* Bump taglist-maven-plugin from 2.4 to 3.0.0 #102.
* Bump jacoco-maven-plugin from 0.8.7 to 0.8.8.
-------------------------------------------------------------------
Thu May 5 16:01:16 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Do not alias the artifact to itself
-------------------------------------------------------------------
Tue Oct 27 07:51:13 UTC 2020 - Pedro Monreal <pmonreal@suse.com>
- Update to 1.15
* Fix: MurmurHash3: Ensure hash128 maintains the sign extension bug.
* Update: Base32/Base64/BCodec: Added strict decoding property to
control handling of trailing bits. Default lenient mode discards
them without error. Strict mode raise an exception.
* Update: Base32/Base64 Input/OutputStream: Added strict decoding
property to control handling of trailing bits. Default lenient
mode discards them without error. Strict mode raise an exception.
* Update: Update tests from JUnit 4.12 to 4.13.
* Add: Base16Codec and Base16Input/OutputStream.
* Add: Hex encode/decode with existing arrays.
* Update: Update actions/checkout from v1 to v2.3.2.
* Update: Update actions/setup-java from v1.4.0 to v1.4.1.
- Remove timeout.patch
-------------------------------------------------------------------
Tue Jun 2 08:57:59 UTC 2020 - Pedro Monreal Gonzalez <pmonrealgonzalez@suse.com>
- Update to version 1.14
* Release 1.14 - 2019-12-30
- Fix: Hex: Allow encoding read-only ByteBuffer.
- Fix: Hex: Only use an available ByteBuffer backing array if
the length equals the remaining byte count.
- Update: MurmurHash3: Deprecate hash64 methods and hash methods
accepting a String that use the default encoding.
- Fix: BaseNCodec to expand buffer using overflow conscious code.
- Fix: Base32/64: Fixed decoding check that all the final trailing
bits to discard are zero.
- Add: Add MurmurHash3.hash128x64 methods to fix sign extension error
during seeding in hash128 methods.
- Add: Add MurmurHash3.hash32x86 methods and IncrementalHash32x86 to
fix sign extension error in hash32 methods.
- Fix: Allow repeat calls to MurmurHash3.IncrementalHash32.end() to
generate the same value.
- Add: Add RandomAccessFile digest methods #31.
- Add: Add Path APIs to org.apache.commons.codec.digest.DigestUtils
similar to File APIs.
- Add: Add SHA-512/224 and SHA-512/256 to DigestUtils for Java 9 and up.
- Add: Add missing note in javadoc when sign extension error is present #34.
- Fix: Reliance on default encoding in MurmurHash2 and MurmurHash3.
- Update: Don't reload standard Charsets in org.apache.commons.codec.Charsets.
- Update: Deprecate Charset constants in org.apache.commons.codec.Charsets
in favor of java.nio.charset.StandardCharsets.
* Release 1.13 - 2019-07-20
- Fix: ColognePhonetic handles x incorrectly.
- Fix: ColognePhonetic does not treat the letter H correctly.
- Fix: Reject any decode request for a value that is impossible to
encode to for Base32/Base64 rather than blindly decoding.
- Add: MurmurHash2 for 32-bit or 64-bit value.
- Add: MurmurHash3 for 32-bit or 128-bit value.
- Update: Broken direct java.nio.ByteBuffer support in
org.apache.commons.codec.binary.Hex.
* Release 1.12 - 2019-02-04
- Fix: B64 salt generator: Random -> ThreadLocalRandom.
- Fix: Wrong value calculated by Cologne Phonetic if a special character
is placed between equal letters.
- Update: Update from Java 6 to Java 7.
- Add: Add Percent-Encoding Codec (described in RFC3986 and RFC7578).
- Fix: ColognePhoneticTest.testIsEncodeEquals missing assertions.
- Add: Add SHA-3 methods in DigestUtils.
-------------------------------------------------------------------
Mon Mar 25 17:23:20 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Remove pom parent, since we don't use it when not building with
maven
-------------------------------------------------------------------
Fri Feb 15 15:39:31 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Update to version 1.11
* New features:
+ Add Automatic-Module-Name manifest entry for Java 9.
Fixes CODEC-242.
+ Add BaseNCodec.encode(byte[], int, int) input with offset and
length parameters for Base64 and Base32. Fixes CODEC-202.
+ Add convenience API org.apache.commons.codec.binary.Hex.
.encodeHexString(byte[]|ByteBuffer, boolean).
Fixes CODEC-224.
+ Add convenience method decodeHex(String). Fixes CODEC-203.
+ Add DigestUtils.getDigest(String, MessageDigest).
Fixes CODEC-210.
+ Add faster CRC32 implementation. Fixes CODEC-205.
+ Add HmacAlgorithms.HMAC_SHA_224 (Java 8 only).
Fixes CODEC-217.
+ Add java.io.File APIs to MessageDigestAlgorithm.
Fixes CODEC-206.
+ Add support for CRC32-C. Fixes CODEC-171.
+ Add support for XXHash32. Fixes CODEC-241.
+ BaseNCodecOutputStream only supports writing EOF on close().
Fixes CODEC-183.
+ Create a minimal Digest command line utility:
org.apache.commons.codec.digest.Digest. Fixes CODEC-212.
+ Fluent interface for DigestUtils. Fixes CODEC-220.
+ Fluent interface for HmacUtils. Fixes CODEC-222.
+ Make some DigestUtils APIs public. Fixes CODEC-208.
+ Support java.nio.ByteBuffer in DigestUtils. Fixes CODEC-193.
+ Support java.nio.ByteBuffer in
org.apache.commons.codec.binary.Hex. Fixes CODEC-194.
+ Support JEP 287: SHA-3 Hash Algorithms. Fixes CODEC-213.
+ Support SHA-224 in DigestUtils on Java 8. Fixes CODEC-195.
* Removed feature:
+ Drop obsolete Ant build. Fixes CODEC-223.
* Changes:
+ Base32.decode should support lowercase letters.
Fixes CODEC-234.
+ HmacUtils.updateHmac calls reset() unnecessarily.
Fixes CODEC-221.
+ Soundex should support more algorithm variants.
Fixes CODEC-233.
* Fixed bugs:
+ Base32.HEX_DECODE_TABLE contains the wrong value 32.
Fixes CODEC-200.
+ Base64.encodeBase64String could better use newStringUsAscii
(ditto encodeBase64URLSafeString). Fixes CODEC-145.
+ BaseNCodec: encodeToString and encodeAsString methods are
identical. Fixes CODEC-144.
+ Bug in HW rule in Soundex. Fixes CODEC-199.
+ Charsets Javadoc breaks build when using Java 8.
Fixes CODEC-207.
+ Don't deprecate Charsets Charset constants in favor of
Java 7's java.nio.charset.StandardCharsets. Fixes CODEC-219.
+ Fix minor resource leaks. Fixes CODEC-225.
+ Javadoc for SHA-224 DigestUtils methods should mention
Java 1.8.0 restriction instead of 1.4.0. Fixes CODEC-209.
+ StringUtils.equals(CharSequence cs1, CharSequence cs2) can
fail with String Index OBE. Fixes CODEC-231.
+ StringUtils.newStringxxx(null) should return null, not NPE.
Fixes CODEC-229.
+ URLCodec is neither immutable nor threadsafe.
Fixes CODEC-232.
+ URLCodec.WWW_FORM_URL should be private. Fixes CODEC-230.
- Generate the Ant build file and use it
- Add an option --with tests and don't run tests by default. This
diminshes the number of dependencies and speeds-up the build.
-------------------------------------------------------------------
Tue Feb 5 12:21:12 UTC 2019 - Fridrich Strba <fstrba@suse.com>
- Clean-up the spec file
-------------------------------------------------------------------
Tue May 15 07:32:20 UTC 2018 - fstrba@suse.com
- Build with source and target 8 to prepare for a possible removal
of 1.6 compatibility
- Run fdupes on documentation
-------------------------------------------------------------------
Fri Sep 29 08:11:16 UTC 2017 - fstrba@suse.com
- Don't condition the maven defines on release version, but on
_maven_repository being defined
-------------------------------------------------------------------
Thu Sep 7 11:59:41 UTC 2017 - fstrba@suse.com
- Build with java source and target versions 1.6
* fixes build with jdk9
-------------------------------------------------------------------
Fri May 19 08:43:40 UTC 2017 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Wed Mar 18 09:45:56 UTC 2015 - tchvatal@suse.com
- Fix build with new javapackages-tools
-------------------------------------------------------------------
Fri Dec 5 11:33:52 UTC 2014 - p.drouand@gmail.com
- Update to version 1.10
New features:
+ Add Daitch-Mokotoff Soundex
Issue: CODEC-192.
+ QuotedPrintableCodec does not support soft line break per the
'quoted-printable' example on Wikipedia
Issue: CODEC-121.
+ Make possible to provide padding byte to BaseNCodec in constructor
Issue: CODEC-181.
Fixed Bugs:
+ Added clarification to Javadoc of Base64 concerning the use of the
urlSafe parameter
Issue: CODEC-185.
+ Added clarification to the Javadoc of Base[32|64]OutputStream that it
is mandatory to call close()
Issue: CODEC-191.
+ Add support for HMAC Message Authentication Code (MAC) digests
Issue: CODEC-188.
+ Beider Morse Phonetic Matching producing incorrect tokens
Issue: CODEC-187.
+ NullPointerException in DoubleMetaPhone.isDoubleMetaphoneEqual when
using empty strings
Issue: CODEC-184.
+ Fix Javadoc 1.8.0 errors
Issue: CODEC-180.
+ Fix Java 8 build Javadoc errors
Issue: CODEC-189.
Changes:
+ Deprecate Charsets Charset constants in favor of Java 7's
java.nio.charset.StandardCharsets
Issue: CODEC-178.
+ Update from commons-parent 34 to 35
Issue: CODEC-190.
- Use javapackages-tools instead of java-devel
- Remove gpg_verify usage; let obs handle it
-------------------------------------------------------------------
Mon Jul 7 15:15:40 UTC 2014 - tchvatal@suse.com
- Set the bytecode properly on sle11
-------------------------------------------------------------------
Mon Jul 7 14:44:56 UTC 2014 - tchvatal@suse.com
- Depend on junit not junit4.
-------------------------------------------------------------------
Sun Jun 22 17:18:33 UTC 2014 - schwab@suse.de
- timeout.patch: avoid spurious timeout in BeiderMorse tests
-------------------------------------------------------------------
Thu May 15 15:35:01 UTC 2014 - darin@darins.net
- disable bytecode check on sle_11
-------------------------------------------------------------------
Mon Sep 9 11:04:10 UTC 2013 - tchvatal@suse.com
- Move from jpackage-utils to javapackage-tools
-------------------------------------------------------------------
Mon Aug 26 14:06:06 UTC 2013 - mvyskocil@suse.com
- update to 1.8
* Add DigestUtils.updateDigest(MessageDigest, InputStream). Thanks to Daniel Cassidy.
* Add JUnit to test our decode with pad character in the middle.
* Add Match Rating Approach (MRA) phonetic algorithm encoder. Thanks to crice.
* ColognePhonetic encoder unnecessarily creates many char arrays on every loop run. Thanks to leo141.
* Base64.encodeBase64URLSafeString doesn't add padding characters at the end.
- temporary add mozilla-nss to BR: to pass tests
- drop unecessary source files
- add signature verification
- use newer add_maven_depmap
- fix source urls
-------------------------------------------------------------------
Mon Apr 2 13:00:19 UTC 2012 - mvyskocil@suse.cz
- add junit4 to fix a build fail
-------------------------------------------------------------------
Tue Feb 28 09:59:47 UTC 2012 - mvyskocil@suse.cz
- update to 1.6, sync with Fedora
-------------------------------------------------------------------
Fri Sep 22 13:24:21 CEST 2006 - skh@suse.de
- don't use icecream
- use target="1.4" for build with java 1.5
-------------------------------------------------------------------
Wed Jan 25 21:46:36 CET 2006 - mls@suse.de
- converted neededforbuild to BuildRequires
-------------------------------------------------------------------
Mon Dec 19 11:53:32 CET 2005 - dbornkessel@suse.de
- Current version 1.3 from JPackage.org

105
apache-commons-codec.spec Normal file
View File

@ -0,0 +1,105 @@
#
# spec file for package apache-commons-codec
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2000-2010, JPackage Project
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define base_name codec
%define short_name commons-%{base_name}
Name: apache-commons-codec
Version: 1.16.1
Release: 0
Summary: Apache Commons Codec Package
License: Apache-2.0
Group: Development/Libraries/Java
URL: https://commons.apache.org/codec/
Source0: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Source1: https://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz.asc
Source2: %{name}-build.xml
# Data in DoubleMetaphoneTest.java originally has an inadmissible license.
# The author gives MIT in e-mail communication.
Source100: aspell-mail.txt
BuildRequires: ant
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6
Requires: java >= 1.8
Provides: jakarta-%{short_name} = %{version}
Obsoletes: jakarta-%{short_name} < %{version}
Provides: %{short_name} = %{version}
Obsoletes: %{short_name} < %{version}
BuildArch: noarch
%description
Commons Codec is an attempt to provide definitive implementations of
commonly used encoders and decoders.
%package javadoc
Summary: Javadoc for %{name}
Group: Documentation/HTML
Provides: jakarta-%{short_name}-javadoc = %{version}
Obsoletes: jakarta-%{short_name}-javadoc < %{version}
Provides: %{short_name}-javadoc = %{version}
Obsoletes: %{short_name}-javadoc < %{version}
%description javadoc
Javadoc for %{name}.
%prep
%setup -q -n %{short_name}-%{version}-src
cp %{SOURCE2} build.xml
cp %{SOURCE100} aspell-mail.txt
#fixes eof encoding
dos2unix RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
%pom_remove_parent .
%build
mkdir -p lib
%{ant} \
jar javadoc
%install
# jars
install -dm 0755 %{buildroot}%{_javadir}
install -pm 0644 target/%{short_name}-%{version}.jar %{buildroot}%{_javadir}/%{short_name}.jar
ln -sf %{short_name}.jar %{buildroot}%{_javadir}/%{name}.jar
# poms
# Install pom file
install -d -m 755 %{buildroot}%{_mavenpomdir}
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{short_name}.pom
%add_maven_depmap %{short_name}.pom %{short_name}.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
%fdupes -s %{buildroot}%{_javadocdir}
%pre javadoc
if [ -L %{_javadocdir}/%{name} ]; then
rm -f %{_javadocdir}/%{name};
fi
%files -f .mfiles
%license LICENSE.txt
%doc RELEASE-NOTES.txt
%{_javadir}/%{name}.jar
%files javadoc
%{_javadocdir}/%{name}
%changelog

85
aspell-mail.txt Normal file
View File

@ -0,0 +1,85 @@
Return-Path: kevina@misc.kevina.org
Received: from zmta06.collab.prod.int.phx2.redhat.com (LHLO
zmta06.collab.prod.int.phx2.redhat.com) (10.5.81.13) by
zmail15.collab.prod.int.phx2.redhat.com with LMTP; Tue, 21 Aug 2012
08:38:00 -0400 (EDT)
Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25])
by zmta06.collab.prod.int.phx2.redhat.com (Postfix) with ESMTP id D74A71609E2
for <tradej@mail.corp.redhat.com>; Tue, 21 Aug 2012 08:37:59 -0400 (EDT)
Received: from mx1.redhat.com (ext-mx15.extmail.prod.ext.phx2.redhat.com [10.5.110.20])
by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q7LCbx5d031748
for <tradej@redhat.com>; Tue, 21 Aug 2012 08:37:59 -0400
Received: from misc.kevina.org (misc.kevina.org [96.126.107.114])
by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7LCbwlx024966
for <tradej@redhat.com>; Tue, 21 Aug 2012 08:37:58 -0400
Received: by misc.kevina.org (Postfix, from userid 1000)
id 576F124ED81; Tue, 21 Aug 2012 08:37:57 -0400 (EDT)
Date: Tue, 21 Aug 2012 14:37:57 +0200 (CEST)
From: Kevin Atkinson <k@kevina.org>
X-X-Sender: kevina@misc.kevina.org
To: Tomas Radej <tradej@redhat.com>
Subject: Re: Aspell results licensing
In-Reply-To: <20120821095056.266cfca47594ad0e03f332f8@redhat.com>
Message-ID: <alpine.DEB.2.02.1208211423550.7113@misc.kevina.org>
References: <20120816110627.3b433e1e1a2cfa2a3c29f8e2@redhat.com> <alpine.DEB.2.02.1208162006450.14875@misc.kevina.org> <20120821095056.266cfca47594ad0e03f332f8@redhat.com>
User-Agent: Alpine 2.02 (DEB 1266 2009-07-14)
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
X-RedHat-Spam-Score: -2.111 (BAYES_00,RP_MATCHES_RCVD)
X-Scanned-By: MIMEDefang 2.68 on 10.5.11.25
X-Scanned-By: MIMEDefang 2.68 on 10.5.110.20
How's this:
Copyright 2007 by Kevin Atkinson
Permission to use, copy, modify, distribute and sell the file
batch0.tab (available at http://aspell.net/test/cur/) is hereby
granted without fee, provided that the above copyright notice appears
in all copies and that both that copyright notice and this permission
notice appear in supporting documentation. Kevin Atkinson makes no
representations about the suitability of this array for any
purpose. It is provided "as is" without express or implied warranty.
2007 since that is the year I belive I last modified the data. Would 2012 be
better?
On Tue, 21 Aug 2012, Tomas Radej wrote:
> Hi,
>
> On Thu, 16 Aug 2012 20:12:27 +0200 (CEST)
> Kevin Atkinson <kevina@gnu.org> wrote:
>
>> If you are using the results than there shouldn't be a problem regardless of
>> what copyright I use.
>
> It's necessary to say that I'm not a maintainer in that project, I
> simply package it into Fedora.
>
>> If the original data file will some how be distributed
>> please let me know what your requirements are and I will see about
>> explicitly
>> assigning a compatible copyright.
>
> While checking the package, I found out that some of the data are
> actually embedded in the code [1], so yes, your data is actually being
> distributed. If I may, I would suggest you use either the MIT/X11
> licence or the 2 or 3 clause BSD licence, as both of these can be
> combined with both the ASL 2.0 licence and GPL v2+ [2].
>
> Thank you, TR
>
> [1]
> http://svn.apache.org/viewvc/commons/proper/codec/trunk/src/test/java/org/apache/commons/codec/language/DoubleMetaphoneTest.java?view=markup
> ,
> line 49 onwards
>
> [2] http://fedoraproject.org/wiki/Licensing:Main#Good_Licenses
>
> --
> Tomas Radej <tradej@redhat.com>
>
>

BIN
commons-codec-1.16.1-src.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,11 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmW/rbcACgkQhv3H4qES
YstJmQgAg76hidrYM7KgNZ2g//GgpDIIRo5HaLM2U3b5QHDzQOvO5ONdB1Q598o9
vpd5KOM26EcG3nep1SOXGvUlITszBfbxLw2pgFhBV7Cg4QN0EKCGTeaDWfs/Fh6Z
WHIpMg1Isq5iJbIB9A4HKHa9wXhuUB36r0IUzhSzeVwd4BcZ09uKgMXao7ugwSdX
ZdN8FmkiNKPDQ3DZyY/aPz80NTrE/02yqvP5JwORxj7T8fsQGKEkUUZkRcxnDn5u
/JXu5mFzAR9ulAak1xdSoNDVHVlaJgbql5eQoIwEifoaScmn8zh+Z9KLANnO/n4I
KMVaL7iVkPkG+ks53IduY431I6XGfw==
=9BdM
-----END PGP SIGNATURE-----