From c868224cdfecc8901a8be141c833805c52af649e Mon Sep 17 00:00:00 2001 From: Vivek Lakshmanan Date: Mar 20 2007 01:22:59 +0000 Subject: auto-import jaxen-bootstrap-1.1-1jpp.1 on branch devel from jaxen-bootstrap-1.1-1jpp.1.src.rpm --- diff --git a/.cvsignore b/.cvsignore index e69de29..e3be3ef 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1,2 @@ +dom4j-1.6.1.tar.gz +jaxen-1.1-src.tar.gz diff --git a/jaxen-bootstrap-notest.patch b/jaxen-bootstrap-notest.patch new file mode 100644 index 0000000..4ae0b4e --- /dev/null +++ b/jaxen-bootstrap-notest.patch @@ -0,0 +1,11 @@ +--- build.xml.orig 2007-02-14 12:30:41.000000000 -0500 ++++ build.xml 2007-02-14 12:31:02.000000000 -0500 +@@ -52,7 +52,7 @@ + + + +- ++ + + + diff --git a/jaxen-bootstrap.spec b/jaxen-bootstrap.spec new file mode 100644 index 0000000..4475b8e --- /dev/null +++ b/jaxen-bootstrap.spec @@ -0,0 +1,171 @@ +# Copyright (c) 2000-2005, 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 real jaxen +%define name %{real}-bootstrap +%define dom4jver 1.6.1 +%define version 1.1 +%define release 1jpp.1%{?dist} + +Name: %{name} +Version: %{version} +Release: %{release} +Epoch: 0 +Summary: A convenience package for build of dom4j +License: BSD +Url: http://jaxen.codehaus.org/ +Group: Development/Libraries +Source0: http://dist.codehaus.org/jaxen/distributions/jaxen-1.1-src.tar.gz +# dom4j is needed for bootstrapping; we build a subset of it below. +Source1: http://prdownloads.sourceforge.net/dom4j/dom4j-%{dom4jver}.tar.gz + +# Don't build or run the tests. This limits dependencies. +Patch0: %{name}-notest.patch + +Requires: jdom >= 0:1.0-0.rc1.1jpp +Requires: xalan-j2 +Requires: xerces-j2 +Requires: xom +BuildRequires: ant >= 0:1.6, jpackage-utils >= 0:1.6, junit +BuildRequires: jdom >= 0:1.0-0.rc1.1jpp +BuildRequires: xalan-j2 +BuildRequires: xerces-j2 +BuildRequires: xom +BuildArch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +%description +Dom4j depends on a jaxen build with dom4j support. +This package must only be installed in the rare +event of having to rebuild dom4j. + +%prep +%setup -q -n %{real}-%{version} +%patch0 +gzip -dc %{SOURCE1} | tar -xf - +find . -name "*.jar" -exec rm -f {} \; + +%build +export CLASSPATH=$(build-classpath \ +jdom \ +xalan-j2 \ +xerces-j2 \ +xom \ +) +pushd dom4j-%{dom4jver}/src/java +javac -sourcepath ../../../src/java/main:. \ + org/dom4j/Attribute.java \ + org/dom4j/Branch.java \ + org/dom4j/CDATA.java \ + org/dom4j/Comment.java \ + org/dom4j/Document.java \ + org/dom4j/DocumentException.java \ + org/dom4j/Element.java \ + org/dom4j/Namespace.java \ + org/dom4j/Node.java \ + org/dom4j/ProcessingInstruction.java \ + org/dom4j/Text.java \ + org/dom4j/io/SAXReader.java + +jar cf ../../dom4j.jar $(find . -name "*.class") +popd + +export CLASSPATH=$(build-classpath \ +jdom \ +xalan-j2 \ +xerces-j2 \ +xom \ +):`pwd`/dom4j-%{dom4jver}/dom4j.jar + +ant -Dnoget=true + +%install +rm -rf $RPM_BUILD_ROOT + +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir} +install -m 644 target/%{real}-%{version}.jar \ +$RPM_BUILD_ROOT%{_javadir} + +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in %{real}*; do \ +ln -sf ${jar} ${jar/-%{version}/}; done) + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt +%{_javadir}/* + +%changelog +* Wed Feb 14 2007 Andrew Overholt 0:1.1-1jpp.1 +- Bump to 1.1 final +- Make release Xjpp.Y%{?dist} +- Remove Distribution, Vendor +- Fix Group +- Remove maven stuff +- Add cleaning of buildroot to beginning of %%install +- Remove cleaning of buildroot from beginning of %%prep +- Remove Provides: jaxen-bootstrap as it is implied +- Remove %%section free +- Use Fedora buildroot +- Glob on %%{name} and not on %%{version} for symlinking + +* Wed Feb 15 2006 Ralph Apel 0:1.1-0.b7.3jpp +- Add copyright notice to spec file + +* Mon Feb 13 2006 Ralph Apel 0:1.1-0.b7.2jpp +- Adapt to Maven-1.1 +- Create option to build without maven + +* Wed Aug 17 2005 Ralph Apel 0:1.1-0.b7.1jpp +- Upgrade to 1.1-beta-7 +- Now mavenized +- Derived jaxen-bootstrap from new jaxen + +* Thu Sep 09 2004 Ralph Apel 0:1.1-0.b2.1jpp +- Upgrade to 1.1-beta-2 +- Drop saxpath requirement as saxpath is now included in jaxen + +* Sun Aug 23 2004 Randy Watler - 0:1.0-4jpp +- Rebuild with ant-1.6.2 +* Mon Jan 19 2004 Ralph Apel 0:1.0-3jpp +- build against dom4j-1.4-1jpp +- introduce manual and demo subpackages +- patch org.jaxen.dom4j.DocumentNavigatorTest +- include LICENSE in main package +- run tests during build + +* Thu Jan 15 2004 Ralph Apel 0:1.0-2jpp +- activate support for dom4j by renaming lib/dom4j-core.jar to .zip + +* Sun May 04 2003 David Walluck 0:1.0-1jpp +- release diff --git a/sources b/sources index e69de29..15fa3f8 100644 --- a/sources +++ b/sources @@ -0,0 +1,2 @@ +1e7ef6d20939315714de4a8502f27b2d dom4j-1.6.1.tar.gz +da01ae0501ef11292b539d50601b02f1 jaxen-1.1-src.tar.gz