mbi / rpms / maven-wagon

Forked from rpms/maven-wagon 5 years ago
Clone
Matt Wringe 2480e1e
# Needs to be re-enabled when spec files starts building with maven2
Matt Wringe 2480e1e
## If you don't want to build with maven, and use straight ant instead,
Matt Wringe 2480e1e
## give rpmbuild option '--without maven'
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#%define _without_maven 1
Matt Wringe 2480e1e
#%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
Matt Wringe 2480e1e
#%define without_maven %{?_without_maven:1}%{!?_without_maven:0}
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%define bname     wagon
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# FIXME1: wagon-scm has been disabled for now due to maven-scm dependency
Matt Wringe 2480e1e
# FIXME2: haltOnFailure/Error has been set to false for 
Matt Wringe 2480e1e
# wagon-http/wagon-ssh-external tests due to failures.
Matt Wringe 2480e1e
# FIXME3: Change spec file to build with maven2
Matt Wringe 2480e1e
# FIXME4: Add javadoc options ant build
Matt Wringe 2480e1e
Matt Wringe 2480e1e
Name:           maven-%{bname}
Matt Wringe 2480e1e
Version:        1.0
Matt Wringe 2480e1e
Release:        0.1.a5.3jpp.1%{?dist}
Matt Wringe 2480e1e
Epoch:          0
Matt Wringe 2480e1e
Summary:        Tools to manage artifacts and deployment
Matt Wringe 2480e1e
License:        Apache Software License
Matt Wringe 2480e1e
Group:          Development/Java
Matt Wringe 2480e1e
URL:            http://maven.apache.org/wagon
Matt Wringe 2480e1e
Source0:        wagon-1.0-alpha-5-src.tar.gz
Matt Wringe 2480e1e
# svn export http://svn.apache.org/repos/asf/maven/wagon/tags/wagon-1.0-alpha-5/
Matt Wringe 2480e1e
# tar czvf wagon-1.0-alpha-5-src.tar.gz wagon-1.0-alpha-5
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# The following sources (1-17) were generated by running the maven2 ant task
Matt Wringe 2480e1e
# inside the root directory of Source0: "mvn ant:ant"
Matt Wringe 2480e1e
Source1:        wagon-1.0-alpha5-provider-api-build.xml
Matt Wringe 2480e1e
Source3:        wagon-1.0-alpha5-provider-test-build.xml
Matt Wringe 2480e1e
Source5:        wagon-1.0-alpha5-providers-file-build.xml
Matt Wringe 2480e1e
Source7:        wagon-1.0-alpha5-providers-ftp-build.xml
Matt Wringe 2480e1e
Source9:        wagon-1.0-alpha5-providers-http-build.xml
Matt Wringe 2480e1e
Source11:       wagon-1.0-alpha5-providers-http-lightweight-build.xml
Matt Wringe 2480e1e
Source13:       wagon-1.0-alpha5-providers-scm-build.xml
Matt Wringe 2480e1e
Source15:       wagon-1.0-alpha5-providers-ssh-build.xml
Matt Wringe 2480e1e
Source17:       wagon-1.0-alpha5-providers-ssh-external-build.xml
Matt Wringe 2480e1e
Matt Wringe 2480e1e
Patch0:         wagon-1.0-provider-api-index.patch
Matt Wringe 2480e1e
Patch1:         wagon-1.0-FtpWagon.patch
Matt Wringe 2480e1e
Patch2:         wagon-1.0-ScmWagon.patch
Matt Wringe 2480e1e
Patch3:         wagon-1.0-TraditionalUIKeyboardInteractive.patch
Matt Wringe 2480e1e
Patch4:         maven-wagon-AbstractSshWagon.patch
Matt Wringe 2480e1e
Matt Wringe 2480e1e
Patch5:         wagon-1.0-alpha5-provider-api-build_xml.patch
Matt Wringe 2480e1e
Patch6:         wagon-1.0-alpha5-providers-file-build_xml.patch
Matt Wringe 2480e1e
Patch7:         wagon-1.0-alpha5-providers-ftp-build_xml.patch
Matt Wringe 2480e1e
Patch8:         wagon-1.0-alpha5-providers-http-build_xml.patch
Matt Wringe 2480e1e
Patch9:         wagon-1.0-alpha5-providers-http-lightweight-build_xml.patch
Matt Wringe 2480e1e
Patch10:        wagon-1.0-alpha5-providers-scm-build_xml.patch
Matt Wringe 2480e1e
Patch11:        wagon-1.0-alpha5-providers-ssh-build_xml.patch
Matt Wringe 2480e1e
Patch12:        wagon-1.0-alpha5-providers-ssh-external-build_xml.patch
Matt Wringe 2480e1e
Patch13:        wagon-1.0-alpha5-provider-test-build_xml.patch
Matt Wringe 2480e1e
Matt Wringe 2480e1e
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Matt Wringe 2480e1e
Matt Wringe 2480e1e
BuildArch:      noarch
Matt Wringe 2480e1e
BuildRequires:  jpackage-utils >= 0:1.6
Matt Wringe 2480e1e
BuildRequires:  ant
Matt Wringe 2480e1e
BuildRequires:  junit
Matt Wringe 2480e1e
BuildRequires:  classworlds
Matt Wringe 2480e1e
BuildRequires:  concurrent
Matt Wringe 2480e1e
BuildRequires:  jakarta-commons-net
Matt Wringe 2480e1e
BuildRequires:  jakarta-commons-codec
Matt Wringe 2480e1e
BuildRequires:  jakarta-commons-collections
Matt Wringe 2480e1e
BuildRequires:  jakarta-commons-httpclient
Matt Wringe 2480e1e
BuildRequires:  jakarta-commons-logging
Matt Wringe 2480e1e
BuildRequires:  jsch >= 0:0.1.26
Matt Wringe 2480e1e
BuildRequires:  oro
Matt Wringe 2480e1e
BuildRequires:  plexus-container-default
Matt Wringe 2480e1e
BuildRequires:  plexus-interactivity
Matt Wringe 2480e1e
BuildRequires:  plexus-utils
Matt Wringe 2480e1e
BuildRequires:  servletapi5
Matt Wringe 2480e1e
BuildRequires:  jline
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Commented until wagon-scm subproject can be built.
Matt Wringe 2480e1e
#BuildRequires:  excalibur-avalon-framework-api
Matt Wringe 2480e1e
#BuildRequires:  excalibur-avalon-framework-impl
Matt Wringe 2480e1e
#BuildRequires:  excalibur-cornerstone-connection-api
Matt Wringe 2480e1e
#BuildRequires:  excalibur-cornerstone-connection-impl
Matt Wringe 2480e1e
#BuildRequires:  excalibur-cornerstone-sockets-api
Matt Wringe 2480e1e
#BuildRequires:  excalibur-cornerstone-sockets-impl
Matt Wringe 2480e1e
#BuildRequires:  excalibur-cornerstone-threads-api
Matt Wringe 2480e1e
#BuildRequires:  excalibur-cornerstone-threads-impl
Matt Wringe 2480e1e
#BuildRequires:  excalibur-pool-api
Matt Wringe 2480e1e
#BuildRequires:  excalibur-pool-impl
Matt Wringe 2480e1e
#BuildRequires:  excalibur-thread-api
Matt Wringe 2480e1e
#BuildRequires:  excalibur-thread-impl
Matt Wringe 2480e1e
#BuildRequires:  maven-scm
Matt Wringe 2480e1e
#BuildRequires:  plexus-avalon-personality
Matt Wringe 2480e1e
#BuildRequires:  plexus-ftpd
Matt Wringe 2480e1e
#BuildRequires:  plexus-jetty-httpd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%description
Matt Wringe 2480e1e
Maven Wagon is a transport abstraction that is used in Maven's 
Matt Wringe 2480e1e
artifact and repository handling code. Currently wagon has the 
Matt Wringe 2480e1e
following providers:
Matt Wringe 2480e1e
* File
Matt Wringe 2480e1e
* HTTP
Matt Wringe 2480e1e
* FTP
Matt Wringe 2480e1e
* SSH/SCP
Matt Wringe 2480e1e
* WebDAV (in progress)
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Needs to be re-enabled when spec files starts building with maven2
Matt Wringe 2480e1e
#%package javadoc
Matt Wringe 2480e1e
#Summary:        Javadoc for %{name}
Matt Wringe 2480e1e
#Group:          Development/Documentation
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#%description javadoc
Matt Wringe 2480e1e
#Javadoc for %{name}.
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#%if %{with_maven}
Matt Wringe 2480e1e
#%package manual
Matt Wringe 2480e1e
#Summary:        Documents for %{name}
Matt Wringe 2480e1e
#Group:          Development/Documentation
Matt Wringe 2480e1e
Matt Wringe 2480e1e
#%description manual
Matt Wringe 2480e1e
#Documents for %{name}.
Matt Wringe 2480e1e
#%endif
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%prep
Matt Wringe 2480e1e
%setup -q -n %{bname}-%{version}-alpha-5
Matt Wringe 2480e1e
cp %{SOURCE1} wagon-provider-api/build.xml
Matt Wringe 2480e1e
cp %{SOURCE3} wagon-provider-test/build.xml
Matt Wringe 2480e1e
cp %{SOURCE5} wagon-providers/wagon-file/build.xml
Matt Wringe 2480e1e
cp %{SOURCE7} wagon-providers/wagon-ftp/build.xml
Matt Wringe 2480e1e
cp %{SOURCE9} wagon-providers/wagon-http/build.xml
Matt Wringe 2480e1e
cp %{SOURCE11} wagon-providers/wagon-http-lightweight/build.xml
Matt Wringe 2480e1e
cp %{SOURCE13} wagon-providers/wagon-scm/build.xml
Matt Wringe 2480e1e
cp %{SOURCE15} wagon-providers/wagon-ssh/build.xml
Matt Wringe 2480e1e
cp %{SOURCE17} wagon-providers/wagon-ssh-external/build.xml
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%patch0 -b .sav
Matt Wringe 2480e1e
%patch1 -b .sav
Matt Wringe 2480e1e
%patch2 -b .sav
Matt Wringe 2480e1e
%patch3 -b .sav
Matt Wringe 2480e1e
%patch4 -b .sav
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%patch5 -b .sav
Matt Wringe 2480e1e
%patch6 -b .sav
Matt Wringe 2480e1e
%patch7 -b .sav
Matt Wringe 2480e1e
%patch8 -b .sav
Matt Wringe 2480e1e
%patch9 -b .sav
Matt Wringe 2480e1e
%patch10 -b .sav
Matt Wringe 2480e1e
%patch11 -b .sav
Matt Wringe 2480e1e
%patch12 -b .sav
Matt Wringe 2480e1e
%patch13 -b .sav
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%build
Matt Wringe 2480e1e
pushd wagon-provider-api
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/utils
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-provider-test
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils junit
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-providers/wagon-file
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-test/target/wagon-provider-test*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils classworlds
Matt Wringe 2480e1e
ant  -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-providers/wagon-http-lightweight
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-test/target/wagon-provider-test*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
# We don't ship Jetty
Matt Wringe 2480e1e
# so we removed 'jetty4' and 'plexus/jetty-httpd' from the list below
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils classworlds servletapi5
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Since we don't ship jetty, we also need to remove tests that need it
Matt Wringe 2480e1e
rm -f src/test/java/org/apache/maven/wagon/providers/http/LightweightHttpWagonTest.java
Matt Wringe 2480e1e
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# commented until wagon-scm can be built
Matt Wringe 2480e1e
#pushd wagon-providers/wagon-scm
Matt Wringe 2480e1e
#%if %{with_maven}
Matt Wringe 2480e1e
#maven \
Matt Wringe 2480e1e
#        -Dmaven.repo.remote=file:/usr/share/maven-1.0/repository \
Matt Wringe 2480e1e
#        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
Matt Wringe 2480e1e
#        jar:install javadoc
Matt Wringe 2480e1e
#%else
Matt Wringe 2480e1e
#mkdir -p target/lib
Matt Wringe 2480e1e
#cp ../../wagon-provider-api/target/wagon-provider-api*.jar target/lib
Matt Wringe 2480e1e
#cp ../../wagon-provider-test/target/wagon-provider-test*.jar target/lib
Matt Wringe 2480e1e
#build-jar-repository -s -p target/lib plexus/container-default plexus/utils classworlds \
Matt Wringe 2480e1e
#maven-scm/api \
Matt Wringe 2480e1e
#maven-scm/test \
Matt Wringe 2480e1e
#maven-scm/manager-plexus \
Matt Wringe 2480e1e
#maven-scm/provider-cvs \
Matt Wringe 2480e1e
#maven-scm/provider-svn \
Matt Wringe 2480e1e
Matt Wringe 2480e1e
#ant jar javadoc
Matt Wringe 2480e1e
#%endif
Matt Wringe 2480e1e
#popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-providers/wagon-ssh-external
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-test/target/wagon-provider-test*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils classworlds
Matt Wringe 2480e1e
export ANT_OPTS="-Dtest.host=$(hostname)"
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY -Dtest.host=$(hostname) jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-providers/wagon-ssh
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-test/target/wagon-provider-test*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils classworlds \
Matt Wringe 2480e1e
plexus/interactivity-api plexus/interactivity-jline jsch jline
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY -Dtest.host=$(hostname) jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-providers/wagon-http
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-test/target/wagon-provider-test*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
# We don't ship Jetty
Matt Wringe 2480e1e
# so we removed 'jetty4' and 'plexus/jetty-httpd' from the list below
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils classworlds \
Matt Wringe 2480e1e
commons-httpclient commons-logging servletapi5
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Since we don't ship jetty, we also need to remove tests that need it
Matt Wringe 2480e1e
rm -f src/test/java/org/apache/maven/wagon/providers/http/HttpWagonTest.java
Matt Wringe 2480e1e
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
pushd wagon-providers/wagon-ftp
Matt Wringe 2480e1e
export MAVEN_REPOSITORY=$PWD/.m2/respository
Matt Wringe 2480e1e
mkdir -p $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-api/target/wagon-provider-api*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
cp ../../wagon-provider-test/target/wagon-provider-test*.jar $MAVEN_REPOSITORY
Matt Wringe 2480e1e
# FIXME we don't ship plexus ftpd
Matt Wringe 2480e1e
# After we get Excalibur, it would be nice to ship it also
Matt Wringe 2480e1e
# and add plexus/ftpd back into the list below
Matt Wringe 2480e1e
Matt Wringe 2480e1e
build-jar-repository -s -p $MAVEN_REPOSITORY plexus/container-default plexus/utils classworlds \
Matt Wringe 2480e1e
concurrent \
Matt Wringe 2480e1e
commons-collections commons-net \
Matt Wringe 2480e1e
oro
Matt Wringe 2480e1e
ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPOSITORY jar #javadoc
Matt Wringe 2480e1e
popd
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%install
Matt Wringe 2480e1e
rm -rf $RPM_BUILD_ROOT
Matt Wringe 2480e1e
# jars
Matt Wringe 2480e1e
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
Matt Wringe 2480e1e
install -m 644 wagon-provider-api/target/wagon-provider-api-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/provider-api-%{version}.jar
Matt Wringe 2480e1e
install -m 644 wagon-providers/wagon-file/target/wagon-file-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/file-%{version}.jar
Matt Wringe 2480e1e
install -m 644 wagon-providers/wagon-ftp/target/wagon-ftp-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/ftp-%{version}.jar
Matt Wringe 2480e1e
install -m 644 wagon-providers/wagon-http-lightweight/target/wagon-http-lightweight-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/http-lightweight-%{version}.jar
Matt Wringe 2480e1e
install -m 644 wagon-providers/wagon-http/target/wagon-http-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/http-%{version}.jar
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# commented until wabon-scm can be built
Matt Wringe 2480e1e
#install -m 644 wagon-providers/wagon-scm/target/wagon-scm-1.0-alpha-5.jar \
Matt Wringe 2480e1e
#  $RPM_BUILD_ROOT%{_javadir}/%{name}/scm-%{version}.jar
Matt Wringe 2480e1e
Matt Wringe 2480e1e
install -m 644 wagon-providers/wagon-ssh-external/target/wagon-ssh-external-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/ssh-external-%{version}.jar
Matt Wringe 2480e1e
install -m 644 wagon-providers/wagon-ssh/target/wagon-ssh-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/ssh-%{version}.jar
Matt Wringe 2480e1e
install -m 644 wagon-provider-test/target/wagon-provider-test-1.0-alpha-5.jar \
Matt Wringe 2480e1e
  $RPM_BUILD_ROOT%{_javadir}/%{name}/provider-test-%{version}.jar
