Matt Wringe 86d1bf7
# Copyright (c) 2000-2005, JPackage Project
Matt Wringe 86d1bf7
# All rights reserved.
Matt Wringe 86d1bf7
#
Matt Wringe 86d1bf7
# Redistribution and use in source and binary forms, with or without
Matt Wringe 86d1bf7
# modification, are permitted provided that the following conditions
Matt Wringe 86d1bf7
# are met:
Matt Wringe 86d1bf7
#
Matt Wringe 86d1bf7
# 1. Redistributions of source code must retain the above copyright
Matt Wringe 86d1bf7
#    notice, this list of conditions and the following disclaimer.
Matt Wringe 86d1bf7
# 2. Redistributions in binary form must reproduce the above copyright
Matt Wringe 86d1bf7
#    notice, this list of conditions and the following disclaimer in the
Matt Wringe 86d1bf7
#    documentation and/or other materials provided with the
Matt Wringe 86d1bf7
#    distribution.
Matt Wringe 86d1bf7
# 3. Neither the name of the JPackage Project nor the names of its
Matt Wringe 86d1bf7
#    contributors may be used to endorse or promote products derived
Matt Wringe 86d1bf7
#    from this software without specific prior written permission.
Matt Wringe 86d1bf7
#
Matt Wringe 86d1bf7
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Matt Wringe 86d1bf7
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Matt Wringe 86d1bf7
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Matt Wringe 86d1bf7
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Matt Wringe 86d1bf7
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Matt Wringe 86d1bf7
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Matt Wringe 86d1bf7
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Matt Wringe 86d1bf7
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Matt Wringe 86d1bf7
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Matt Wringe 86d1bf7
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Matt Wringe 86d1bf7
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Matt Wringe 86d1bf7
#
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
# We just want to use ant
Matt Wringe 86d1bf7
%define _without_maven 1
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
# If you don't want to build with maven, and use straight ant instead,
Matt Wringe 86d1bf7
# give rpmbuild option '--without maven'
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
Matt Wringe 86d1bf7
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
Name:           plexus-interactivity
Matt Wringe 86d1bf7
Version:        1.0
92a22fe
Release:        0.1.a5.2.3%{?dist}
Matt Wringe 86d1bf7
Epoch:          0
Matt Wringe 86d1bf7
Summary:        Plexus Interactivity Handler Component
92a22fe
License:        MIT
Matt Wringe 86d1bf7
Group:          Development/Libraries
Matt Wringe 86d1bf7
URL:            http://plexus.codehaus.org/
Matt Wringe 86d1bf7
# svn export \
Matt Wringe 86d1bf7
#   svn://svn.plexus.codehaus.org/plexus/tags/plexus-interactivity-1.0-alpha-5/
Matt Wringe 86d1bf7
# tar cjf plexus-interactivity-1.0-alpha-5-src.tar.bz2 \
Matt Wringe 86d1bf7
#   plexus-interactivity-1.0-alpha-5
Matt Wringe 86d1bf7
# md5sum 7b2a814da29fc1118bc5b4e4bc6225eb
Matt Wringe 86d1bf7
Source0:        plexus-interactivity-1.0-alpha-5-src.tar.bz2
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
Source1:        plexus-interactivity-1.0-api-build.xml
Matt Wringe 86d1bf7
Source2:        plexus-interactivity-1.0-jline-build.xml
Matt Wringe 86d1bf7
%if %{with_maven}
Matt Wringe 86d1bf7
Source3:        plexus-interactivity-1.0-api-project.xml
Matt Wringe 86d1bf7
Source4:        plexus-interactivity-1.0-jline-project.xml
Matt Wringe 86d1bf7
%endif
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
BuildArch:      noarch
Matt Wringe 86d1bf7
BuildRequires:  jpackage-utils >= 0:1.6
Matt Wringe 86d1bf7
BuildRequires:  ant >= 0:1.6
Matt Wringe 447aa41
BuildRequires:  ant-nodeps 
Matt Wringe 86d1bf7
%if %{with_maven}
Matt Wringe 86d1bf7
BuildRequires:  maven
Matt Wringe 86d1bf7
%endif
Matt Wringe 86d1bf7
BuildRequires:  jline
Matt Wringe 86d1bf7
BuildRequires:  plexus-container-default
Matt Wringe 86d1bf7
BuildRequires:  plexus-utils
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
Requires:  plexus-container-default
Matt Wringe 86d1bf7
Requires:  plexus-utils
Matt Wringe 86d1bf7
Requires:  jline
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%description
Matt Wringe 86d1bf7
The Plexus project seeks to create end-to-end developer tools for
Matt Wringe 86d1bf7
writing applications. At the core is the container, which can be
Matt Wringe 86d1bf7
embedded or for a full scale application server. There are many
Matt Wringe 86d1bf7
reusable components for hibernate, form processing, jndi, i18n,
Matt Wringe 86d1bf7
velocity, etc. Plexus also includes an application server which
Matt Wringe 86d1bf7
is like a J2EE application server, without all the baggage.
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%package javadoc
Matt Wringe 86d1bf7
Summary:        Javadoc for %{name}
Matt Wringe 86d1bf7
Group:          Development/Documentation
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%description javadoc
Matt Wringe 86d1bf7
Javadoc for %{name}.
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%prep
Matt Wringe 86d1bf7
%setup -q -n plexus-interactivity-1.0-alpha-5
Matt Wringe 86d1bf7
cp %{SOURCE1} plexus-interactivity-api/build.xml
Matt Wringe 86d1bf7
cp %{SOURCE2} plexus-interactivity-jline/build.xml
Matt Wringe 86d1bf7
%if %{with_maven}
Matt Wringe 86d1bf7
cp %{SOURCE3} plexus-interactivity-api/project.xml
Matt Wringe 86d1bf7
cp %{SOURCE4} plexus-interactivity-jline/project.xml
Matt Wringe 86d1bf7
%endif
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%build
Matt Wringe 86d1bf7
%if %{with_maven}
Matt Wringe 86d1bf7
mkdir -p .maven/repository/maven/jars
Matt Wringe 86d1bf7
build-jar-repository .maven/repository/maven/jars \
Matt Wringe 86d1bf7
maven-jelly-tags
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
mkdir -p .maven/repository/JPP/jars
Matt Wringe 86d1bf7
build-jar-repository -s -p .maven/repository/JPP/jars \
Matt Wringe 86d1bf7
jline plexus/container-default plexus/utils
Matt Wringe 86d1bf7
export MAVEN_HOME_LOCAL=$(pwd)/.maven
Matt Wringe 86d1bf7
%endif
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
pushd plexus-interactivity-api
Matt Wringe 86d1bf7
%if %{with_maven}
Matt Wringe 86d1bf7
maven \
Matt Wringe 86d1bf7
        -Dmaven.repo.remote=file:/usr/share/maven/repository \
