[RPM (6.0)] [DIST generic] jetty4-4.2.27-1.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : jetty4                       Relocations: (not relocatable)
Version     : 4.2.27                            Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Wed 15 Aug 2012 09:55:01 AM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Networking/Daemons            Source RPM: (none)
Size        : 6722359                          License: Open Source
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://jetty.mortbay.org/jetty/
Summary     : The Jetty Webserver and Servlet Container
Description :
Jetty is a 100% Java HTTP Server and Servlet Container.
This means that you do not need to configure and run a
separate web server (like Apache) in order to use java,
servlets and JSPs to generate dynamic content. Jetty is
a fully featured web server for static and dynamic content.
Unlike separate server/container solutions, this means
that your web server and web application run in the same
process, without interconnection overheads and complications.
Furthermore, as a pure java component, Jetty can be simply
included in your application for demonstration, distribution
or deployment. Jetty is available on all Java supported
platforms.

---------------
Ralph Apel <r.apel at r-apel.de> - 0:4.2.27-1
- 4.2.27 for JPP-6, without JSP support (jasper4 needed)
---------------
jetty4.src: W: specfile-error sh: line 0: fg: no job control
jetty4.src: W: specfile-error sh: line 0: fg: no job control
jetty4.src: W: source-or-patch-not-bzipped jetty4-build_xml.patch
jetty4.src: W: non-standard-group Networking/Daemons
jetty4.src: W: no-signature
jetty4.src: W: mixed-use-of-spaces-and-tabs (spaces: line 31, tab: line 35)
jetty4.src:288: W: macro-in-%changelog %post
jetty4.src: W: invalid-license Open Source
1 packages and 0 specfiles checked; 0 errors, 8 warnings.

---------------
Index: jetty4-build_xml.patch
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/jetty4/jetty4-build_xml.patch,v
retrieving revision 1.3
diff -u -r1.3 jetty4-build_xml.patch
--- jetty4-build_xml.patch	4 Nov 2005 21:27:57 -0000	1.3
+++ jetty4-build_xml.patch	15 Aug 2012 07:58:54 -0000
@@ -1,67 +1,11 @@
-*** build.xml.orig	2005-01-27 11:49:30.462784224 +0100
---- build.xml	2005-01-27 12:11:58.414864360 +0100
-***************
-*** 179,184 ****
---- 179,186 ----
-             optimize="${javac.optimize}"
-             deprecation="${javac.deprecation}"
-             target="1.2"
-+ 	   source="1.2"
-+ 	   encoding="iso-8859-1"
-             >
-         <classpath>
-           <path refid="extpath"/>
-***************
-*** 192,197 ****
---- 194,201 ----
-             debug="${javac.debug}"
-             optimize="${javac.optimize}"
-             deprecation="${javac.deprecation}"
-+ 	   source="1.4"
-+ 	   encoding="iso-8859-1"
-             >
-         <classpath>
-           <path refid="extpath"/>
-***************
-*** 286,292 ****
-      <jar jarfile="${mortbay.jmx.jar}">
-         <manifest>    
-           <attribute name="Main-Class" value="org.mortbay.util.jmx.Main"/>
--          <attribute name="Class-Path" value="org.mortbay.jetty.jar org.mortbay.jetty.jar ../ext/jmxri.jar ../ext/jmxtools.jar"/>
-         </manifest>    
-         <fileset dir="${classes}">
-           <include name="org/mortbay/**/jmx/**"/>
---- 290,295 ----
-***************
-*** 345,350 ****
---- 348,355 ----
-             debug="${javac.debug}"
-             optimize="${javac.optimize}"
-             deprecation="${javac.deprecation}"
-+ 	   source="1.4"
-+ 	   encoding="iso-8859-1"
-             >
-        <classpath>
-          <pathelement path="${servlet.jar}" />
-***************
-*** 394,399 ****
---- 399,405 ----
-      <mkdir dir="${javadoc}"/>
-      <javadoc packagenames="org.mortbay.*,javax.servlet.*"
-               destdir="${javadoc}"
-+ 	     source="1.4"
-               author="true"
-               version="true"
-               public="true"
-*** test/build.xml.orig	2005-01-27 15:40:03.792798408 +0100
---- test/build.xml	2005-01-27 15:40:16.208910872 +0100
-***************
-*** 114,119 ****
---- 114,120 ----
-             debug="true"
-             optimize="fale"
-             deprecation="${javac.deprecation}"
-+ 	   source="1.4"
-             >
-         <classpath>
-           <path refid="classpath" />
+--- build.xml.sav	2012-08-13 13:23:03.641497069 +0200
++++ build.xml	2012-08-13 13:23:22.593451430 +0200
+@@ -444,7 +444,7 @@
+   </target>
+ 
+   <!-- ==================================================================== -->
+-  <target name="all" depends="prepare,jars,webapps,javadoc,test"
++  <target name="all" depends="prepare,jars,javadoc"
+    description="Build everything"/>
+ 
+   <!-- ==================================================================== -->
Index: jetty4.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/jetty4/jetty4.spec,v
retrieving revision 1.3
diff -u -r1.3 jetty4.spec
--- jetty4.spec	4 Nov 2005 21:27:57 -0000	1.3
+++ jetty4.spec	15 Aug 2012 07:58:54 -0000
@@ -1,3 +1,33 @@
+# 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 name        jetty4
 %define jettyname   jetty
