[Jpackage-commits] dist/crimson/devel .cvsignore, 1.1, 1.2 crimson-noapis.patch, NONE, 1.1 crimson.spec, NONE, 1.1 sources, 1.1, 1.2

David Walluck david at ryu.zarb.org
Thu Jul 30 23:02:08 CEST 2009


Update of /home/projects/jpackage/cvs/dist/crimson/devel
In directory ryu.zarb.org:/tmp/cvs-serv32058/devel

Modified Files:
	.cvsignore sources 
Added Files:
	crimson-noapis.patch crimson.spec 
Log Message:
- initial import

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/crimson/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	30 Jul 2009 21:00:46 -0000	1.1
--- .cvsignore	30 Jul 2009 21:02:06 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ crimson-1.1.3-src.tar.gz

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/crimson/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	30 Jul 2009 21:00:46 -0000	1.1
--- sources	30 Jul 2009 21:02:06 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ bb0a5fe59fd28ce5bfc4b22baeca12c1  crimson-1.1.3-src.tar.gz

--- NEW FILE: crimson.spec ---
# Copyright (c) 2000-2007, 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.
#

# build with native support:
%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: crimson
Epoch: 0
Version: 1.1.3
Release: 17jpp
Summary: Java XML parser

Group: Text Processing/Markup/XML
Vendor: %{?_vendorinfo:%{_vendorinfo}}%{!?_vendorinfo:%{_vendor}}
Distribution: %{?_distribution:%{_distribution}}%{!?_distribution:%{_vendor}}
License: Apache Software License
URL: http://xml.apache.org/%{name}
Source0: http://xml.apache.org/dist/%{name}/%{name}-%{version}-src.tar.gz
Patch0: %{name}-noapis.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Provides: jaxp_parser_impl
%if ! %{gcj_support}
BuildArch: noarch
%endif

BuildRequires: ant
BuildRequires: jpackage-utils >= 0:1.6
BuildRequires: xml-commons-apis
Requires: xml-commons-apis
Requires(post): /usr/sbin/update-alternatives
Requires(preun): /usr/sbin/update-alternatives
Requires: jpackage-utils >= 0:1.6
%if %{gcj_support}
BuildRequires: gnu-crypto
BuildRequires: java-gcj-compat-devel
Requires(post): java-gcj-compat
Requires(postun): java-gcj-compat
%endif

%description
Crimson is a Java XML parser which supports XML 1.0 via the following
APIs:
- Java API for XML Processing (JAXP) 1.1 minus the javax.xml.transform
package. JAXP is a pluggable API that allows applications to access XML
documents in a parser-independent manner. It endorses the industry
standard SAX and DOM APIs and also adds a few classes under the
javax.xml.parsers package to implement pluggability and utility methods
Note: the javax.xml.transform package hierarchy of JAXP is not
implemented by Crimson. One implementation of javax.xml.transform can be
found at Xalan Java 2.
- SAX 2.0
- SAX2 Extensions version 1.0
- DOM Level 2 Core Recommendation

%package manual
Summary: Manual for %{name}
Group: Text Processing/Markup/XML

%description manual
Documentation for %{name}.

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

%description javadoc
Javadoc for %{name}.

