Files
flyingsaucer/flyingsaucer.spec

82 lines
2.6 KiB
RPMSpec

#
# spec file for package flyingsaucer
#
# Copyright (c) 2025 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: flyingsaucer
Version: 9.11.3
Release: 0
Summary: XML/XHTML and CSS 2.1 renderer in pure Java
License: LGPL-2.1-or-later
Group: Development/Libraries/Java
URL: https://github.com/flyingsaucerproject/%{name}
Source0: %{url}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: java-devel >= 17
BuildRequires: maven-local
BuildRequires: mvn(com.github.librepdf:openpdf)
BuildRequires: mvn(com.google.errorprone:error_prone_annotations)
BuildRequires: mvn(net.sf.offo:fop-hyph)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.xmlgraphics:fop)
BuildRequires: mvn(org.eclipse.swt:swt)
BuildRequires: mvn(org.jspecify:jspecify)
BuildRequires: mvn(org.junit:junit-bom:pom:)
BuildArch: noarch
%description
Flying Saucer is a pure-Java library for rendering arbitrary well-formed XML
(or XHTML) using CSS 2.1 for layout and formatting, output to Swing panels,
PDF, and images.
%package javadoc
Summary: API documentation for %{name}
Group: Documentation/HTML
%description javadoc
API documentation for %{name}.
%prep
%setup -q
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_dep org.eclipse:swt flying-saucer-swt
%pom_add_dep org.eclipse.swt:swt flying-saucer-swt
%pom_xpath_remove 'pom:path[pom:artifactId="error_prone_core"]'
%pom_xpath_remove 'pom:arg[contains(.,"ErrorProne")]'
%build
%{mvn_build} -f -- -DlegacyMode=true -Dverbose=true
%install
%mvn_install
%fdupes %{buildroot}%{_javadocdir}/%{name}
%files -f .mfiles
%license LICENSE*
%doc {CHANGELOG,CONTRIBUTING,README}.md
%files javadoc -f .mfiles-javadoc
%license LICENSE*
%changelog