Files
jfreepdf/jfreepdf.spec

73 lines
2.1 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#
# spec file for package jfreepdf
#
# 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/
#
# The automatic requires would be java-headless >= 9, but the
# binaries are java 8 compatible
%define __requires_exclude java-headless
Name: jfreepdf
Version: 2.0
Release: 0
Summary: An implementation of the Graphics2D API that emits PDF
License: GPL-3.0-only
Group: Development/Libraries/Java
URL: http://www.object-refinery.com/orsonpdf/
Source0: https://github.com/jfree/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0: jfreepdf-2.0-java8compat.patch
BuildRequires: fdupes
BuildRequires: java-devel >= 9
BuildRequires: maven-local
Requires: java-headless >= 1.8
BuildArch: noarch
%description
JFreePDF is a library module for the Java(tm) platform that allows you to
create content in Adobes Portable Document Format (PDF) using the standard
Java2D drawing API (Graphics2D). JFreePDF is light-weight, fast, and has no
dependencies other than the Java runtime (11 or later).
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%patch -P 0 -p1
%pom_remove_plugin :maven-javadoc-plugin
%{mvn_file} : %{name}
%build
%{mvn_build} -f
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE
%doc README.md
%files javadoc -f .mfiles-javadoc
%license LICENSE
%changelog