Accepting request 1147650 from Java:packages

1.16.1

OBS-URL: https://build.opensuse.org/request/show/1147650
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/apache-commons-codec?expand=0&rev=25
This commit is contained in:
Ana Guerrero 2024-02-21 16:52:00 +00:00 committed by Git OBS Bridge
commit 617a6156a4
7 changed files with 57 additions and 148 deletions

View File

@ -10,7 +10,7 @@
<property name="project.groupId" value="commons-codec"/> <property name="project.groupId" value="commons-codec"/>
<property name="project.artifactId" value="commons-codec"/> <property name="project.artifactId" value="commons-codec"/>
<property name="project.version" value="1.16.0"/> <property name="project.version" value="1.16.1"/>
<property name="project.name" value="Apache Commons Codec"/> <property name="project.name" value="Apache Commons Codec"/>
<property name="project.description" value="The Apache Commons Codec package <property name="project.description" value="The Apache Commons Codec package
contains simple encoder and decoders for various formats such as Base64 and Hexadecimal. contains simple encoder and decoders for various formats such as Base64 and Hexadecimal.
@ -22,7 +22,8 @@ collection of phonetic encoding utilities."/>
<property name="bundle.version" value="${project.version}.0"/> <property name="bundle.version" value="${project.version}.0"/>
<property name="bundle.symbolicName" value="org.apache.commons.codec"/> <property name="bundle.symbolicName" value="org.apache.commons.codec"/>
<property name="compiler.source" value="1.6"/> <property name="compiler.release" value="8"/>
<property name="compiler.source" value="1.${compiler.release}"/>
<property name="compiler.target" value="${compiler.source}"/> <property name="compiler.target" value="${compiler.source}"/>
<property name="build.finalName" value="${project.artifactId}-${project.version}"/> <property name="build.finalName" value="${project.artifactId}-${project.version}"/>
@ -31,20 +32,14 @@ collection of phonetic encoding utilities."/>
<property name="build.srcDir" value="src/main/java"/> <property name="build.srcDir" value="src/main/java"/>
<property name="build.resourceDir.0" value="src/main/resources"/> <property name="build.resourceDir.0" value="src/main/resources"/>
<property name="build.resourceDir.1" value="."/> <property name="build.resourceDir.1" value="."/>
<property name="build.testOutputDir" value="${build.dir}/test-classes"/>
<property name="build.testDir" value="src/test/java"/>
<property name="build.testResourceDir.0" value="src/test/resources"/>
<property name="build.testResourceDir.1" value="."/>
<property name="test.reports" value="${build.dir}/test-reports"/>
<property name="reporting.outputDirectory" value="${build.dir}/site"/> <property name="reporting.outputDirectory" value="${build.dir}/site"/>
<!-- ====================================================================== --> <!-- ====================================================================== -->
<!-- Defining classpaths --> <!-- Defining classpaths -->
<!-- ====================================================================== --> <!-- ====================================================================== -->
<path id="build.classpath"/> <path id="build.classpath">
<path id="build.test.classpath">
<!-- junit-4.12 hamcrest-core-1.3 commons-lang3-3.5 -->
<fileset dir="lib"> <fileset dir="lib">
<include name="**/*.jar"/> <include name="**/*.jar"/>
</fileset> </fileset>
@ -71,6 +66,7 @@ collection of phonetic encoding utilities."/>
optimize="false" optimize="false"
deprecation="true" deprecation="true"
target="${compiler.target}" target="${compiler.target}"
release="${compiler.release}"
verbose="false" verbose="false"
fork="false" fork="false"
source="${compiler.source}"> source="${compiler.source}">
@ -91,110 +87,6 @@ collection of phonetic encoding utilities."/>
</copy> </copy>
</target> </target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="test.skip">
<mkdir dir="${build.testOutputDir}"/>
<javac destdir="${build.testOutputDir}"
encoding="UTF-8"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="${compiler.target}"
verbose="false"
fork="false"
source="${compiler.source}">
<src>
<pathelement location="${build.testDir}"/>
</src>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${build.outputDir}"/>
</classpath>
</javac>
<copy todir="${build.testOutputDir}">
<fileset dir="${build.testResourceDir.0}"/>
</copy>
<mkdir dir="${build.testOutputDir}/META-INF"/>
<copy todir="${build.testOutputDir}/META-INF">
<fileset dir="${build.testResourceDir.1}">
<include name="NOTICE.txt"/>
<include name="LICENSE.txt"/>
</fileset>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${build.outputDir}"/>
<pathelement location="${build.testOutputDir}"/>
</classpath>
<batchtest todir="${test.reports}" unless="test">
<fileset dir="${build.testDir}">
<include name="**/Test*.java"/>
<include name="**/*Test.java"/>
<include name="**/*TestCase.java"/>
<exclude name="**/*AbstractTest.java"/>
<exclude name="**/*PerformanceTest.java"/>
</fileset>
</batchtest>
<batchtest todir="${test.reports}" if="test">
<fileset dir="${build.testDir}">
<include name="**/${test}.java"/>
<exclude name="**/*AbstractTest.java"/>
<exclude name="**/*PerformanceTest.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present" classpathref="build.test.classpath"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in the test classpath or your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target>
<!-- ====================================================================== --> <!-- ====================================================================== -->
<!-- Javadoc target --> <!-- Javadoc target -->
<!-- ====================================================================== --> <!-- ====================================================================== -->
@ -204,7 +96,6 @@ collection of phonetic encoding utilities."/>
packagenames="*" packagenames="*"
destdir="${reporting.outputDirectory}/apidocs" destdir="${reporting.outputDirectory}/apidocs"
access="protected" access="protected"
old="false"
verbose="false" verbose="false"
encoding="UTF-8" encoding="UTF-8"
version="true" version="true"
@ -229,7 +120,7 @@ collection of phonetic encoding utilities."/>
<!-- Package target --> <!-- Package target -->
<!-- ====================================================================== --> <!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application"> <target name="package" depends="compile" description="Package the application">
<jar jarfile="${build.dir}/${build.finalName}.jar" <jar jarfile="${build.dir}/${build.finalName}.jar"
compress="true" compress="true"
index="false" index="false"

