[RPM (6.0)] [DIST generic] avalon-excalibur-4.1-9.jpp6

Ralph Apel <[email protected]> Wed, 5 Sep 2012 09:59:07 +0200
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : avalon-excalibur             Relocations: (not relocatable)
Version     : 4.1                               Vendor: JPackage Project
Release     : 9.jpp6                        Build Date: Wed 05 Sep 2012 09:55:43 AM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Libraries/Application Frameworks   Source RPM: (none)
Size        : 816629                           License: Apache Software License
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://avalon.apache.org/excalibur/
Summary     : Java development components
Description :
Avalon Excalibur was created in order to ease development of new
projects. To that end, Excalibur contains a number of ready to use
components and utilities that handle everything from command line
parsing to thread concurrency management.
The components in the Excalibur package have been well tested and do
work reliably.

---------------
Fernando Nasser <[email protected]> - 0:4.1-9
- First JPP 6.0 build
---------------
avalon-excalibur.src: W: source-or-patch-not-bzipped avalon-excalibur-javadoc.patch
avalon-excalibur.src: W: source-or-patch-not-bzipped avalon-excalibur-log4j.patch
avalon-excalibur.src: W: source-or-patch-not-bzipped avalon-excalibur-JdbcConnection.patch
avalon-excalibur.src: W: source-or-patch-not-bzipped avalon-excalibur-typos.patch
avalon-excalibur.src: W: source-or-patch-not-bzipped avalon-excalibur-Jdbc3Connection.patch
avalon-excalibur.src: W: source-or-patch-not-bzipped avalon-excalibur-exceptions.patch
avalon-excalibur.src: W: no-signature
1 packages and 0 specfiles checked; 0 errors, 7 warnings.

---------------
Index: avalon-excalibur.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/avalon-excalibur/avalon-excalibur.spec,v
retrieving revision 1.6
diff -u -r1.6 avalon-excalibur.spec
--- avalon-excalibur.spec	15 Dec 2004 14:15:45 -0000	1.6
+++ avalon-excalibur.spec	5 Sep 2012 07:59:06 -0000
@@ -1,36 +1,70 @@
+# Copyright (c) 2000-2012, 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 section free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           avalon-excalibur
 Version:        4.1
-Release:        6jpp
+Release:        9%{?dist}
 Epoch:          0
 Summary:        Java development components
 License:        Apache Software License
 URL:            http://avalon.apache.org/excalibur/
 Group:          Development/Libraries/Application Frameworks
-Vendor:         JPackage Project
-Distribution:   JPackage
 Source0:        http://jakarta.apache.org/builds/jakarta-avalon/release/excalibur/v4.1/Excalibur-4.1-src.tar.gz
 Patch0:         %{name}-exceptions.patch
 Patch1:         %{name}-typos.patch
 Patch2:         %{name}-javadoc.patch
+Patch3:         %{name}-log4j.patch
+Patch4:         %{name}-Jdbc3Connection.patch
+Patch5:         %{name}-JdbcConnection.patch
 Requires:       jdom
-Requires:       xalan-j2 >= 0:2.2.0
 Requires:       servlet
-Requires:       avalon-logkit >= 0:1.0.1
+Requires:       avalon-logkit >= 0:1.2
 Requires:       avalon-framework >= 0:4.1.2
-BuildRequires:  ant
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
+BuildRequires:  ant-junit
 BuildRequires:  junit
 BuildRequires:  junitperf
 BuildRequires:  jdom
-BuildRequires:  xalan-j2 >= 0:2.2.0
-BuildRequires:  servlet
-BuildRequires:  avalon-logkit >= 0:1.0.1
+BuildRequires:  servlet_2_3_api
+BuildRequires:  avalon-logkit >= 0:1.2
+BuildRequires:  avalon-logkit < 0:2.2
 BuildRequires:  avalon-framework >= 0:4.1.2
-BuildRequires:  jndi
-BuildRequires:  jms
-BuildRequires:  jdbc-stdext
-BuildRequires:  jpackage-utils >= 0:1.5
+BuildRequires:  jms_1_1_api
 BuildArch:      noarch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-buildroot
 
@@ -59,19 +93,22 @@
 %description javadoc
 %{summary}.
 
-# -----------------------------------------------------------------------------
-
 %prep
 %setup -q -n Excalibur-%{version}
+cp src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java.sav
 %patch0 -p1
 %patch1 -p1
 %patch2 -p0
+%patch3
+%patch4 -b .sav4
+%patch5 -b .sav5
+for j in $(find . -name "*.java" -exec grep -l JDBC3_END {} \;); do
+    sed -i -e 's|@JDBC3_START@||' -e 's|@JDBC3_END@||' $j
+done
 mkdir -p tools/lib
 # remove all binary libs
 find . -name "*.jar" -exec rm -f {} \;
 
-# -----------------------------------------------------------------------------
-
 %build
 export CLASSPATH=\
 $(build-classpath \
@@ -80,19 +117,19 @@
 junit \
 junitperf \
 jdom \
-xml-commons-apis \
-xalan-j2 \
-servlet \
-jndi \
-jms \
-jdbc-stdext)
+servlet_2_3_api \
+jms_1_1_api \
+)
+#xml-commons-apis \
+#xalan-j2 \
+#jdbc-stdext \
+#jndi \
 
 # Sun's 1.4.1 doclet doesn't like the scratchpad javadocs...
 ant -Dtest.all=true -Dtools.dir=`pwd`/tools all test javadocs-main
 
-# -----------------------------------------------------------------------------
-
 %install
+rm src/java/org/apache/avalon/excalibur/logger/Log4JLoggerManager.java.sav
 rm -rf $RPM_BUILD_ROOT
 
 # jars
@@ -104,14 +141,11 @@
 # javadoc
 mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
 cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
-
-# -----------------------------------------------------------------------------
+ln -s %{_javadocdir}/%{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-# -----------------------------------------------------------------------------
-
 %files
 %defattr(0644,root,root,0755)
 %doc LICENSE.txt README.txt
@@ -125,11 +159,19 @@
 
 %files javadoc
 %defattr(0644,root,root,0755)
-%{_javadocdir}/%{name}-%{version}
-
-# -----------------------------------------------------------------------------
+%doc %{_javadocdir}/%{name}-%{version}
+%doc %{_javadocdir}/%{name}
 
 %changelog
+* Wed Sep 05 2012 Fernando Nasser <[email protected]> - 0:4.1-9
+- First JPP 6.0 build
+
+* Wed Jan 04 2006 Fernando Nasser <[email protected]> - 0:4.1-8jpp
+- First JPP 1.7 build
+
+* Fri Aug 20 2004 Ralph Apel <r.apel at r-apel.de> - 0:4.1-7jpp
+- Build with ant-1.6.2
+
 * Fri Mar 28 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.1-6jpp
 - Adapted to JPackage 1.5.
 - Use sed instead of bash 2 extension when symlinking jars during build.