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
|
|
|
#
|
2017-03-06 13:39:10 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://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
|
2016-03-04 15:15:43 +01:00
|
|
|
Version: 2.1
|
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
|
2010-11-16 00:28:09 +01:00
|
|
|
Url: http://xmlgraphics.apache.org/
|
2010-11-04 16:00:42 +01:00
|
|
|
Source0: http://www.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz
|
|
|
|
Patch0: xmlgraphics-commons-build_xml.patch
|
|
|
|
BuildRequires: ant >= 1.6.5
|
|
|
|
BuildRequires: ant-junit
|
2013-09-06 10:05:55 +02:00
|
|
|
BuildRequires: apache-commons-io >= 1.1
|
|
|
|
BuildRequires: apache-commons-logging
|
2017-09-19 09:33:11 +02:00
|
|
|
BuildRequires: fdupes
|
2012-10-24 12:14:41 +02:00
|
|
|
BuildRequires: gpg2
|
2017-05-19 14:31:53 +02:00
|
|
|
# Needed for maven conversions
|
|
|
|
BuildRequires: javapackages-local
|
2013-09-09 14:02:23 +02:00
|
|
|
BuildRequires: javapackages-tools
|
2010-11-04 16:00:42 +01:00
|
|
|
BuildRequires: junit
|
2012-06-18 15:48:18 +02:00
|
|
|
BuildRequires: xmlgraphics-batik
|
2010-11-04 16:00:42 +01:00
|
|
|
Requires: jakarta-commons-io >= 1.1
|
|
|
|
Requires: jakarta-commons-logging
|
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}
|
2017-05-19 14:31:53 +02:00
|
|
|
%patch0
|
2010-11-04 16:00:42 +01:00
|
|
|
find . -name "*.jar" | xargs rm
|
|
|
|
|
|
|
|
%build
|
|
|
|
export CLASSPATH=
|
|
|
|
export OPT_JAR_LIST="ant/ant-junit junit"
|
|
|
|
pushd lib
|
|
|
|
ln -sf $(build-classpath commons-io) .
|
|
|
|
ln -sf $(build-classpath commons-logging) .
|
|
|
|
popd
|
2017-09-19 09:33:11 +02:00
|
|
|
ant -Djavac.source=1.6 -Djavac.target=1.6 package javadocs maven-artifacts
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dpm 644 build/%{name}-%{version}.jar \
|
2013-09-06 10:05:55 +02:00
|
|
|
%{buildroot}%{_javadir}/%{name}.jar
|
2012-10-31 09:28:33 +01:00
|
|
|
|
2010-11-04 16:00:42 +01:00
|
|
|
#
|
|
|
|
# pom
|
2013-09-06 10:05:55 +02:00
|
|
|
install -d -m 755 %{buildroot}%{_mavenpomdir}
|
|
|
|
install -pm 644 build/maven/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
|
|
|
|
%add_maven_depmap
|
2010-11-04 16:00:42 +01:00
|
|
|
|
2013-09-06 10:05:55 +02:00
|
|
|
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
|
|
|
|
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}
|
2017-09-19 09:33:11 +02:00
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}/%{name}
|
2010-11-04 16:00:42 +01:00
|
|
|
#
|
2013-09-06 10:05:55 +02:00
|
|
|
install -dm 755 %{buildroot}%{_docdir}/%{name}
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc LICENSE
|
2012-10-31 09:28:33 +01:00
|
|
|
%{_javadir}/%{name}.jar
|
2013-09-06 10:05:55 +02:00
|
|
|
%{_mavenpomdir}/*
|
2017-05-19 14:31:53 +02:00
|
|
|
%if 0%{?suse_version} >= 1330
|
2015-03-18 11:08:36 +01:00
|
|
|
%{_datadir}/maven-metadata/%{name}.xml*
|
2017-03-06 13:39:10 +01:00
|
|
|
%else
|
|
|
|
%{_mavendepmapfragdir}/%{name}
|
|
|
|
%endif
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|