Files
openhtmltopdf/openhtmltopdf.spec

79 lines
2.5 KiB
RPMSpec

#
# spec file for package openhtmltopdf
#
# Copyright (c) 2023 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: openhtmltopdf
Version: 1.0.10
Release: 0
Summary: An HTML to PDF library for the JVM
License: LGPL-2.1-only OR LGPL-3.0-only
Group: Development/Libraries/Java
URL: https://danfickle.github.io/pdf-templates/index.html
Source0: https://github.com/danfickle/%{name}/archive/refs/tags/%{name}-parent-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: maven-local
BuildRequires: mvn(com.google.zxing:javase)
BuildRequires: mvn(com.ibm.icu:icu4j)
BuildRequires: mvn(de.rototor.pdfbox:graphics2d)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.xmlgraphics:batik-i18n)
BuildRequires: mvn(org.jfree:jfreechart)
BuildArch: noarch
%description
Open HTML to PDF is a pure-Java library for rendering a reasonable subset of
well-formed XML/XHTML (and even some HTML5) using CSS 2.1 (and later standards)
for layout and formatting, outputting to PDF or images.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-parent-%{version}
%pom_disable_module %{name}-mathml-support
%pom_disable_module %{name}-latex-support
%pom_disable_module %{name}-examples
%pom_disable_module %{name}-pdfa-testing
%pom_disable_module %{name}-templates
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_add_dep org.apache.xmlgraphics:batik-i18n %{name}-svg-support
%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*
%doc {CHANGELOG,README}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE*
%changelog