View File

@ -1,3 +1,36 @@
-------------------------------------------------------------------
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> Wed Oct 18 11:30:31 UTC 2023 - David Anes <david.anes@suse.com>

View File

@ -1,7 +1,7 @@
# #
# spec file for package apache-commons-codec # spec file for package apache-commons-codec
# #
# Copyright (c) 2023 SUSE LLC # Copyright (c) 2024 SUSE LLC
# Copyright (c) 2000-2010, JPackage Project # Copyright (c) 2000-2010, JPackage Project
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
@ -19,9 +19,8 @@
%define base_name codec %define base_name codec
%define short_name commons-%{base_name} %define short_name commons-%{base_name}
%bcond_with tests
Name: apache-commons-codec Name: apache-commons-codec
Version: 1.16.0 Version: 1.16.1
Release: 0 Release: 0
Summary: Apache Commons Codec Package Summary: Apache Commons Codec Package
License: Apache-2.0 License: Apache-2.0
@ -44,13 +43,6 @@ Obsoletes: jakarta-%{short_name} < %{version}
Provides: %{short_name} = %{version} Provides: %{short_name} = %{version}
Obsoletes: %{short_name} < %{version} Obsoletes: %{short_name} < %{version}
BuildArch: noarch BuildArch: noarch
%if %{with tests}
BuildRequires: ant-junit >= 1.7
BuildRequires: apache-commons-lang3
BuildRequires: hamcrest-core
BuildRequires: junit
BuildRequires: mozilla-nss
%endif
%description %description
Commons Codec is an attempt to provide definitive implementations of Commons Codec is an attempt to provide definitive implementations of
@ -79,14 +71,7 @@ dos2unix RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt
%build %build
mkdir -p lib mkdir -p lib
%if %{with tests} %{ant} \
build-jar-repository -s lib junit4 hamcrest/core commons-lang3
%endif
ant \
%if %{without tests}
-Dtest.skip=true \
%endif
-Dcompiler.source=1.8 -Dcompiler.target=1.8 \
jar javadoc jar javadoc
%install %install

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f2f239ae00483b3389b5f49ad19aa45cc087413241b3408b9c3e522fdc298e73
size 447581

View File

@ -1,11 +0,0 @@
-----BEGIN PGP SIGNATURE-----
iQEzBAABCgAdFiEELbTx7w+nYezE6pNchv3H4qESYssFAmSOTJMACgkQhv3H4qES
YsuaBQf/X7AH5EDgXkA4H9mIY/pARs/Gt1cYhlmHPlmWEInN3W5ZYSynRXTWPV9Y
r/6vvsYUjdG3xPrwZuAo54V4mktCqZWkSUQFREBibSqk5gqy6E6HDYVUg5tdYom2
lNnNQIm3r6amjlFzxxR5mo+yyBQIySg1dhOMn0J/2pjYyBzx1TZpyGrDoRVJMCIg
SwCx46/xRu3+898zG87BPouSbRxPx5+ws33jOwF4iL3McyJZs7bWwxEVtwxK9bQL
bRtcT6yWT7xfgME0dE0bJYqrhCKbHo6P60+/alfKMmfwwU6NbfWa78CfhoZa+1qK
sHRNqTO5mFEe4DRMVbDOrnZuG0CBQQ==
=y18z
-----END PGP SIGNATURE-----

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-----