@@ -10,45 +40,42 @@
 %define libdir	    %{_localstatedir}/lib/%{name}/lib
 %define appdir	    %{_localstatedir}/lib/%{name}/webapps
 %define demodir	    %{_localstatedir}/lib/%{name}/demo
-
-Name:           %{name}
-Version:        4.2.20
-Release:        3jpp
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
+
+Name:           jetty4
+Version:        4.2.27
+Release:        1%{?dist}
 Epoch:          0
 Summary:        The Jetty Webserver and Servlet Container
 
 Group:          Networking/Daemons
 License:        Open Source
-URL:            http://jetty.mortbar.org/jetty/
-Source0:        %{jettyname}-%{version}-all.tar.gz
+URL:            http://jetty.mortbay.org/jetty/
+Source0:        http://dist.codehaus.org/jetty/jetty-4.2.x/jetty-4.2.27.zip
 Source1:        jetty4.script
 Source2:        jetty4.init
 Patch0:         jetty4-build_xml.patch
-Patch1:         jetty-4.2-djetty.patch
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-Distribution:   JPackage
-Vendor:         JPackage Project
 
 BuildArch:      noarch
-BuildRequires:  jpackage-utils >= 0:1.6
-BuildRequires:  ant >= 0:1.6, ant-junit
-BuildRequires:  servletapi4 >= 0:4.0.4
-BuildRequires:  jsse
-BuildRequires:  xerces-j2 >= 0:2.6.2
-BuildRequires:  xml-commons-apis >= 0:1.0
+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:  servlet_2_3_api
 BuildRequires:  mx4j >= 0:1.1.1
-BuildRequires:  jasper4 >= 0:4.1.30
 BuildRequires:  perl >= 0:5.005
 BuildRequires:  xapool
 Requires:  /sbin/chkconfig
-Requires:  jpackage-utils >= 0:1.6
-Requires:  ant >= 0:1.6
-Requires:  servletapi4 >= 0:4.0.4
-Requires:  jsse
-Requires:  xerces-j2 >= 0:2.6.2
-Requires:  xml-commons-apis >= 0:1.0
+Requires:  jpackage-utils >= 0:1.7.5
+Requires:  java >= 0:1.6.0
+Requires:  ant >= 0:1.7.1
+Requires:  servlet_2_3_api
 Requires:  mx4j >= 0:1.1.1
-Requires:  jasper4 >= 0:4.1.30
 Requires:  xapool
 
 %description
@@ -72,14 +99,6 @@
 %description    javadoc
 %{summary}.
 
-%package        demo
-Summary:        Examples for %{name}
-Group:          Development/Documentation
-Requires:       %{name} = 0:%{version}
-
-%description    demo
-%{summary}.
-
 %package        manual
 Summary:        Documents for %{name}
 Group:          Development/Documentation
