# 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. # %global parent plexus %global subname appserver Name: plexus-appserver Version: 1.0 Release: 0.7.a5%{?dist} Epoch: 0 Summary: Plexus Application Server License: ASL 2.0 and MIT Group: Development/Java URL: http://plexus.codehaus.org/ Source0: plexus-appserver-1.0-alpha-5-src.tar.gz # svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-appserver-1.0-alpha-5/ # tar czf plexus-appserver-1.0-alpha-5.tar.gz plexus-appserver-1.0-alpha-5/ Source2: %{name}-depmap.xml BuildArch: noarch BuildRequires: jpackage-utils >= 0:1.7.2 BuildRequires: ant >= 0:1.6 BuildRequires: maven2 BuildRequires: maven-compiler-plugin BuildRequires: maven-install-plugin BuildRequires: maven-jar-plugin BuildRequires: maven-javadoc-plugin BuildRequires: maven-resources-plugin BuildRequires: maven-surefire-plugin BuildRequires: maven-doxia BuildRequires: maven-doxia-sitetools BuildRequires: ant-nodeps BuildRequires: classworlds >= 0:1.1 BuildRequires: plexus-container-default BuildRequires: plexus-utils BuildRequires: plexus-xmlrpc >= 0:1.0-0.b4.3 BuildRequires: xmlrpc Requires: plexus-xmlrpc >= 0:1.0-0.b4.3 Requires: xmlrpc Requires(post): jpackage-utils >= 0:1.7.2 Requires(postun): jpackage-utils >= 0:1.7.2 %description The Plexus project seeks to create end-to-end developer tools for writing applications. At the core is the container, which can be embedded or for a full scale application server. There are many reusable components for hibernate, form processing, jndi, i18n, velocity, etc. Plexus also includes an application server which is like a J2EE application server, without all the baggage. %package javadoc Summary: Javadoc for %{name} Group: Development/Documentation Requires: jpackage-utils %description javadoc Javadoc for %{name}. %prep %setup -q -n plexus-appserver-1.0-alpha-5 %build export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository mkdir -p $MAVEN_REPO_LOCAL mvn-jpp -e \ -Dmaven.repo.local=$MAVEN_REPO_LOCAL \ -Dmaven2.jpp.depmap.file=%{SOURCE2} \ install javadoc:javadoc %install rm -rf $RPM_BUILD_ROOT # jars install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus install -pm 644 target/%{name}-%{version}-alpha-5.jar \ $RPM_BUILD_ROOT%{_javadir}/%{parent}/%{subname}.jar %add_to_maven_depmap org.codehaus.plexus %{name} 1.0-alpha-5 JPP/%{parent} %{subname} #poms install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir} install -pm 644 pom.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.plexus-appserver.pom # javadoc install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name} cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name} %post %update_maven_depmap %postun %update_maven_depmap %files %defattr(-,root,root,-) %{_javadir}/* %{_mavenpomdir}/* %{_mavendepmapfragdir}/* %files javadoc %defattr(-,root,root,-) %doc %{_javadocdir}/* %changelog * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.7.a5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Fri Dec 17 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.6.a5 - Drop tomcat5 dependency. - Drop versioned jars. - Adapt to current guidelines. * Wed Sep 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.0-0.5.a5 - Add depmap for old plexus-container to fix build errors - Remove ant build possibility - Follow packaging guidelines * Fri Feb 12 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.4.a5.2.11 - BR maven-doxia[-sitetools]. * Fri Feb 12 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.0-0.4.a5.2.10 - Drop maven-release BR. Fixes rhbz#539196 . - Drop gcj_support. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.4.a5.2.9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Mar 24 2009 Deepak Bhole <dbhole@redhat.com> 1.0-0.3.a5.2.9 - Build with maven - Add tomcat BRs * Mon Mar 23 2009 Deepak Bhole <dbhole@redhat.com> 1.0-0.3.a5.2.8 - Build without maven * Mon Mar 23 2009 Deepak Bhole <dbhole@redhat.com> 1.0-0.3.a5.2.7 - Add tomcat servlet api dependency - Build on ppc64 * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.0-0.3.a5.2.6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Wed Jul 9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-0.2.a5.2.6 - drop repotag * Thu May 29 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-0.2.a5.2jpp.5 - fix license tag * Thu Feb 28 2008 Deepak Bhole <dbhole@redhat.com> 1.0-0.2.a5.2jpp.4 - Rebuild * Fri Sep 21 2007 Deepak Bhole <dbhole@redhat.com> 0:1.0-0.1.a5.3jpp.3 - ExcludeArch ppc64 * Tue Mar 20 2007 Deepak Bhole <dbhole@redhat.com> 0:1.0-0.1.a5.3jpp.2 - Build with maven * Tue Feb 20 2007 Tania Bento <tbento@redhat.com> 0:1.0-0.1.a5.3jpp.1 - Fixed %%Release. - Fixed %%License. - Fixed instructions on how to generate the source drop. - Fixed %%BuildRoot. - Removed %%Vendor. - Removed %%Distribution. - Removed %%post and %%postun for javadoc. - Added gcj support option. * Tue Oct 17 2006 Deepak Bhole <dbhole@redhat.com> 1.0-0.a5.3jpp - Update for maven2 9jpp. * Wed Jun 21 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.0-0.a5.2jpp - Removed maven1 build support, and added maven2 support. - First JPP 1.7 build * Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.a5.1jpp - First JPackage build