2023-09-10 17:32:57 +00:00
|
|
|
|
#
|
|
|
|
|
# spec file for package pdfbox-graphics2d
|
|
|
|
|
#
|
2024-05-21 14:03:15 +00:00
|
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2023-09-10 17:32:57 +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/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Name: pdfbox-graphics2d
|
2024-05-21 14:03:15 +00:00
|
|
|
|
Version: 0.44
|
2023-09-10 17:32:57 +00:00
|
|
|
|
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
|
2023-09-15 07:00:13 +00:00
|
|
|
|
BuildRequires: fdupes
|
2023-09-10 17:32:57 +00:00
|
|
|
|
BuildRequires: maven-local
|
2023-09-15 07:00:13 +00:00
|
|
|
|
BuildRequires: mvn(org.apache.pdfbox:pdfbox)
|
2023-09-10 17:32:57 +00:00
|
|
|
|
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
|
2023-09-15 06:59:47 +00:00
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
2023-09-10 17:32:57 +00:00
|
|
|
|
%pom_remove_plugin :maven-source-plugin
|
|
|
|
|
%pom_remove_plugin :maven-compiler-plugin
|
|
|
|
|
|
|
|
|
|
%build
|
2025-03-27 21:53:15 +00:00
|
|
|
|
%{mvn_build} -f -- -Dsource=8
|
2023-09-10 17:32:57 +00:00
|
|
|
|
|
|
|
|
|
%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
|