2010-11-04 16:00:42 +01:00
|
|
|
#
|
2012-06-18 15:48:18 +02:00
|
|
|
# spec file for package xmlgraphics-commons
|
2010-11-04 16:00:42 +01:00
|
|
|
#
|
2024-02-20 15:31:38 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2010-11-16 00:28:09 +01:00
|
|
|
# Copyright (c) 2000-2008, JPackage Project
|
2010-11-04 16:00:42 +01:00
|
|
|
#
|
2010-11-16 00:28:09 +01: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.
|
|
|
|
|
2019-01-19 09:06:23 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2010-11-04 16:00:42 +01:00
|
|
|
#
|
|
|
|
|
2010-11-16 00:28:09 +01:00
|
|
|
|
2010-11-04 16:00:42 +01:00
|
|
|
Name: xmlgraphics-commons
|
2023-01-17 13:41:05 +01:00
|
|
|
Version: 2.8
|
2012-06-18 15:48:18 +02:00
|
|
|
Release: 0
|
2010-11-04 16:00:42 +01:00
|
|
|
Summary: XML Graphics Commons
|
2012-06-18 15:48:18 +02:00
|
|
|
License: Apache-2.0
|
2010-11-04 16:00:42 +01:00
|
|
|
Group: Development/Libraries/Java
|
2023-01-17 13:41:05 +01:00
|
|
|
URL: https://xmlgraphics.apache.org/commons/
|
|
|
|
Source0: https://archive.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz
|
2010-11-04 16:00:42 +01:00
|
|
|
Patch0: xmlgraphics-commons-build_xml.patch
|
2017-12-22 14:38:14 +01:00
|
|
|
Patch1: xmlgraphics-commons-jdk10.patch
|
2010-11-04 16:00:42 +01:00
|
|
|
BuildRequires: ant >= 1.6.5
|
2019-01-19 09:06:23 +01:00
|
|
|
BuildRequires: commons-io >= 1.1
|
|
|
|
BuildRequires: commons-logging
|
2017-09-19 09:33:11 +02:00
|
|
|
BuildRequires: fdupes
|
2022-03-18 18:53:37 +01:00
|
|
|
BuildRequires: java-devel >= 1.8
|
2023-09-29 15:58:40 +02:00
|
|
|
BuildRequires: javapackages-local >= 6
|
2017-05-19 14:31:53 +02:00
|
|
|
BuildArch: noarch
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%description
|
2017-05-19 14:31:53 +02:00
|
|
|
Apache XML Graphics Commons is a library that consists of
|
|
|
|
several reusable components used by Apache Batik and
|
|
|
|
Apache FOP. Many of these components can easily be used
|
|
|
|
separately outside the domains of SVG and XSL-FO. You will
|
|
|
|
find components such as a PDF library, an RTF library,
|
|
|
|
Graphics2D implementations that let you generate PDF &
|
2010-11-04 16:00:42 +01:00
|
|
|
PostScript files, and much more.
|
|
|
|
|
|
|
|
%package javadoc
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
2017-09-19 09:33:11 +02:00
|
|
|
Javadoc for package %{name}.
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q %{name}-%{version}
|
2024-02-20 15:31:38 +01:00
|
|
|
%patch -P 0
|
|
|
|
%patch -P 1 -p1
|
2010-11-04 16:00:42 +01:00
|
|
|
find . -name "*.jar" | xargs rm
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=
|
2019-01-19 09:06:23 +01:00
|
|
|
build-jar-repository -s lib commons-io commons-logging
|
2022-03-18 18:53:37 +01:00
|
|
|
ant -Djavac.source=1.8 -Djavac.target=1.8 package javadocs
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%install
|
2019-01-19 09:06:23 +01:00
|
|
|
# jar
|
2010-11-04 16:00:42 +01:00
|
|
|
install -Dpm 644 build/%{name}-%{version}.jar \
|
2013-09-06 10:05:55 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
2010-11-04 16:00:42 +01:00
|
|
|
# pom
|
2023-09-29 15:58:40 +02:00
|
|
|
install -dm 0755 %{buildroot}%{_mavenpomdir}
|
|
|
|
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
|
2019-01-19 09:06:23 +01:00
|
|
|
%add_maven_depmap %{name}.pom %{name}.jar
|
2010-11-04 16:00:42 +01:00
|
|
|
|
2019-01-19 09:06:23 +01:00
|
|
|
mkdir -p %{buildroot}%{_javadocdir}/%{name}
|
2013-09-06 10:05:55 +02:00
|
|
|
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
|
2019-01-19 09:06:23 +01:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
2010-11-04 16:00:42 +01:00
|
|
|
|
2019-01-19 09:06:23 +01:00
|
|
|
%files -f .mfiles
|
|
|
|
%license LICENSE NOTICE
|
|
|
|
%doc README
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%files javadoc
|
2019-01-19 09:06:23 +01:00
|
|
|
%license LICENSE NOTICE
|
2010-11-04 16:00:42 +01:00
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|