[Jpackage-commits] dist/sun-fi/devel .cvsignore, 1.1, 1.2 FastInfoset-1.2.2.pom, NONE, 1.1 sources, 1.1, 1.2 sun-fi-1.2.2-build-without-nb.patch, NONE, 1.1 sun-fi.spec, NONE, 1.1

jpackage jpackage at ryu.zarb.org
Wed May 28 21:52:05 CEST 2008


Update of /home/projects/jpackage/cvs/dist/sun-fi/devel
In directory ryu.zarb.org:/tmp/cvs-serv29212/devel

Modified Files:
	.cvsignore sources 
Added Files:
	FastInfoset-1.2.2.pom sun-fi-1.2.2-build-without-nb.patch 
	sun-fi.spec 
Log Message:
Import from JPP 5.0

--- NEW FILE: sun-fi.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
%define ucname  FastInfoset

Name:           sun-fi
Version:        1.2.2
Release:        1jpp
Epoch:          0
Summary:        Fast Infoset
License:        Apache Software License 2.0
Url:            https://fi.dev.java.net/
Source0:        sun-fi-1.2.2.tar.gz
# cvs -d :pserver:guest at cvs.dev.java.net:/cvs export -r jaxws211-fcs -d sun-fi-1.2.2 fi/FastInfoset
Source1:        FastInfoset-1.2.2.pom
Patch0:         sun-fi-1.2.2-build-without-nb.patch

Group:          Development/Libraries/Java
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
BuildRequires:  jpackage-utils >= 0:1.7.4
BuildRequires:  java-devel = 0:1.5.0
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  ant-junit
BuildRequires:  junit
BuildRequires:  stax_1_0_api
Requires:  java >= 0:1.5.0
Requires:  stax_1_0_api
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
%if %{gcj_support}
BuildRequires:    gnu-crypto
BuildRequires:    java-gcj-compat-devel
Requires(post):   java-gcj-compat
Requires(postun): java-gcj-compat
%endif

%description
Fast Infoset Project, an Open Source implementation of the 
Fast Infoset Standard for Binary XML.
Fast Infoset specifies a standardized binary encoding for 
the XML Information Set. An XML infoset (such as a DOM tree, 
StAX events or SAX events in programmatic representations) 
may be serialized to an XML 1.x document or, as specified by 
the Fast Infoset standard, may be serialized to a fast 
infoset document. Fast infoset documents are generally 
smaller in size and faster to parse and serialize than 
equivalent XML documents.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
%{summary}.

%prep
%setup -q 
# remove all binary libs
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done
%patch0 -b .java2

%build
export JAVA_HOME=%{_jvmdir}/java-1.5.0
ln -sf $(build-classpath junit) lib/junit.jar
ln -sf $(build-classpath stax_1_0_api) lib/jsr173_api.jar

# Run to create java2 sources (need java5)
# ant -f j2se-integration.xml
ant -f build-without-nb.xml dist test doc

%install
rm -rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/FastInfoset.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
%add_to_maven_depmap com.sun.xml.fastinfoset FastInfoset %{version} JPP %{name}

(cd $RPM_BUILD_ROOT%{_javadir} 
for jar in *-%{version}*.jar; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# poms
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
install -pm 644 %{SOURCE1} \
    $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}.pom

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr dist/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%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(0644,root,root,0755)
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar
%{_datadir}/maven2/poms/*
%{_mavendepmapfragdir}
%if %{gcj_support}
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif


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

%changelog
* Wed Apr 09 2008 Ralph Apel <r.apel at r-apel.de> - 0:1.2.2-1jpp
- 1.2.2 build for java5

* Wed Nov 21 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.2.1-1jpp
- First release


Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/sun-fi/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 19:51:48 -0000	1.1
--- sources	28 May 2008 19:52:02 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 816a6c339dd429640c1a52b1d18b9aef  sun-fi-1.2.2.tar.gz

--- NEW FILE: FastInfoset-1.2.2.pom ---
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.sun.xml.fastinfoset</groupId>
  <artifactId>FastInfoset</artifactId>
  <version>1.2.2</version>
</project>

--- NEW FILE: sun-fi-1.2.2-build-without-nb.patch ---
--- build-without-nb.xml.sav	2008-04-08 15:39:16.000000000 +0200
+++ build-without-nb.xml	2008-04-08 15:40:40.000000000 +0200
@@ -102,7 +102,7 @@
     </target>
         
     <target name="compile-test" depends="prepare-test, dist">
-        <javac source="1.4" srcdir="test" destdir="${build.dir}/test/classes"
+        <javac source="1.5" srcdir="test" destdir="${build.dir}/test/classes"
 		debug="on" optimize="on" deprecation="on">
             <classpath refid="compile-test.class.path"/>
         </javac>

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/sun-fi/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 19:51:48 -0000	1.1
--- .cvsignore	28 May 2008 19:52:02 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ sun-fi-1.2.2.tar.gz




More information about the JPackage-commits mailing list