[Jpackage-commits] dist/xmlgraphics-commons/devel .cvsignore, 1.1, 1.2 sources, 1.1, 1.2 xmlgraphics-commons-build_xml.patch, NONE, 1.1 xmlgraphics-commons.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed May 28 22:21:16 CEST 2008


Update of /home/projects/jpackage/cvs/dist/xmlgraphics-commons/devel
In directory ryu.zarb.org:/tmp/cvs-serv24917/devel

Modified Files:
	.cvsignore sources 
Added Files:
	xmlgraphics-commons-build_xml.patch xmlgraphics-commons.spec 
Log Message:
Import from JPP 5.0

--- NEW FILE: xmlgraphics-commons.spec ---
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}

%define section   free

Name:           xmlgraphics-commons
Version:        1.2
Release:        1jpp
Epoch:          0
Summary:        XML Graphics Commons

Group:          Development/Libraries/Java
License:        Apache License 2.0
URL:            http://xmlgraphics.apache.org/
Source0:        http://www.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-1.2-src.tar.gz
Patch0:         xmlgraphics-commons-build_xml.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}

%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif

%if ! %{gcj_support}
BuildArch:      noarch
%endif

BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  ant-junit
BuildRequires:  batik
BuildRequires:  junit
BuildRequires:  jakarta-commons-io >= 0:1.1
Requires:  java >= 0:1.5.0
Requires:  jakarta-commons-io >= 0:1.1
Requires(post):    jpackage-utils >= 0:1.7.4
Requires(postun):  jpackage-utils >= 0:1.7.4

%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
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description    javadoc
%{summary}.


%prep
%setup -q %{name}-%{version}
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%patch0 -b .sav

%build
export OPT_JAR_LIST="ant/ant-junit junit"
pushd lib
ln -sf $(build-classpath commons-io) .
popd
ant package javadocs maven-artifacts

%install
rm -rf $RPM_BUILD_ROOT
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} # ghost symlink
#
install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp LICENSE $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}

%if %{gcj_support}
export CLASSPATH=$(build-classpath gnu-crypto)
%{_bindir}/aot-compile-rpm
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
  rm -f %{_javadocdir}/%{name}
fi

%post
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%postun
%update_maven_depmap
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

%files
%defattr(-,root,root,-)
%{_docdir}/%{name}-%{version}/LICENSE
%{_javadir}/*.jar
%{_datadir}/maven2
%{_mavendepmapfragdir}
%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{subname}-%{version}.jar.*
%endif

%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}


%changelog
* Mon Feb 25 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.2-1jpp
- 1.2
- Add pom and depmap frag
- Add gcj_support option

* Tue May 23 2006 Ralph Apel <r.apel at r-apel.de> - 0:1.0-1jpp
- First JPP-1.7 release


Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/xmlgraphics-commons/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 20:20:55 -0000	1.1
--- sources	28 May 2008 20:21:13 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ d3cf738e3ef890bb1a1b1668ad4054ff  xmlgraphics-commons-1.2-src.tar.gz

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/xmlgraphics-commons/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 20:20:55 -0000	1.1
--- .cvsignore	28 May 2008 20:21:13 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ xmlgraphics-commons-1.2-src.tar.gz

--- NEW FILE: xmlgraphics-commons-build_xml.patch ---
--- build.xml.sav	2006-04-17 23:59:18.000000000 +0200
+++ build.xml	2006-05-23 11:43:50.000000000 +0200
@@ -297,20 +297,13 @@
   </target>
 
   <target name="junit" depends="junit-basic" description="Runs all JUnit tests" if="junit.present">
-    <fail>
-      <condition>
-        <or>
-          <isset property="test.junit.error"/>
-          <isset property="test.junit.failure"/>
-        </or>
-      </condition>
+    <echo>
 NOTE:
 **************************************************************************
-* One or more of the Junit tests had Failures or Errors or were skipped! *
+* One or more of the Junit tests MAY have had Failures or Errors or were skipped! *
 *         Please check the output above for relevant messages.           *
 **************************************************************************
-    </fail>
-    <echo>All Junit tests passed!</echo>
+    </echo>
   </target>
 
   <!-- =================================================================== -->




More information about the JPackage-commits mailing list