[Jpackage-commits] dist/mina/devel .cvsignore, 1.1, 1.2 directory-pom-1.0.4.xml, NONE, 1.1 mina-jpp-depmap.xml, NONE, 1.1 mina-pom_xml.patch, NONE, 1.1 mina-settings.xml, NONE, 1.1 mina-site_xml.patch, NONE, 1.1 mina.spec, NONE, 1.1 sources, 1.1, 1.2

jpackage jpackage at ryu.zarb.org
Wed May 28 21:14:55 CEST 2008


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

Modified Files:
	.cvsignore sources 
Added Files:
	directory-pom-1.0.4.xml mina-jpp-depmap.xml mina-pom_xml.patch 
	mina-settings.xml mina-site_xml.patch mina.spec 
Log Message:
Import from JPP 5.0

Index: .cvsignore
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/mina/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** .cvsignore	28 May 2008 19:14:34 -0000	1.1
--- .cvsignore	28 May 2008 19:14:52 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ mina-1.0.0.tar.gz

--- NEW FILE: mina-site_xml.patch ---
--- src/site/site.xml.sav	2006-08-23 10:02:54.000000000 +0200
+++ src/site/site.xml	2006-10-25 17:20:26.000000000 +0200
@@ -9,6 +9,11 @@
     <name>MINA</name>
   </bannerRight>
 
+  <skin>
+    <groupId>JPP/maven2</groupId>
+    <artifactId>default-skin</artifactId>
+    <version>1.0</version>
+  </skin>
   <body>
      <links>
        <item name="ApacheDS" href="http://directory.apache.org/subprojects/apacheds/index.html"/>

--- NEW FILE: mina-settings.xml ---
<settings>
	<profiles>
		<profile>
			<id>JPP</id>
			<repositories>
				<repository>
					<id>internal</id>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>external</id>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</repository>
				<repository>
					<id>local</id>
					<layout>jpp</layout>
					<url>__MAVENREPO_DIR_PLACEHOLDER__</url>
				</repository>
			</repositories>
			<pluginRepositories>
				<pluginRepository>
					<id>plugins-internal</id>
					<name>plugins-internal</name>
					<layout>jpp</layout>
					<url>__JPP_URL_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-external</id>
					<name>plugins-external</name>
					<layout>jpp</layout>
					<url>__JAVADIR_PLACEHOLDER__</url>
				</pluginRepository>
				<pluginRepository>
					<id>plugins-maven</id>
					<name>plugins-maven</name>
					<layout>jpp</layout>
					<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>
				</pluginRepository>
			</pluginRepositories>
		</profile>
	</profiles>
	<activeProfiles>
		<activeProfile>JPP</activeProfile>
	</activeProfiles>
</settings>

--- NEW FILE: mina-jpp-depmap.xml ---
<dependencies>
   <dependency>
      <maven>
         <groupId>junit</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>junit</artifactId>
         <version>3.8.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>easymock</groupId>
         <artifactId>easymock</artifactId>
         <version>1.2_Java1.3</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>easymock</artifactId>
         <version>1.2_Java1.3</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.slf4j</groupId>
         <artifactId>slf4j-simple</artifactId>
         <version>1.0</version>
      </maven>
      <jpp>
         <groupId>JPP/slf4j</groupId>
         <artifactId>simple</artifactId>
         <version>1.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>backport-util-concurrent</groupId>
         <artifactId>backport-util-concurrent</artifactId>
         <version>2.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>backport-util-concurrent</artifactId>
         <version>2.2</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>tl-netty2</groupId>
         <artifactId>tl-netty2</artifactId>
         <version>1.9.2</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>tl-netty2</artifactId>
         <version>1.9.2</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>com.jcraft</groupId>
         <artifactId>jzlib</artifactId>
         <version>1.0.7</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>jzlib</artifactId>
         <version>1.0.7</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-beans</artifactId>
         <version>1.2.8</version>
      </maven>
      <jpp>
         <groupId>JPP/spring</groupId>
         <artifactId>beans</artifactId>
         <version>1.2.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-core</artifactId>
         <version>1.2.8</version>
      </maven>
      <jpp>
         <groupId>JPP/spring</groupId>
         <artifactId>core</artifactId>
         <version>1.2.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-support</artifactId>
         <version>1.2.8</version>
      </maven>
      <jpp>
         <groupId>JPP/spring</groupId>
         <artifactId>support</artifactId>
         <version>1.2.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.springframework</groupId>
         <artifactId>spring-context</artifactId>
         <version>1.2.8</version>
      </maven>
      <jpp>
         <groupId>JPP/spring</groupId>
         <artifactId>context</artifactId>
         <version>1.2.8</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>easymock</groupId>
         <artifactId>easymockclassextension</artifactId>
         <version>1.1</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>easymock-classextension</artifactId>
         <version>1.1</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>commons-net</groupId>
         <artifactId>commons-net</artifactId>
         <version>1.3.0</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>commons-net</artifactId>
         <version>1.3.0</version>
      </jpp>
   </dependency>
   <dependency>
      <maven>
         <groupId>org.slf4j</groupId>
         <artifactId>nlog4j</artifactId>
         <version>1.2.25</version>
      </maven>
      <jpp>
         <groupId>JPP</groupId>
         <artifactId>nlog4j</artifactId>
         <version>1.2.25</version>
      </jpp>
   </dependency>
