2010-11-04 16:00:42 +01:00
|
|
|
#
|
2010-11-16 00:28:09 +01:00
|
|
|
# spec file for package xmlgraphics-commons (Version 1.4)
|
2010-11-04 16:00:42 +01:00
|
|
|
#
|
2010-11-16 00:28:09 +01:00
|
|
|
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
# Copyright (c) 2000-2008, JPackage Project
|
|
|
|
# All rights reserved.
|
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
|
|
|
%define section free
|
|
|
|
|
|
|
|
Name: xmlgraphics-commons
|
|
|
|
Version: 1.4
|
2010-11-16 00:28:09 +01:00
|
|
|
Release: 1
|
2010-11-04 16:00:42 +01:00
|
|
|
Summary: XML Graphics Commons
|
|
|
|
Group: Development/Libraries/Java
|
2011-12-06 19:16:33 +01:00
|
|
|
License: Apache-2.0
|
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
|
|
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: jpackage-utils >= 1.7.4
|
|
|
|
BuildRequires: java-devel >= 1.5.0
|
|
|
|
BuildRequires: ant >= 1.6.5
|
|
|
|
BuildRequires: ant-junit
|
|
|
|
BuildRequires: xmlgraphics-batik
|
|
|
|
BuildRequires: jakarta-commons-io >= 1.1
|
|
|
|
BuildRequires: jakarta-commons-logging
|
|
|
|
BuildRequires: junit
|
|
|
|
Requires: jakarta-commons-io >= 1.1
|
|
|
|
Requires: jakarta-commons-logging
|
|
|
|
Requires(post): jpackage-utils >= 1.7.4
|
|
|
|
Requires(postun): jpackage-utils >= 1.7.4
|
2010-11-16 00:28:09 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2010-11-04 16:00:42 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
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 &
|
|
|
|
PostScript files, and much more.
|
|
|
|
|
|
|
|
%package javadoc
|
2011-12-06 19:16:33 +01:00
|
|
|
License: Apache-2.0
|
2010-11-04 16:00:42 +01:00
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description javadoc
|
2010-11-16 00:28:09 +01:00
|
|
|
|
2010-11-04 16:00:42 +01:00
|
|
|
%{summary}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q %{name}-%{version}
|
|
|
|
%patch0 -p0
|
|
|
|
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
|
|
|
|
ant package javadocs maven-artifacts
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -Dpm 644 build/%{name}-%{version}.jar \
|
|
|
|
$RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
|
|
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
|
|
|
#
|
|
|
|
%add_to_maven_depmap org.apache.xmlgraphics %{name} %{version} JPP %{name}
|
|
|
|
# pom
|
|
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
|
|
|
|
install -pm 644 build/maven/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP-%{name}.pom
|
|
|
|
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
|
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
|
|
#
|
|
|
|
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post
|
|
|
|
%update_maven_depmap
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%update_maven_depmap
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_javadir}/*.jar
|
|
|
|
%{_datadir}/maven2/*
|
|
|
|
%{_mavendepmapfragdir}/*
|
|
|
|
|
|
|
|
%files javadoc
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
%{_javadocdir}/%{name}
|
|
|
|
|
|
|
|
%changelog
|