%package demo
Summary: Demo for %{name}
Group: Text Processing/Markup/XML
Requires: %{name} = %{epoch}:%{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q
%patch0 -p0

# -----------------------------------------------------------------------------

%build
CLASSPATH="$(find-jar xml-commons-apis)" ant jar javadoc

# -----------------------------------------------------------------------------

%install
%{__rm} -rf $RPM_BUILD_ROOT

# jars
%{__mkdir} -p ${RPM_BUILD_ROOT}%{_javadir}
%{__cp} -p build/%{name}.jar \
    ${RPM_BUILD_ROOT}%{_javadir}/%{name}-%{version}.jar
(
    cd $RPM_BUILD_ROOT%{_javadir}
    for jar in *-%{version}*; do 
        %{__ln_s} -f ${jar} `echo $jar | sed "s|-%{version}||g"`
    done
)

# javadoc
%{__mkdir} -p ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-%{version}
%{__cp} -pr build/docs/api/* \
    ${RPM_BUILD_ROOT}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} \
    ${RPM_BUILD_ROOT}%{_javadocdir}/%{name} # ghost symlink

# demo
%{__mkdir} -p ${RPM_BUILD_ROOT}%{_datadir}/%{name}
%{__cp} -pr examples ${RPM_BUILD_ROOT}%{_datadir}/%{name}

# jaxp_parser_impl ghost symlink
%{__ln_s} %{_sysconfdir}/alternatives \
    ${RPM_BUILD_ROOT}%{_javadir}/jaxp_parser_impl.jar

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

%clean
%{__rm} -rf $RPM_BUILD_ROOT

# -----------------------------------------------------------------------------

%post
update-alternatives --install %{_javadir}/jaxp_parser_impl.jar \
    jaxp_parser_impl %{_javadir}/%{name}.jar 20
%if %{gcj_support}
if [ -x %{_bindir}/rebuild-gcj-db ]; then
    %{_bindir}/rebuild-gcj-db
fi
%endif

%preun
if [ "$1" -eq 0 ]; then
    update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar
fi

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

%post javadoc
%{__rm} -f %{_javadocdir}/%{name}
%{__ln_s} %{name}-%{version} %{_javadocdir}/%{name}

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

%files
%defattr(0644,root,root,0755)
%doc ChangeLog README.txt
%{_javadir}/%{name}*.jar
%ghost %{_javadir}/jaxp_parser_impl.jar
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/%{name}-%{version}.jar.*
%endif

%files manual
%defattr(0644,root,root,0755)
%doc docs/*

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

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}

%changelog
* Wed May 30 2007 Jason Corley <jason.corley at gmail.com> - 0:1.1.3-17jpp
- syntactic cleanup
- rebuild in mock

* Fri May 11 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.1.3-16jpp
- Make Vendor, Distribution based on macro

* Fri Feb 09 2007 Ralph Apel <r.apel at r-apel.de> - 0:1.1.3-15jpp
- Add gcj_support option
- Fix and reactivate javadoc

* Wed Jan 04 2006 Fernando Nasser <fnasser at redhat.com> - 0:1.1.3-14jpp
- First JPP 1.7 build

* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:1.1.3-13jpp
- Build with ant-1.6.2

* Wed Jun  4 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.3-12jpp
- Own (ghost) %%{_javadir}/jaxp_parser_impl.jar.
- Remove alternatives in preun instead of postun.

* Thu Apr 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:1.1.3-11jpp
- Rebuild for JPackage 1.5.
- Change alternative to point to non-versioned jar, don't remove it on upgrade.
- Don't include JAXP API classes in crimson.jar.
- Drop javadoc package (contained only JAXP APIs).

* Thu Aug 22 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-10jpp
- corrected case for Group tag
- no macro for Url tag

* Mon Jul 01 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-9jpp
- use sed instead of bash 2.x extension in link area to make spec compatible with distro using bash 1.1x
- provides jaxp_parser_impl
- priority lowered to 20

* Tue May 07 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-8jpp
- vendor, distribution, group tags

* Sun Mar 10 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-7jpp
- provides jaxp_parser2 virtual resource

* Sat Jan 19 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-6jpp
- no need of stylebook, yet another cut'n'past sequel
- section macro

* Fri Jan 11 2002 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-5jpp
- fixed demo requires
- javadoc in %{_datadir}/javadoc again

* Thu Dec 20 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-4jpp
- javadoc back to /usr/share/doc
- doc and javadoc requires nothing
- demo requires exact version and release
- requires /usr/sbin/update-alternatives

* Wed Dec 5 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-3jpp
- javadoc into javadoc package

* Wed Nov 21 2001 Christian Zoffoli <czoffoli at littlepenguin.org> 1.1.3-2jpp
- removed packager tag
- new jpp extension

* Sat Oct 6 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.3-1jpp
- 1.1.3
- used original tarball

* Sun Sep 30 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.2-0.beta2.2jpp
- first unified release
- s/jPackage/JPackage

* Fri Sep 07 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.2-0.beta2.1mdk
- 1.1.2beta2
- used source distribution
- no more wrapper as one jar only
- example subpackage is now demo subpackage
- moved demo files in %{_datadir}/%{name}

* Sat Sep 01 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.1-4mdk
- used cvs instead of mixed release
- moved examples %{javadir}/%{name}

* Tue Jul 31 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.1-3mdk
- jaxp_parser symlink is now jaxp_parser.jar

* Tue Jul 24 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.1-2mdk
- changed priority to 30

* Mon Jul 23 2001 Guillaume Rousse <guillomovitch at users.sourceforge.net> 1.1.1-1mdk
- first Mandrake release, using a build script stolen from Henry Gomez <gomez at slib.fr>

--- NEW FILE: crimson-noapis.patch ---
--- build.xml~	2001-11-01 08:27:04.000000000 +0200
+++ build.xml	2003-04-10 19:56:10.000000000 +0300
@@ -157,7 +157,7 @@
     </copy>
   </target>
 
-  <target name="crimson.jar" depends="compile-api,compile-impl">
+  <target name="crimson.jar" depends="compile-impl">
     <mkdir dir="${build.classes}/META-INF/services" />
     <copy todir="${build.classes}/META-INF/services">
       <fileset dir="src/META-INF/services">
@@ -172,7 +172,6 @@
          manifest="${build.classes}/META-INF/manifest.crimson">
       <include name="META-INF/services/**" />
       <include name="org/apache/crimson/**" />
-      <patternset refid="api-patternset"/>
     </jar>
   </target>
 
--- src/META-INF/manifest.crimson~	2001-11-01 08:27:01.000000000 +0200
+++ src/META-INF/manifest.crimson	2003-04-10 20:01:17.000000000 +0300
@@ -1,38 +1,6 @@
 Manifest-Version: 1.0
 Sealed: false
 
-Name: javax/xml/parsers/
-Specification-Title: Java API for XML Processing
-Specification-Version: @jaxp-spec-version@
-Specification-Vendor: Sun Microsystems Inc.
-Implementation-Title: javax.xml.parsers
-Implementation-Version: @impl-version@
-Implementation-Vendor: Apache Software Foundation
-
-Name: org/xml/sax/
-Specification-Title: Simple API for XML
-Specification-Vendor: David Megginson
-Specification-Version: 2.0
-Implementation-Title: org.xml.sax
-Implementation-Version: 2.0
-Implementation-Vendor: http://www.megginson.com/SAX/index.html
-
-Name: org/xml/sax/helpers/
-Specification-Title: Simple API for XML
-Specification-Vendor: David Megginson
-Specification-Version: 2.0
-Implementation-Title: org.xml.sax.helpers
-Implementation-Version: 2.0
-Implementation-Vendor: http://www.megginson.com/SAX/index.html
-
-Name: org/w3c/dom/
-Specification-Title: Document Object Model, Level 2 Core
-Specification-Vendor: World Wide Web Consortium
-Specification-Version: 1.0
-Implementation-Title: org.w3c.dom
-Implementation-Version: 1.0
-Implementation-Vendor: World Wide Web Consortium
-
 Name: org/apache/crimson/parser/
 Specification-Title: Java API for XML Processing
 Specification-Vendor: Sun Microsystems Inc.




More information about the JPackage-commits mailing list