</dependencies>

--- NEW FILE: directory-pom-1.0.4.xml ---
<?xml version="1.0" encoding="ISO-8859-1"?>
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.apache.directory</groupId>
  <version>1.0.4</version>
  <artifactId>build</artifactId>
  <name>Apache Directory Build</name>
  <inceptionYear>2004</inceptionYear>
  <packaging>pom</packaging>
  <modules>
    <module>mina</module>
    <module>apacheds</module>
    <module>shared</module>
    <module>daemon</module>
  </modules>
  <dependencies>
   <dependency>
      <groupId>JPP</groupId>
      <artifactId>junit</artifactId>
      <version>3.8.1</version>
      <scope>test</scope>
    </dependency>
  </dependencies>
  <repositories>
    <!-- For snapshots (no release jars or non-apache jars)           -->
    <repository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Repository</name>
      <url>http://cvs.apache.org/maven-snapshot-repository</url>
    </repository>
    
    <!-- Temp repo for 3rd party jars that are not in ibiblio.org yet.-->
    <!-- Artifacts in repo should be requested for ibiblio upload &   -->
    <!-- removed from this repository - this repo will disappear.     -->
    <repository>
      <id>safehaus</id>
      <name>Alternate Repository for Missing Ibiblio Artifacts</name>
      <url>http://m2.safehaus.org</url>
    </repository>
  </repositories>

  <pluginRepositories>
    <pluginRepository>
      <id>snapshots</id>
      <name>snapshot plugins</name>
      <url>http://snapshots.maven.codehaus.org/maven2</url>
    </pluginRepository>
    <pluginRepository>
      <id>apache.snapshots</id>
      <name>Apache Snapshot Plugins</name>
      <url>http://cvs.apache.org/maven-snapshot-repository</url>
    </pluginRepository>
  </pluginRepositories>

  <distributionManagement>
    <snapshotRepository>
      <id>apache.snapshots</id>
      <url>
        scp://cvs.apache.org/www/cvs.apache.org/maven-snapshot-repository
      </url>
    </snapshotRepository>
    <repository>
      <name>ASF Mirrored M2 Distributions</name>
      <id>apache.snapshots</id>
      <url>
        scp://minotaur.apache.org/www/www.apache.org/dist/maven-repository
      </url>
    </repository>

  </distributionManagement>

  <licenses>
    <license>
      <name>Apache Software License 2.0</name>
      <url>http://directory.apache.org/license.html</url>
    </license>
  </licenses>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <configuration>
          <source>1.4</source>
          <target>1.4</target>
        </configuration>
      </plugin>
    </plugins>
  </build>
</project>

Index: sources
===================================================================
RCS file: /home/projects/jpackage/cvs/dist/mina/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** sources	28 May 2008 19:14:34 -0000	1.1
--- sources	28 May 2008 19:14:52 -0000	1.2
***************
*** 0 ****
--- 1 ----
+ 205f446d0ab03bbc09e1679954b876b4  mina-1.0.0.tar.gz

--- NEW FILE: mina-pom_xml.patch ---
--- pom.xml.sav	2006-10-02 04:30:11.000000000 +0200
+++ pom.xml	2006-10-25 19:21:32.000000000 +0200
@@ -266,6 +266,7 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-site-plugin</artifactId>
       </plugin>
+<!--
       <plugin>
         <inherited>false</inherited>
         <groupId>org.apache.maven.plugins</groupId>
@@ -301,6 +302,7 @@
           </execution>
         </executions>
       </plugin>
+-->
       <plugin>
         <artifactId>maven-assembly-plugin</artifactId>
         <version>2.0.1</version>

--- NEW FILE: mina.spec ---
# 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 with_java5 %{?_with_java5:1}%{!?_with_java5:%{?_without_java5:0}%{!?_without_java5:%{?_java5:%{_java5}}%{!?_java5:0}}}
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?with_java5:0}}}

%define section         free

