Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package itextpdf for openSUSE:Factory 
checked in at 2021-01-18 14:38:53
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/itextpdf (Old)
 and      /work/SRC/openSUSE:Factory/.itextpdf.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "itextpdf"

Mon Jan 18 14:38:53 2021 rev:2 rq:862840 version:5.5.13.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/itextpdf/itextpdf.changes        2020-07-16 
12:19:53.603052132 +0200
+++ /work/SRC/openSUSE:Factory/.itextpdf.new.28504/itextpdf.changes     
2021-01-18 14:45:55.314029136 +0100
@@ -1,0 +2,11 @@
+Mon Jan 11 16:28:16 UTC 2021 - Fridrich Strba <[email protected]>
+
+- Upgrade to version 5.5.13.2
+- Removed patch:
+  * itextpdf-5.5.13.1-bouncycastle.patch
+    + Integrated upstream
+- Added patch:
+  * itextpdf-5.5.13.2-bouncycastle.patch
+    + fix build with bouncycastle 1.68
+
+-------------------------------------------------------------------

Old:
----
  5.5.13.1.tar.gz
  itextpdf-5.5.13.1-bouncycastle.patch

New:
----
  5.5.13.2.tar.gz
  itextpdf-5.5.13.2-bouncycastle.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ itextpdf.spec ++++++
--- /var/tmp/diff_new_pack.umGJzJ/_old  2021-01-18 14:45:57.014031699 +0100
+++ /var/tmp/diff_new_pack.umGJzJ/_new  2021-01-18 14:45:57.018031705 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package itextpdf
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,14 +17,14 @@
 
 
 Name:           itextpdf
-Version:        5.5.13.1
+Version:        5.5.13.2
 Release:        0
 Summary:        A Free Java-PDF library
 License:        AGPL-3.0-only
 Group:          Development/Libraries/Java
 URL:            https://itextpdf.com
 Source0:        https://github.com/itext/%{name}/archive/%{version}.tar.gz
-Patch0:         itextpdf-5.5.13.1-bouncycastle.patch
+Patch0:         itextpdf-5.5.13.2-bouncycastle.patch
 BuildRequires:  fdupes
 BuildRequires:  maven-local
 BuildRequires:  mvn(com.itextpdf:itext-parent:pom:)
@@ -33,8 +33,7 @@
 BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
 BuildRequires:  mvn(org.apache.santuario:xmlsec)
 BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on)
-BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
-BuildRequires:  mvn(org.codehaus.mojo:buildnumber-maven-plugin)
+BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15to18)
 BuildArch:      noarch
 
 %description
@@ -54,7 +53,7 @@
 This package contains the API documentation for %{name}.
 
 %prep
-%setup -q -n %{name}-%{version}
+%setup -q
 %patch0 -p1
 
 # Both need git access during the build
@@ -62,7 +61,7 @@
 %pom_remove_plugin -r :buildnumber-maven-plugin
 
 %build
-%mvn_build -f
+%{mvn_build} -f
 
 %install
 %mvn_install

++++++ 5.5.13.1.tar.gz -> 5.5.13.2.tar.gz ++++++
/work/SRC/openSUSE:Factory/itextpdf/5.5.13.1.tar.gz 
/work/SRC/openSUSE:Factory/.itextpdf.new.28504/5.5.13.2.tar.gz differ: char 12, 
line 1

++++++ itextpdf-5.5.13.1-bouncycastle.patch -> 
itextpdf-5.5.13.2-bouncycastle.patch ++++++
--- /work/SRC/openSUSE:Factory/itextpdf/itextpdf-5.5.13.1-bouncycastle.patch    
2020-07-16 12:19:52.491051008 +0200
+++ 
/work/SRC/openSUSE:Factory/.itextpdf.new.28504/itextpdf-5.5.13.2-bouncycastle.patch
 2021-01-18 14:45:55.218028992 +0100
@@ -1,47 +1,63 @@
---- 
itextpdf-5.5.13.1/itext/src/main/java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java
   2019-06-12 16:14:36.000000000 +0200
-+++ 
itextpdf-5.5.13.1/itext/src/main/java/com/itextpdf/text/pdf/security/OcspClientBouncyCastle.java
   2020-07-07 10:38:09.508197178 +0200