Matt Wringe 2480e1e
Matt Wringe 2480e1e
(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
Matt Wringe 2480e1e
Matt Wringe 2480e1e
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
Matt Wringe 2480e1e
install -m 644 wagon-provider-api/LICENSE.txt $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Needs to be re-enabled when spec files starts building with maven2
Matt Wringe 2480e1e
## javadoc
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/provider-api
Matt Wringe 2480e1e
#cp -pr wagon-provider-api/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/provider-api
Matt Wringe 2480e1e
#rm -rf wagon-provider-api/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/file
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-file/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/file
Matt Wringe 2480e1e
#rm -rf wagon-providers/wagon-file/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ftp
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-ftp/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ftp
Matt Wringe 2480e1e
#rm -rf wagon-providers/wagon-ftp/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/http-lightweight
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-http-lightweight/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/http-lightweight
Matt Wringe 2480e1e
#rm -rf wagon-providers/wagon-http-lightweight/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/http
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-http/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/http
Matt Wringe 2480e1e
#rm -rf wagon-providers/wagon-http/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
## commented until wagon-scm can be build
Matt Wringe 2480e1e
##install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/scm
Matt Wringe 2480e1e
##cp -pr wagon-providers/wagon-scm/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/scm
Matt Wringe 2480e1e
##rm -rf wagon-providers/wagon-scm/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ssh-external
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-ssh-external/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ssh-external
Matt Wringe 2480e1e
#rm -rf wagon-providers/wagon-ssh-external/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ssh
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-ssh/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/ssh
Matt Wringe 2480e1e
#rm -rf wagon-providers/wagon-ssh/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/provider-test
Matt Wringe 2480e1e
#cp -pr wagon-provider-test/target/docs/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}/provider-test
Matt Wringe 2480e1e
#rm -rf wagon-provider-test/target/docs/apidocs
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} 
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
# manual
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
Matt Wringe 2480e1e
#install -m 644 wagon-provider-api/LICENSE.txt \
Matt Wringe 2480e1e
#                $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
Matt Wringe 2480e1e
#%if %{with_maven}
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/provider-api
Matt Wringe 2480e1e
#cp -pr wagon-provider-api/target/docs/* \
Matt Wringe 2480e1e
#                $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/provider-api
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
## commented until wagon-scm can be built
Matt Wringe 2480e1e
##install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/file
Matt Wringe 2480e1e
##cp -pr wagon-providers/wagon-file/target/docs/* \
Matt Wringe 2480e1e
##               $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/file
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ftp
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-ftp/target/docs/* \
Matt Wringe 2480e1e
#                $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ftp
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/http
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-http/target/docs/* \
Matt Wringe 2480e1e
#                $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/http
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
## commented until wagon-scm can be built
Matt Wringe 2480e1e
##install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/http-lightweight
Matt Wringe 2480e1e
##cp -pr wagon-providers/wagon-http-lightweight/target/docs/* \
Matt Wringe 2480e1e
##               $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/http-lightweight
Matt Wringe 2480e1e
##install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/scm
Matt Wringe 2480e1e
##cp -pr wagon-providers/wagon-scm/target/docs/* \
Matt Wringe 2480e1e
##               $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/scm
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
#install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ssh
Matt Wringe 2480e1e
#cp -pr wagon-providers/wagon-ssh/target/docs/* \
Matt Wringe 2480e1e
#                $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ssh
Matt Wringe 2480e1e
#
Matt Wringe 2480e1e
## commented until wagon-scm can be built
Matt Wringe 2480e1e
##install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ssh-external
Matt Wringe 2480e1e
##cp -pr wagon-providers/wagon-ssh-external/target/docs/* \
Matt Wringe 2480e1e
##               $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/ssh-external
Matt Wringe 2480e1e
#%endif
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%clean
Matt Wringe 2480e1e
rm -rf $RPM_BUILD_ROOT
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%files
Matt Wringe 2480e1e
%defattr(-,root,root,-)
Matt Wringe 2480e1e
%{_javadir}/*
Matt Wringe 2480e1e
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Needs to be re-enabled when spec files starts building with maven2
Matt Wringe 2480e1e
#%files javadoc
Matt Wringe 2480e1e
#%defattr(-,root,root,-)
Matt Wringe 2480e1e
#%doc %{_javadocdir}/*
Matt Wringe 2480e1e
Matt Wringe 2480e1e
# Needs to be re-enabled when spec files starts building with maven2
Matt Wringe 2480e1e
#%if %{with_maven}
Matt Wringe 2480e1e
#%files manual
Matt Wringe 2480e1e
#%defattr(-,root,root,-)
Matt Wringe 2480e1e
#%doc %{_docdir}/%{name}-%{version}
Matt Wringe 2480e1e
#%endif
Matt Wringe 2480e1e
Matt Wringe 2480e1e
%changelog
Matt Wringe 2480e1e
* Tue Mar 13 2007 Matt Wringe <mwringe@redhat.com> - 0:1.0-0.1.a5.3jpp.1
Matt Wringe 2480e1e
- Merge in the changes neeeded to build without jetty
Matt Wringe 2480e1e
- Fix rpmlint issues
Matt Wringe 2480e1e
- Generate new *-build.xml files from pom.xml files as origins of
Matt Wringe 2480e1e
  *-project files is unknown.
Matt Wringe 2480e1e
- Remove maven1 project.xml files from sources
Matt Wringe 2480e1e
- Comment out various section requiring maven or javadocs
Matt Wringe 2480e1e
  (to be re-enabled at a future time). Note that the ant:ant task
Matt Wringe 2480e1e
  for maven2 does not currently generate javadocs.
Matt Wringe 2480e1e
Matt Wringe 2480e1e
* Tue Apr 04 2006 Ralph Apel <r.apel@r-apel.de> - 0:1.0-0.a5.3jpp
Matt Wringe 2480e1e
- Require j-c-codec, to build with j-c-httpclient = 3.0
Matt Wringe 2480e1e
Matt Wringe 2480e1e
* Thu Dec 22 2005 Deepak Bhole <dbhole@redhat.com> - 0:1.0-0.a5.2jpp
Matt Wringe 2480e1e
- Commented out potentially superfluous dependencies.
Matt Wringe 2480e1e
- Disabled wagon-scm 
Matt Wringe 2480e1e
Matt Wringe 2480e1e
* Mon Nov 07 2005 Ralph Apel <r.apel at r-apel.de> - 0:1.0-0.a5.1jpp
Matt Wringe 2480e1e
- First JPackage build
Matt Wringe 2480e1e