Summary:        A Multipurpose Infrastructure for Network Applications
Name:           mina
Version:        1.0.0
Release:        2jpp
Epoch:		0
Group:          System/Networking
License:        Apache 2.0 License
URL:            http://directory.apache.org/subprojects/mina/
Source0:        %{name}-%{version}.tar.gz
# svn export http://svn.apache.org/repos/asf/directory/releases/mina/1.0.0 mina-1.0.0

Source1:        directory-pom-1.0.4.xml
Source2:        %{name}-jpp-depmap.xml
Source3:        %{name}-settings.xml

Patch0:		mina-pom_xml.patch
Patch1:		mina-site_xml.patch

Vendor:         JPackage Project
Distribution:   JPackage
BuildRequires:  jpackage-utils >= 0:1.7.1
BuildRequires:  maven2 >= 0:2.0.4
BuildRequires:  saxon
BuildRequires:  saxon-scripts
Requires:	java-devel >= 0:1.4.2
%if ! %{with_java5}
Requires:	java-devel < 0:1.5
%endif
BuildRequires:	junit
BuildRequires:	easymock
BuildRequires:	slf4j
BuildRequires:	backport-util-concurrent
BuildRequires:	tl-netty2
BuildRequires:	jzlib

Requires:	java >= 0:1.4.2
%if ! %{with_java5}
Requires:	java < 0:1.5
%endif
Requires:	backport-util-concurrent
Requires:	slf4j
Obsoletes:	mina-jdk14 < 0:1.0.0
Provides:	mina-jdk14
%if %{gcj_support}
BuildRequires:          java-gcj-compat-devel
Requires(post):         java-gcj-compat
Requires(postun):       java-gcj-compat
%endif
%if ! %{gcj_support}
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root

%description
MINA (Multipurpose Infrastructure for Network Applications) is a
network application framework which helps users develop high
performance and high scalability network applications easily.

%if ! %{with_java5}
THIS PARTIAL RELEASE DOES NOT PROVIDE SSL SUPPORT.
%endif

%package filter-codec-netty
Group:          System/Networking
Summary:        Netty2 filter for %{name}
Requires:	%{name} = %{epoch}:%{version}-%{release}
Requires:	tl-netty2

%description filter-codec-netty
%{summary}.

%package filter-compression
Group:          System/Networking
Summary:        JZlib compression filter for %{name}
Requires:	%{name} = %{epoch}:%{version}-%{release}
Requires:	jzlib

%description filter-compression
%{summary}.

%if %{with_java5}
%package filter-ssl
Group:          System/Networking
Summary:        SSL filter for %{name}
Requires:	%{name} = %{epoch}:%{version}-%{release}
Requires:	slf4j

%description filter-ssl
%{summary}.

%package integration-jmx
Group:          System/Networking
Summary:        JMX integration for %{name}
Requires:	%{name} = %{epoch}:%{version}-%{release}

%description integration-jmx
%{summary}.

%package integration-spring
Group:          System/Networking
Summary:        Spring integration for %{name}
Requires:	%{name}-filter-ssl = %{epoch}:%{version}-%{release}
Requires:	slf4j
Requires:	spring-beans
Requires:	spring-core

%description integration-spring
%{summary}.

%package java5
Group:          System/Networking
Summary:        Java5 extensions for %{name}
Requires:	%{name} = %{epoch}:%{version}-%{release}
Requires:	slf4j

%description java5
%{summary}.

%package demo
Group:          System/Networking
Summary:        Examples for %{name}
Requires:	%{name}-filter-ssl = %{epoch}:%{version}-%{release}
Requires:	%{name}-integration-spring = %{epoch}:%{version}-%{release}
Requires:	nlog4j
Requires:	spring-context
Requires:	spring-support

%description demo
%{summary}.

%endif

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

%description javadoc
%{summary}.

%package manual
Group:          Development/Documentation
Summary:        Documents for %{name}

%description manual
%{summary}.

%prep
rm -rf $RPM_BUILD_ROOT
%setup -q -n %{name}-%{version}

%if ! %{with_java5}
%patch0 -b .sav
%endif
%patch1 -b .sav

%build
cp %{SOURCE3} maven2-settings.xml

sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" maven2-settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" maven2-settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/m2_repo/repository</url>|g" maven2-settings.xml
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" maven2-settings.xml
sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" maven2-settings.xml

for p in $(find . -name "*.pom"); do
    pushd $(dirname $p)
    bp=`basename $p`
    cp $bp $bp.orig
    /usr/bin/saxon -o $bp $bp.orig /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE2}
    popd
done

for p in $(find . -name "*pom.xml"); do
    pushd $(dirname $p)
    bp=`basename $p`
    cp $bp $bp.orig
    /usr/bin/saxon -o $bp $bp.orig /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE2}
    popd
