# # spec file for package pdfbox-graphics2d # # Copyright (c) 2024 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/ # Name: pdfbox-graphics2d Version: 0.44 Release: 0 Summary: Graphics2D Bridge for pdfbox License: Apache-2.0 Group: Development/Libraries/Java URL: https://github.com/rototor/%{name} Source0: %{url}/archive/refs/tags/pdfboxgraphics2d-parent-%{version}.tar.gz BuildRequires: fdupes BuildRequires: maven-local BuildRequires: mvn(org.apache.pdfbox:pdfbox) BuildArch: noarch %description Using this library you can use any Graphics2D API based SVG / graph / chart library to embed those graphics as vector drawing in a PDF. In combination with PDFBox PDFRenderer/PageDrawer you can also “rerender” PDF pages and change certain aspects. E.g. change the color mapping and perform an overfill. Now also it’s possible to setup masking of all draw()/fill() calls. Think of this like an additional clipping, just that this supports bitmap images and complete complex drawings (XForm’s) as alpha masks. %package javadoc Summary: API documentation for %{name} Group: Documentation/HTML %description javadoc API documentation for %{name}. %prep %setup -q -n %{name}-pdfboxgraphics2d-parent-%{version} %pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin %pom_remove_plugin :maven-compiler-plugin %build %{mvn_build} -f -- -Dsource=8 %install %mvn_install %fdupes %{buildroot}%{_javadocdir}/%{name} %files -f .mfiles %license LICENSE-2.0.txt %doc README.md %files javadoc -f .mfiles-javadoc %license LICENSE-2.0.txt %changelog