-@@ -69,7 +69,6 @@
- import org.bouncycastle.cert.ocsp.OCSPReqBuilder;
- import org.bouncycastle.cert.ocsp.OCSPResp;
- import org.bouncycastle.cert.ocsp.SingleResp;
--import org.bouncycastle.ocsp.OCSPRespStatus;
- import org.bouncycastle.operator.OperatorException;
- import org.bouncycastle.operator.jcajce.JcaDigestCalculatorProviderBuilder;
- 
-@@ -120,7 +119,7 @@
-             if (ocspResponse == null) {
-                 return null;
-             }
--            if (ocspResponse.getStatus() != OCSPRespStatus.SUCCESSFUL) {
-+            if (ocspResponse.getStatus() != OCSPResp.SUCCESSFUL) {
-                 return null;
-             }
-             BasicOCSPResp basicResponse = (BasicOCSPResp) 
ocspResponse.getResponseObject();
-@@ -154,7 +153,7 @@
-                     Object status = resp.getCertStatus();
-                     if (status == CertificateStatus.GOOD) {
-                         return basicResponse.getEncoded();
--                    } else if (status instanceof 
org.bouncycastle.ocsp.RevokedStatus) {
-+                    } else if (status instanceof 
org.bouncycastle.cert.ocsp.RevokedStatus) {
-                         throw new 
IOException(MessageLocalization.getComposedMessage("ocsp.status.is.revoked"));
-                     } else {
-                         throw new 
IOException(MessageLocalization.getComposedMessage("ocsp.status.is.unknown"));
---- 
itextpdf-5.5.13.1/itext/src/main/java/com/itextpdf/text/pdf/security/SignaturePolicyInfo.java
      2019-06-12 16:14:36.000000000 +0200
-+++ 
itextpdf-5.5.13.1/itext/src/main/java/com/itextpdf/text/pdf/security/SignaturePolicyInfo.java
      2020-07-07 10:38:09.508197178 +0200
-@@ -43,6 +43,7 @@
- package com.itextpdf.text.pdf.security;
+--- 
itextpdf-5.5.13.2/itext/src/main/java/com/itextpdf/text/pdf/PdfPublicKeySecurityHandler.java
       2020-08-26 14:17:48.000000000 +0200
++++ 
itextpdf-5.5.13.2/itext/src/main/java/com/itextpdf/text/pdf/PdfPublicKeySecurityHandler.java
       2021-01-11 16:56:48.548289080 +0100
+@@ -102,11 +102,11 @@
+ import javax.crypto.SecretKey;
  
+ import org.bouncycastle.asn1.ASN1InputStream;
++import org.bouncycastle.asn1.ASN1OutputStream;
+ import org.bouncycastle.asn1.ASN1Primitive;
+ import org.bouncycastle.asn1.ASN1ObjectIdentifier;
+ import org.bouncycastle.asn1.ASN1Set;
+ import org.bouncycastle.asn1.DEROctetString;
+-import org.bouncycastle.asn1.DEROutputStream;
+ import org.bouncycastle.asn1.DERSet;
+ import org.bouncycastle.asn1.cms.ContentInfo;
+ import org.bouncycastle.asn1.cms.EncryptedContentInfo;
+@@ -194,7 +194,7 @@
+ 
+         ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ 
+-        DEROutputStream k = new DEROutputStream(baos);
++        ASN1OutputStream k = new ASN1OutputStream(baos);
+ 
+         k.writeObject(obj);
+ 
+--- 
itextpdf-5.5.13.2/itext/src/main/java/com/itextpdf/text/pdf/security/PdfPKCS7.java
 2020-08-26 14:17:48.000000000 +0200
++++ 
itextpdf-5.5.13.2/itext/src/main/java/com/itextpdf/text/pdf/security/PdfPKCS7.java
 2021-01-11 17:25:12.954678589 +0100
+@@ -806,7 +806,7 @@
+             // Add the digestAlgorithm
+             v = new ASN1EncodableVector();
+             v.add(new ASN1ObjectIdentifier(digestAlgorithmOid));
+-            v.add(new DERNull());
++            v.add(DERNull.INSTANCE);
+             signerinfo.add(new DERSequence(v));
+ 
+             // add the authenticated attribute if present
+@@ -816,7 +816,7 @@
+             // Add the digestEncryptionAlgorithm
+             v = new ASN1EncodableVector();
+             v.add(new ASN1ObjectIdentifier(digestEncryptionAlgorithmOid));
+-            v.add(new DERNull());
++            v.add(DERNull.INSTANCE);
+             signerinfo.add(new DERSequence(v));
+ 
+             // Add the digest
+--- 
itextpdf-5.5.13.2/itext/src/main/java/com/itextpdf/text/pdf/security/SignaturePolicyInfo.java
      2020-08-26 14:17:48.000000000 +0200
++++ 
itextpdf-5.5.13.2/itext/src/main/java/com/itextpdf/text/pdf/security/SignaturePolicyInfo.java
      2021-01-11 17:00:06.005489701 +0100
+@@ -45,7 +45,6 @@
+ import org.bouncycastle.asn1.ASN1ObjectIdentifier;
  import com.itextpdf.text.pdf.codec.Base64;
-+import org.bouncycastle.asn1.ASN1ObjectIdentifier;
  import org.bouncycastle.asn1.DERIA5String;
- import org.bouncycastle.asn1.DERObjectIdentifier;
+-import org.bouncycastle.asn1.DERObjectIdentifier;
  import org.bouncycastle.asn1.DEROctetString;
-@@ -118,7 +120,7 @@
+ import org.bouncycastle.asn1.esf.*;
+ import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
+@@ -118,7 +117,7 @@
+         }
          SigPolicyQualifiers qualifiers = new SigPolicyQualifiers(new 
SigPolicyQualifierInfo[] {spqi});
  
-         signaturePolicyIdentifier = new SignaturePolicyIdentifier(new 
SignaturePolicyId(DERObjectIdentifier.getInstance(new 
DERObjectIdentifier(this.policyIdentifier.replace("urn:oid:", ""))),
--                new OtherHashAlgAndValue(new AlgorithmIdentifier(algId), new 
DEROctetString(this.policyHash)), qualifiers));
-+                new OtherHashAlgAndValue(new AlgorithmIdentifier(new 
ASN1ObjectIdentifier(algId)), new DEROctetString(this.policyHash)), 
qualifiers));
+-        signaturePolicyIdentifier = new SignaturePolicyIdentifier(new 
SignaturePolicyId(DERObjectIdentifier.getInstance(new 
DERObjectIdentifier(this.policyIdentifier.replace("urn:oid:", ""))),
++        signaturePolicyIdentifier = new SignaturePolicyIdentifier(new 
SignaturePolicyId(ASN1ObjectIdentifier.getInstance(new 
ASN1ObjectIdentifier(this.policyIdentifier.replace("urn:oid:", ""))),
+                 new OtherHashAlgAndValue(new AlgorithmIdentifier(new 
ASN1ObjectIdentifier(algId)), new DEROctetString(this.policyHash)), 
qualifiers));
  
          return signaturePolicyIdentifier;
-     }

Reply via email to