# # spec file for package openpdf # # Copyright (c) 2025 SUSE LLC and contributors # # 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/ # Name: openpdf Version: 2.4.0 Release: 0 Summary: A free Java library for creating and editing PDF files License: LGPL-2.1-only AND MPL-2.0 Group: Development/Libraries/Java URL: https://github.com/LibrePDF/OpenPDF Source: %{url}/archive/refs/tags/%{version}.tar.gz BuildRequires: fdupes BuildRequires: java-devel >= 17 BuildRequires: maven-local BuildRequires: mvn(com.google.errorprone:error_prone_annotations) BuildRequires: mvn(com.ibm.icu:icu4j) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.xmlgraphics:fop) BuildRequires: mvn(org.bouncycastle:bcpkix-jdk18on) BuildRequires: mvn(org.bouncycastle:bcprov-jdk18on) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(org.dom4j:dom4j) BuildRequires: mvn(org.htmlunit:neko-htmlunit) BuildRequires: mvn(org.jfree:jcommon) BuildRequires: mvn(org.jfree:jfreechart) BuildRequires: mvn(org.jspecify:jspecify) BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.swinglabs:pdf-renderer) BuildArch: noarch %description OpenPDF is a Java library for creating and editing PDF files. OpenPDF is based on a fork of iText. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q -n OpenPDF-%{version} %pom_remove_plugin org.jacoco:jacoco-maven-plugin %pom_remove_plugin org.sonatype.central:central-publishing-maven-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_disable_module openpdf-kotlin %build %{mvn_build} -f -- -DlegacyMode=true -Dverbose=true -Djava.version=17 %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENSE.md %{name}-core-modern/src/main/resources/META-INF/{MPL-2.0.txt,LGPL-2.1.md} %doc {README,CONTRIBUTING}.md %files javadoc -f .mfiles-javadoc %license LICENSE.md %{name}-core-modern/src/main/resources/META-INF/{MPL-2.0.txt,LGPL-2.1.md} %changelog