Matt Wringe 86d1bf7
        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
Matt Wringe 86d1bf7
        jar:install javadoc
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%else
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
mkdir -p target/lib
Matt Wringe 86d1bf7
build-jar-repository -s -p target/lib plexus/container-default plexus/utils
Matt Wringe 86d1bf7
ant jar javadoc
Matt Wringe 86d1bf7
%endif
Matt Wringe 86d1bf7
popd
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
pushd plexus-interactivity-jline
Matt Wringe 86d1bf7
%if %{with_maven}
Matt Wringe 86d1bf7
maven \
Matt Wringe 86d1bf7
        -Dmaven.repo.remote=file:/usr/share/maven/repository \
Matt Wringe 86d1bf7
        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
Matt Wringe 86d1bf7
        jar:install javadoc
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%else
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
mkdir -p target/lib
Matt Wringe 86d1bf7
cp \
Matt Wringe 86d1bf7
  ../plexus-interactivity-api/target/plexus-interactivity-api-1.0-alpha-5.jar \
Matt Wringe 86d1bf7
  target/lib
Matt Wringe 86d1bf7
build-jar-repository -s -p target/lib jline plexus/container-default
Matt Wringe 86d1bf7
ant jar javadoc
Matt Wringe 86d1bf7
%endif
Matt Wringe 86d1bf7
popd
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%install
Matt Wringe 86d1bf7
rm -rf $RPM_BUILD_ROOT
Matt Wringe 86d1bf7
# jars
Matt Wringe 86d1bf7
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/plexus
Matt Wringe 86d1bf7
install -pm 644 \
Matt Wringe 86d1bf7
  plexus-interactivity-api/target/%{name}-api-%{version}-alpha-5.jar \
Matt Wringe 86d1bf7
  $RPM_BUILD_ROOT%{_javadir}/plexus/interactivity-api-%{version}.jar
Matt Wringe 86d1bf7
install -pm 644 \
Matt Wringe 86d1bf7
  plexus-interactivity-jline/target/%{name}-jline-%{version}-alpha-5.jar \
Matt Wringe 86d1bf7
  $RPM_BUILD_ROOT%{_javadir}/plexus/interactivity-jline-%{version}.jar
Matt Wringe 86d1bf7
(cd $RPM_BUILD_ROOT%{_javadir}/plexus && \
Matt Wringe 86d1bf7
 for jar in *-%{version}*; do \
Matt Wringe 86d1bf7
     ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; \
Matt Wringe 86d1bf7
 done \
Matt Wringe 86d1bf7
)
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
# javadoc
Matt Wringe 86d1bf7
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
Matt Wringe 86d1bf7
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
Matt Wringe 86d1bf7
cp -pr plexus-interactivity-api/target/docs/apidocs/* \
Matt Wringe 86d1bf7
  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/api
Matt Wringe 86d1bf7
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/jline
Matt Wringe 86d1bf7
cp -pr plexus-interactivity-jline/target/docs/apidocs/* \
Matt Wringe 86d1bf7
  $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/jline
Matt Wringe 86d1bf7
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%clean
Matt Wringe 86d1bf7
rm -rf $RPM_BUILD_ROOT
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%files
Matt Wringe 86d1bf7
%defattr(-,root,root,-)
Matt Wringe 86d1bf7
%{_javadir}/*
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%files javadoc
Matt Wringe 86d1bf7
%defattr(-,root,root,-)
Matt Wringe 86d1bf7
%doc %{_javadocdir}/*
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
%changelog
92a22fe
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> 1.0-0.1.a5.2.3
92a22fe
- drop repotag
92a22fe
- fix license tag
92a22fe
Matt Wringe 447aa41
* Tue Mar 13 2007 Matt Wringe <mwringe@redhat.com> 1.0-0.1.a5.2jpp.2
Matt Wringe 447aa41
- Add missing build requires for ant-nodeps
Matt Wringe 447aa41
Matt Wringe 86d1bf7
* Fri Feb 16 2007 Andrew Overholt <overholt@redhat.com> 1.0-0.1.a5.2jpp.1
Matt Wringe 86d1bf7
- Remove javadoc symlinking
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
* Thu Feb 23 2006 Fernando Nasser <fnasser@redhat.com> - 0:1.0-0.a5.2jpp
Matt Wringe 86d1bf7
- First JPP 1.7 build
Matt Wringe 86d1bf7
- With remavenization to 1.1 by Deepak Bhole <dbhole@redhat.com>
Matt Wringe 86d1bf7
Matt Wringe 86d1bf7
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.a5.1jpp
Matt Wringe 86d1bf7
- First JPackage build
Matt Wringe 86d1bf7