Files
itext7/itext7.spec
Fridrich Strba a32a6b602f Accepting request 1287000 from home:urbic:branches:Java:packages
- Update to v9.2.0
  * New features
    + Automated checks for PDF/UA-2 Validation
    + Introduce PDF 2.0 tag structure checker
  * Improvements
    + toLowerCase/toUpperCase locale independent usage
    + Added copyright attribution clarification for jsoup-related
      files
  * Bug fixes
    + Cell with non breakable content and not enough horizontal
      space leads to page break and data loss
    + Font selection breaks tag structure
    + BitsPerComponent: 1 and Indexed DeviceRgb failes with "The
      color depth 1 is not supported error."
    + Wrapping ListItem content in a Div with list symbol inside
      causes wrongly aligned content
    + KeepWithNext property causing formatting issue
    + PDF 2.0 does not allow DIV, P tags to be children of the P
      tag
    + PDF 2.0 does not allow P, Hn tags to be children of the Form
      tag
    + PDF 2.0 documents should not contain Document tag if it does
      not contain any content
    + Improve AESCipherCBCnoPad documentation
    + sxHeight is not set in OS/2 table metrics when processing TTF
      fonts
    + Standard security handler issue with long value for user
      access permissions
    + Wrong relative width calculations for hr tag
    + Distinguished Name comparison should be done using the
      equivalent method instead of the equals method
    + Incorrect producer line for LTA signatures in AGPL mode
    + PdfDocument Constructor causes endless loop
    + setAlternativeDescription doesn't set Contents entry for
      PdfSigner
    + PdfUAConformanceException when SignatureFieldAppearance
      contains Image
- Update to v9.1.0
  * New features
    + Implement Text - Advanced Fonts
    + SVG Text text-decoration
    + Clipping paths on text
    + Support ‘marker-mid’ property
    + Support underlined text, dashed lines
    + Pass markers from <g> element to its children
    + Support display none and visibility hidden (except text)
  * Improvements
    + Table performance improvements
    + Typography usage in SVG
    + Support relative sized SVG in img and object HTML elements
    + Support ‘direction’ property
    + Text position improvements
    + Add default fonts to BasicFontProvider for SVG
    + Check childLength calculations with several fonts
    + Text Whitespace handling
    + Support stroke dash pattern in layout for text elements
    + Support MAC integrity protection in two step signing
    + OCSP verifier support alternate CertID representations
    + Provide injecting of http, ocsp and crl clients in validation
      chain
    + Re-evaluate Basic constraints handling of pathLenConstraint
    + Improve documentation for FontProvider.addFont methods
    + PdfFontFactory.registerDirectory recursive search
    + Add support for multiple parents in PdfLayer
    + Inconsitent id when creating formFieldElements
    + Make EventManager thread-safe
    + Update verapdf to the latest version
  * Bug fixes
    + BIDI is not correct when converting SVG
    + <polygon>: tops of figures are cut
    + Fix percent width&height resolving of top level SVG when it
      is used from html
    + Improve relative values support
    + Support color related style attribute and values for SVG image
    + Division by zero in
      AbstractBranchSvgNodeRenderer#calculateAndApplyViewBox
      results in NPE at
    + PdfFormXObject#calculateBBoxMultipliedByMatrix level
    + SVG transformation matrix applied incorrectly
    + Improve viewBox applying for AbstractBranchSvgNodeRenderer
    + Get rid of unexpected deformation when rotating a marker with
      preserveAspectRatio="none"
    + Wrong displaying of svg if invalid url attribute for fill
      property set
    + Rounded rectangle with rx or ry negative displayed
      incorrectly
    + Incorrect display of ellipse with absent Rx, Ry
    + SVG, SXP: transformations with invalid arguments cause NPE
    + addAnnotation method doesn't annotate content elements with
      Annot tag when PDF version is 2.0
    + Renderer splitup issue
    + Flex container with table splitup issue
    + Error decoding stream with FlateDecodeFilter and DecodeParams
    + Timestamp signature validation fails over encapMessageContent
    + Set print flag to the newly created signature field in
      PdfSigner
    + Default font size is calculated incorrectly for rotated form
      fields
    + Fix explicit destination handling in case of Remote go-to and
      Embedded go-to actions

OBS-URL: https://build.opensuse.org/request/show/1287000
OBS-URL: https://build.opensuse.org/package/show/Java:packages/itext7?expand=0&rev=5
2025-06-19 20:25:52 +00:00

271 lines
6.1 KiB
RPMSpec