@@ -96,28 +115,20 @@
 echo jboss.home = /var/lib/jboss >> ant.properties
 
 %patch0 -p0 -b .orig
-#%patch0 -p0
-%patch1 -p1 -b .orig
-#%patch1 -p1
 
 %build
+export OPT_JAR_LIST="ant/ant-junit junit"
 export CLASSPATH=$(build-classpath \
-servletapi4 \
+servlet_2_3_api \
 jsse \
 jta \
 log4j \
-xerces-j2 \
-xml-commons-apis \
 mx4j/mx4j-jmx \
 mx4j/mx4j-tools \
-jasper4-compiler \
-jasper4-runtime \
 xapool \
 )
-
 ant  -Dbuild.sysclasspath=first all
 
-
 %install
 rm -rf $RPM_BUILD_ROOT
 # dirs
@@ -162,9 +173,6 @@
 ) > $RPM_BUILD_ROOT%{homedir}/.jettyrc
 
 
-# demo
-cp -pr demo/* $RPM_BUILD_ROOT%{demodir}
-
 # javadoc
 cp -pr webapps/* $RPM_BUILD_ROOT%{appdir}
 install -dm 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@@ -176,8 +184,6 @@
 # manual
 install -dm 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 cp -p {LICENSE.html,VERSION.TXT} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
-mv $RPM_BUILD_ROOT%{demodir}/webapps/jetty/* \
-                $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
 rm -rf $RPM_BUILD_ROOT%{appdir}/jetty
 
 
@@ -211,28 +217,9 @@
 # create the jar repository
 build-jar-repository -s %{homedir}/ext \
    ant \
-   jasper4-compiler \
-   jasper4-runtime \
    mx4j/mx4j-jmx \
    mx4j/mx4j-tools \
-   servletapi4 \
-   xerces-j2 \
-   xml-commons-apis \
-   jsse/jcert \
-   jsse/jnet \
-   jsse/jsse
-
-%post javadoc
-rm -f %{_javadocdir}/%{name}
-ln -s %{name}-%{version} %{_javadocdir}/%{name}
-rm -f %{homedir}/javadoc
-ln -s %{_javadocdir}/%{name} %{homedir}/javadoc
-
-%post manual
-rm -f %{demodir}/webapps/jetty
-mkdir -p %{demodir}/webapps
-ln -s %{_docdir}/%{name}-%{version} %{demodir}/webapps/jetty
-
+   servlet_2_3_api \
 
 %preun
 if [ $1 = 0 ]; then
@@ -256,7 +243,6 @@
 %config(noreplace) %{confdir}
 %{libdir}
 %{homedir}
-%dir %{demodir}
 %attr(755, jetty4, jetty4) %{logdir}
 %attr(755, jetty4, jetty4) %{tempdir}
 %attr(755, jetty4, jetty4) %{rundir}
@@ -265,16 +251,12 @@
 %doc %{_docdir}/%{name}-%{version}/VERSION.TXT
 %attr(755, root, root) %{_sysconfdir}/init.d/%{name}
 
-%files demo
-%defattr(-,root,root,-)
-%{demodir}
-
 %files javadoc
 %defattr(-,root,root,-)
 %{appdir}/template
 %{appdir}/javadoc.war
 %doc %{_javadocdir}/%{name}-%{version}
-%ghost %doc %{_javadocdir}/%{name}
+%doc %{_javadocdir}/%{name}
 
 %files manual
 %defattr(-,root,root,-)
@@ -282,6 +264,12 @@
 
 
 %changelog
+* Wed Aug 15 2012 Ralph Apel <r.apel at r-apel.de> - 0:4.2.27-1
+- 4.2.27 for JPP-6, without JSP support (jasper4 needed)
+
+* Fri Jan 28 2005 Ralph Apel <r.apel at r-apel.de> - 0:4.2.24-1jpp
+- Upgrade to 4.2.24
+
 * Fri Jan 28 2005 Ralph Apel <r.apel at r-apel.de> - 0:4.2.20-3jpp
 - Require /sbin/chkconfig instead of chkconfig package
 - Allow build with Java 1.5 (thx to Petr Adamek)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.