done
%if ! %{with_java5}
/usr/bin/saxon -o pom-javadoc.xml pom.xml.sav /usr/share/java-utils/xml/maven2jpp-mapdeps.xsl map=%{SOURCE2}
%endif

mkdir -p m2_repo/repository/JPP/maven2/default_poms
cp %{SOURCE1} m2_repo/repository/JPP/maven2/default_poms/org.apache.directory-build.pom
cp pom.xml m2_repo/repository/JPP/maven2/default_poms/org.apache.mina-build.pom

mkdir external_repo
ln -s %{_javadir} external_repo/JPP

%if ! %{with_java5}
export JAVA_HOME=%{_jvmdir}/java-1.4.2
%else
export JAVA_HOME=%{_jvmdir}/java-1.5.0
%endif
MVN=/usr/bin/mvn
export M2SETTINGS=$(pwd)/maven2-settings.xml
export MAVEN_REPO_LOCAL=`pwd`/m2_repo/repository
export MAVEN_OPTS="-Dmaven.repo.local=$MAVEN_REPO_LOCAL -Dmaven2.jpp.mode=true -Dmaven.test.failure.ignore=true -Djava.awt.headless=true"
${MVN} -s ${M2SETTINGS} ${MAVEN_OPTS} install
%if ! %{with_java5}
${MVN} -s ${M2SETTINGS} ${MAVEN_OPTS} -f pom-javadoc.xml -N install
${MVN} -s ${M2SETTINGS} ${MAVEN_OPTS} site
%else
${MVN} -s ${M2SETTINGS} ${MAVEN_OPTS} -N site
%endif

%install
rm -rf $RPM_BUILD_ROOT

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/mina

install -m 644 core/target/%{name}-core-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/core-%{version}.jar
install -m 644 filter-codec-netty/target/%{name}-filter-codec-netty-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/filter-codec-netty-%{version}.jar
install -m 644 filter-compression/target/%{name}-filter-compression-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/filter-compression-%{version}.jar
%if %{with_java5}
install -m 644 example/target/%{name}-example-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/example-%{version}.jar
install -m 644 filter-ssl/target/%{name}-filter-ssl-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/filter-ssl-%{version}.jar
install -m 644 integration-jmx/target/%{name}-integration-jmx-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/integration-jmx-%{version}.jar
install -m 644 integration-spring/target/%{name}-integration-spring-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/integration-spring-%{version}.jar
install -m 644 java5/target/%{name}-java5-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/java5-%{version}.jar
%endif

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

pushd $RPM_BUILD_ROOT%{_javadir}
   ln -fs %{name}/core-%{version}.jar %{name}-jdk14-%{version}.jar
   ln -fs %{name}/core.jar %{name}-jdk14.jar
popd

# javadoc
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
rm -rf target/site/apidocs*

# manual
install -d -m 0755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -pr target/site/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/
cp -p core/LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/

%if %{gcj_support}
%{_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

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

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

%if %{gcj_support}
%post filter-codec-netty
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

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

%if %{gcj_support}
%post filter-compression
if [ -x %{_bindir}/rebuild-gcj-db ]
then
  %{_bindir}/rebuild-gcj-db
fi
%endif

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

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
%{_javadir}/%{name}/core*.jar
%{_javadir}/%{name}-jdk14*.jar
%if %{gcj_support}
%attr(-,root,root) %dir %{_libdir}/gcj/%{name}
%attr(-,root,root) %{_libdir}/gcj/%{name}/core-%{version}.jar.*
%endif

%files filter-codec-netty
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/filter-codec-netty*.jar
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}/filter-codec-netty-%{version}.jar.*
%endif

%files filter-compression
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/filter-compression*.jar
%if %{gcj_support}
%attr(-,root,root) %{_libdir}/gcj/%{name}/filter-compression-%{version}.jar.*
%endif

%if %{with_java5}

%files filter-ssl
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/filter-ssl*.jar

%files integration-jmx
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/integration-jmx*.jar

%files integration-spring
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/integration-spring*.jar

%files java5
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/java5*.jar

%files demo
%defattr(0644,root,root,0755)
%{_javadir}/%{name}/example*.jar


%endif

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

%files manual
%defattr(0644,root,root,0755)
%{_docdir}/%{name}-%{version}

%changelog
* Wed Oct 25 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0.0-2jpp
- Fix macro

* Wed Oct 25 2006 Ralph Apel <r.apel at r-apel.de> 0:1.0.0-1jpp
- Update to 1.0.0 for apacheds
- Add --with java5 to build full release

* Sun Feb 12 2006 Ralph Apel <r.apel at r-apel.de> 0:0.8.0-1jpp
- First JPackage release.




More information about the JPackage-commits mailing list