2023-10-30 05:36:26 +00:00
|
|
|
#
|
|
|
|
# spec file for package itext7
|
|
|
|
#
|
2025-01-16 09:56:24 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2023-10-30 05:36:26 +00:00
|
|
|
#
|
|
|
|
# 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
|
2025-06-19 20:25:52 +00:00
|
|
|
Version: 9.2.0
|
2023-10-30 05:36:26 +00:00
|
|
|
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
|
2025-06-19 20:25:52 +00:00
|
|
|
%autosetup
|
2023-10-30 05:36:26 +00:00
|
|
|
|
|
|
|
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
|
2025-06-19 20:25:52 +00:00
|
|
|
%pom_remove_plugin org.codehaus.mojo:tidy-maven-plugin
|
|
|
|
%pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin
|
2023-10-30 05:36:26 +00:00
|
|
|
|
|
|
|
%pom_disable_module bouncy-castle-fips-adapter
|
|
|
|
%pom_disable_module pdftest
|
|
|
|
|
|
|
|
%pom_remove_dep com.itextpdf:bouncy-castle-fips-adapter bouncy-castle-connector
|
2025-06-19 20:25:52 +00:00
|
|
|
%pom_remove_dep -r sharpen:sharpen-config
|
2023-10-30 05:36:26 +00:00
|
|
|
|
|
|
|
%{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
|