#
# spec file for package itext7
#
# Copyright (c) 2025 SUSE LLC
#
# 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/
#
%global desc iText for Java represents the next level of SDKs for developers that want to\
take advantage of the benefits PDF can bring. Equipped with a better document\
engine, high and low-level programming capabilities and the ability to create,\
edit and enhance PDF documents, iText can be a boon to nearly every workflow.
Name: itext7
Version: 9.2.0
Release: 0
Summary: A fully-featured SDK for PDF development
# iText is dual licensed as AGPL/Commercial software.
# Commercial license: http://itextpdf.com/sales
License: AGPL-3.0-only
Group: Development/Libraries/Java
URL: https://itextpdf.com/en/products/itext-7
Source0: %{name}-%{version}.tar.xz
Source1: %{name}.rpmlintrc
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk18on)
BuildArch: noarch
%description
%{desc}
%package barcodes
Summary: iText barcodes
%description barcodes
%{summary} module: use this if you want to create bar codes.
%{desc}
%package bouncy-castle-adapter
Summary: iText Bouncy Castle Adapter
%description bouncy-castle-adapter
%{summary} module: use this to apply BouncyCastle as low-level cryptography
library.
%{desc}
%package bouncy-castle-connector
Summary: iText Bouncy Castle Connector
%description bouncy-castle-connector
%{summary} module: auxiliary internal module.
%{desc}
%package font-asian
Summary: iText Asian fonts
%description font-asian
%{summary} module: use this is you need CJK functionality
(Chinese/Japanese/Korean).
%{desc}
%package commons
Summary: iText commons
%description commons
%{summary} module.
%{desc}
%package forms
Summary: iText forms
%description forms
%{summary} module: AcroForms.
%{desc}
%package hyph
Summary: iText hyph
%description hyph
%{summary} module: use this if you want text to be hyphenated.
%{desc}
%package io
Summary: iText io
%description io
%{summary} module: low-level functionality.
%{desc}
%package kernel
Summary: iText kernel
%description kernel
%{summary} module: low-level functionality.
%{desc}
%package layout
Summary: iText layout
%description layout
%{summary} module: high-level functionality.
%{desc}
%package pdfa
Summary: iText pdfa
%description pdfa
%{summary} module: PDF/A-specific functionality.
%{desc}
%package sign
Summary: iText sign
%description sign
%{summary} module: use this if you need support for digital signatures.
%{desc}
%package styled-xml-parser
Summary: iText Styled XML Parser
%description styled-xml-parser
%{summary} module: use this if you need support for SVG or html2pdf.
%{desc}
%package svg
Summary: iText SVG
%description svg
%{summary} module: SVG support.
%{desc}
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%autosetup
sed -i -e '/Android-Conversion-Skip-Line/d' \
bouncy-castle-connector/src/main/java/com/itextpdf/bouncycastleconnector/BouncyCastleFactoryCreator.java
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin org.pitest:pitest-maven font-asian hyph
%pom_remove_plugin org.codehaus.mojo:tidy-maven-plugin
%pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin
%pom_disable_module bouncy-castle-fips-adapter
%pom_disable_module pdftest
%pom_remove_dep com.itextpdf:bouncy-castle-fips-adapter bouncy-castle-connector
%pom_remove_dep -r sharpen:sharpen-config
%{mvn_package} :root __noinstall
%{mvn_package} :{barcodes} @1
%{mvn_package} :{bouncy-castle-*} @1
%{mvn_package} :{commons} @1
%{mvn_package} :core::pom __default
%{mvn_package} :{font-asian} @1
%{mvn_package} :{forms} @1
%{mvn_package} :{hyph} @1
%{mvn_package} :{io} @1
%{mvn_package} :{kernel} @1
%{mvn_package} :{layout} @1
%{mvn_package} :{pdfa} @1
%{mvn_package} :{sign} @1
%{mvn_package} :{styled-xml-parser} @1
%{mvn_package} :{svg} @1
%build
%{mvn_build} -f -- \
-Dproject.build.outputTimestamp=$(date -u -d @${SOURCE_DATE_EPOCH:-$(date +%%s)} +%%Y-%%m-%%dT%%H:%%M:%%SZ)
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE.md
%doc README.md
%files bouncy-castle-adapter -f .mfiles-bouncy-castle-adapter
%license LICENSE.md
%doc README.md
%files bouncy-castle-connector -f .mfiles-bouncy-castle-connector
%license LICENSE.md
%doc README.md
%files barcodes -f .mfiles-barcodes
%license LICENSE.md
%doc README.md
%files commons -f .mfiles-commons
%license LICENSE.md
%doc README.md
%files font-asian -f .mfiles-font-asian
%license LICENSE.md
%doc README.md
%files forms -f .mfiles-forms
%license LICENSE.md
%doc README.md
%files hyph -f .mfiles-hyph
%license LICENSE.md
%doc README.md
%files io -f .mfiles-io
%license LICENSE.md
%doc README.md
%files kernel -f .mfiles-kernel
%license LICENSE.md
%doc README.md
%files layout -f .mfiles-layout
%license LICENSE.md
%doc README.md
%files pdfa -f .mfiles-pdfa
%license LICENSE.md
%doc README.md
%files sign -f .mfiles-sign
%license LICENSE.md
%doc README.md
%files styled-xml-parser -f .mfiles-styled-xml-parser
%license LICENSE.md
%doc README.md
%files svg -f .mfiles-svg
%license LICENSE.md
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE.md
%changelog