[RPM (6.0)] [DIST generic] aether-1.13.1-1.jpp6

Ralph Apel <[email protected]>
Newsgroups gmane.linux.jpackage.announce
Message-ID <[email protected]>
Name        : aether                       Relocations: (not relocatable)
Version     : 1.13.1                            Vendor: JPackage Project
Release     : 1.jpp6                        Build Date: Sun 08 Jul 2012 08:35:45 PM CEST
Install Date: (not installed)               Build Host: linux.fritz.box
Group       : Development/Libraries         Source RPM: (none)
Size        : 327193                           License: EPL
Signature   : (none)
Packager    : Ralph Apel <[email protected]>
URL         : http://www.sonatype.org/aether/
Summary     : Aether Repository API
Description :
This library provides a foundation of standards and best
practices for tools and systems that need to interact with
software artifact libraries.

---------------
Ralph Apel <r.apel at r-apel.de> 0:1.13.1-1
- 1.13.1
---------------
aether.src: W: uncompressed-zip annotations-9.0.4.jar
aether.src: W: source-or-patch-not-bzipped aether-pom.patch
aether.src: W: source-or-patch-not-bzipped aether-connector-wagon-pom.patch
aether.src: W: source-or-patch-not-bzipped aether-connector-file-pom.patch
aether.src: W: source-or-patch-not-bzipped aether-connector-asynchttpclient-pom.patch
aether.src: W: source-or-patch-not-bzipped aether-impl-pom.patch
aether.src: W: no-signature
aether.src: W: name-repeated-in-summary Aether
aether.src: W: invalid-license EPL
1 packages and 0 specfiles checked; 0 errors, 9 warnings.

---------------
Index: aether.spec
===================================================================
RCS file: /home/projects/jpackage/cvs/rpms/free/aether/aether.spec,v
retrieving revision 1.1
diff -u -r1.1 aether.spec
--- aether.spec	6 Sep 2011 23:55:36 -0000	1.1
+++ aether.spec	8 Jul 2012 18:58:42 -0000
@@ -1,4 +1,4 @@
-# Copyright (c) 2000-2011, JPackage Project
+# Copyright (c) 2000-2012, JPackage Project
 # All rights reserved.
 #
 # Redistribution and use in source and binary forms, with or without
@@ -26,146 +26,236 @@
 # 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.
+#
 
-%bcond_without repolib
-%bcond_with wagon
-
-%global namedversion %{version}
+%define section free
+%define _binary_payload w9.gzdio
+%define _source_payload w9.gzdio
+%define _binary_filedigest_algorithm 1
+%define _source_filedigest_algorithm 1
 
 Name:           aether
-Version:        1.11
-Release:        5%{?dist}
+Summary:        Aether Repository API
+Url:            http://www.sonatype.org/aether/
+Version:        1.13.1
+Release:        1%{?dist}
 Epoch:          0
-Summary:        Sonatype library to resolve, install and deploy artifacts the Maven way
+License:        EPL
 Group:          Development/Libraries
-License:        EPL or ASL 2.0
-URL:            https://docs.sonatype.org/display/AETHER/Home
-# git clone https://github.com/sonatype/sonatype-aether.git && cd sonatype-aether && git archive --prefix="aether-1.11/" --format=tar aether-1.11 | bzip2 > ../aether-1.11.tar.bz2
-Source0:        aether-1.11.tar.bz2
-Patch0:         0001-Remove-sonatype-test-dependencies.patch
-# FIXME: this is actually a problem with needing multiple versions of plexus-container-default on the stack (one for maven)
-Patch1:         aether-no-wagon.patch
-Requires(post): jpackage-utils
-Requires(postun): jpackage-utils
-Requires:       async-http-client >= 0:1.6.1
-Requires:       java
-Requires:       jpackage-utils
-BuildRequires:  maven2
+Source0:        sonatype-aether-1.13.1.tar.gz
+# git clone git://github.com/sonatype/sonatype-aether.git^C
+# cd sonatype-aether/
+# git tag -l
+# git archive aether-1.13.1 > ../SOURCES/sonatype-aether-1.13.1.tar
+# gzip ../SOURCES/sonatype-aether-1.13.1.tar
+ 
+Source1:        %{name}-settings.xml
+Source2:        %{name}-jpp-depmap.xml
+Source3:        http://repo1.maven.org/maven2/com/intellij/annotations/9.0.4/annotations-9.0.4.jar
+Source4:        http://repo1.maven.org/maven2/com/intellij/annotations/9.0.4/annotations-9.0.4.pom
+
+Patch0:         aether-pom.patch
+Patch1:         aether-impl-pom.patch
+Patch2:         aether-connector-file-pom.patch
+Patch3:         aether-connector-wagon-pom.patch
+Patch4:         aether-connector-asynchttpclient-pom.patch
+
+BuildRequires:  jpackage-utils >= 0:1.7.5
+BuildRequires:  java-devel >= 0:1.6.0
+BuildRequires:  ant >= 0:1.7.1
+BuildRequires:  maven2 >= 0:2.0.8
+BuildRequires:  maven2-plugin-assembly
 BuildRequires:  maven2-plugin-compiler
+BuildRequires:  maven2-plugin-idea
 BuildRequires:  maven2-plugin-install
 BuildRequires:  maven2-plugin-jar
 BuildRequires:  maven2-plugin-javadoc
+BuildRequires:  maven2-plugin-plugin
+BuildRequires:  maven2-plugin-release
+BuildRequires:  maven2-plugin-remote-resources
 BuildRequires:  maven2-plugin-resources
-BuildRequires:  maven2-plugin-site
-BuildRequires:  maven2-plugin-surefire
+BuildRequires:  maven2-plugin-source
+BuildRequires:  maven-surefire-plugin
 BuildRequires:  maven-surefire-provider-junit4
-BuildRequires:  plexus-containers-container-default >= 0:1.5.4-4
-BuildRequires:  plexus-containers-component-metadata >= 0:1.5.4-4
-BuildRequires:  animal-sniffer >= 0:1.6-5
-BuildRequires:  mojo-parent
+BuildRequires:  maven-wagon
+BuildRequires:  mojo-clirr-maven-plugin
 BuildRequires:  mojo-signatures
-BuildRequires:  async-http-client >= 0:1.6.1
-BuildRequires:  jboss-parent
+BuildRequires:  animal-sniffer
+BuildRequires:  apache-commons-parent
+BuildRequires:  apache-felix-maven-bundle-plugin
+BuildRequires:  apache-jar-resource-bundle
+BuildRequires:  async-http-client
+BuildRequires:  easymock2
+BuildRequires:  google-pom
+BuildRequires:  gossip >= 0:1.8
+BuildRequires:  jetty6
+BuildRequires:  junit4
 BuildRequires:  oss-parent
+BuildRequires:  plexus-classworlds
+BuildRequires:  plexus-containers-component-annotations
+BuildRequires:  plexus-containers-component-metadata
+BuildRequires:  plexus-utils
+BuildRequires:  sisu
+BuildRequires:  sisu-goodies
+BuildRequires:  slf4j
+BuildRequires:  sonatype-http-testing-harness
+
+Requires(post):    jpackage-utils >= 0:1.7.5
+Requires(postun):  jpackage-utils >= 0:1.7.5
+Requires:  java >= 0:1.6.0
+Requires:  maven-wagon
+Requires:  async-http-client
+Requires:  gossip >= 0:1.8
+Requires:  plexus-classworlds
+Requires:  plexus-containers-component-annotations
+Requires:  plexus-containers-component-metadata
+Requires:  plexus-utils
+Requires:  sisu
+Requires:  slf4j
+Requires:  ops4j-pax-swissbox
+
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
+BuildRoot:      %{_tmppath}/%{name}-%{version}-buildroot
 
 %description
-Aether is standalone library to resolve, install and deploy artifacts
-the Maven way developed by Sonatype
+This library provides a foundation of standards and best 
+practices for tools and systems that need to interact with
+software artifact libraries.
 
 %package javadoc
-Summary:        API documentation for %{name}
-Group:          Documentation
-Requires:       jpackage-utils
+Summary:        Javadoc for %{name}
+Group:          Development/Documentation
 
 %description javadoc
 %{summary}.
 
-%if %with repolib
-%package repolib
-Summary:        Artifacts to be uploaded to a repository library
-Group:          Development/Libraries/Java
-
-%description repolib
-Artifacts to be uploaded to a repository library.
-This package is not meant to be installed but so its contents
-can be extracted through rpm2cpio.
-%endif
-
 %prep
-# last part will have to change every time
-%setup -q
-# we'd need org.sonatype.http-testing-harness so let's remove async
-# and wagon http tests (leave others enabled)
-%patch0 -p1 -b .sav0
-%if %without wagon
-%patch1 -p0 -b .sav1
-%endif
-rm -r aether-connector-asynchttpclient/src/test
-rm -r aether-connector-wagon/src/test
+%setup -q -c
+chmod -R go=u-w *
+for f in $(find . -name "*.jar"); do
+  mv $f $f.no
+done
+cp %{SOURCE1} settings.xml
+%patch0 -b .sav0
+%patch1 -b .sav1
+%patch2 -b .sav2
+%patch3 -b .sav3
+%patch4 -b .sav4
+rm aether-connector-wagon/src/test/java/org/sonatype/aether/connector/wagon/TestSuiteHttpWagon.java
 
 %build
-export MAVEN_REPO_LOCAL=`pwd`/.m2/repository
-export ALT_DEPLOYMENT_REPOSITORY=oss-releases::default::file:`pwd`/maven2-brew
-%{_bindir}/mvn-jpp -e -Dmaven.repo.local=${MAVEN_REPO_LOCAL} -DaltDeploymentRepository=${ALT_DEPLOYMENT_REPOSITORY} -Dmaven.test.skip deploy javadoc:aggregate
+sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
+sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
+sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
+
+export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
+mkdir -p $MAVEN_REPO_LOCAL/com/intellij/annotations/9.0.4/
+cp %{SOURCE3} $MAVEN_REPO_LOCAL/com/intellij/annotations/9.0.4/annotations-9.0.4.jar
+cp %{SOURCE4} $MAVEN_REPO_LOCAL/com/intellij/annotations/9.0.4/annotations-9.0.4.pom
+
+mkdir external_repo
+ln -s %{_javadir} external_repo/JPP
+
+export SETTINGS=$(pwd)/settings.xml
+
+mvn-jpp \
+        -e \
+        -s $SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        -Dmaven.test.failure.ignore=true \
+        install 
+pushd aether-impl
+export CLASSPATH=$(build-classpath plexus/containers-container-default plexus/containers-component-metadata plexus/containers-component-annotations plexus/cli plexus/classworlds plexus/util commons-cli google-collections xbean/xbean-reflect jdom maven2/plugin-api qdox objectweb-asm/asm-all):target/classes:../aether-spi/target/aether-spi-1.13.1.jar:../aether-api/target/aether-api-1.13.1.jar
+java org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli -X -o target/classes/META-INF/plexus/components.xml -s src/main/java/ -c target/classes/ -m src/main/resources
+mvn-jpp \
+        -e \
+        -s $SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        -Dmaven.test.failure.ignore=true \
+        install 
+popd
+pushd aether-connector-file
+export CLASSPATH=$(build-classpath plexus/containers-container-default plexus/containers-component-metadata plexus/containers-component-annotations plexus/cli plexus/classworlds plexus/util commons-cli google-collections xbean/xbean-reflect jdom maven2/plugin-api qdox objectweb-asm/asm-all):target/classes:../aether-spi/target/aether-spi-1.13.1.jar:../aether-api/target/aether-api-1.13.1.jar
+java org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli -X -o target/classes/META-INF/plexus/components.xml -s src/main/java/ -c target/classes/ -m src/main/resources
+mvn-jpp \
+        -e \
+        -s $SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        -Dmaven.test.failure.ignore=true \
+        install 
+popd
+pushd aether-connector-wagon
+export CLASSPATH=$(build-classpath plexus/containers-container-default plexus/containers-component-metadata plexus/containers-component-annotations plexus/cli plexus/classworlds plexus/util commons-cli google-collections xbean/xbean-reflect jdom maven2/plugin-api qdox objectweb-asm/asm-all):target/classes:../aether-spi/target/aether-spi-1.13.1.jar:../aether-api/target/aether-api-1.13.1.jar
+java org.codehaus.plexus.metadata.PlexusMetadataGeneratorCli -X -o target/classes/META-INF/plexus/components.xml -s src/main/java/ -c target/classes/ -m src/main/resources
+mvn-jpp \
+        -e \
+        -s $SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        -Dmaven.test.failure.ignore=true \
+        install 
+popd
+mvn-jpp \
+        -e \
+        -s $SETTINGS \
+        -Dmaven2.jpp.depmap.file=%{SOURCE2} \
+        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
+        javadoc:aggregate
 
 %install
-rm -rf %{buildroot}
+rm -rf $RPM_BUILD_ROOT
 
 # jars
-%{__mkdir_p} %{buildroot}%{_javadir}/%{name}
-pushd maven2-brew
-%{__cp} -p org/sonatype/aether/aether-api/%{namedversion}/aether-api-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-api-%{namedversion}.jar
-%{__cp} -p org/sonatype/aether/aether-connector-asynchttpclient/%{namedversion}/aether-connector-asynchttpclient-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-connector-asynchttpclient-%{namedversion}.jar
-%{__cp} -p org/sonatype/aether/aether-connector-file/%{namedversion}/aether-connector-file-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-connector-file-%{namedversion}.jar
-%if %with wagon
-%{__cp} -p org/sonatype/aether/aether-connector-wagon/%{namedversion}/aether-connector-wagon-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-connector-wagon-%{namedversion}.jar
-%endif
-%{__cp} -p org/sonatype/aether/aether-impl/%{namedversion}/aether-impl-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-impl-%{namedversion}.jar
-%{__cp} -p org/sonatype/aether/aether-spi/%{namedversion}/aether-spi-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-spi-%{namedversion}.jar
-%{__cp} -p org/sonatype/aether/aether-test-util/%{namedversion}/aether-test-util-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-test-util-%{namedversion}.jar
-%{__cp} -p org/sonatype/aether/aether-util/%{namedversion}/aether-util-%{namedversion}.jar %{buildroot}%{_javadir}/%{name}/aether-util-%{namedversion}.jar
-popd
-(cd %{buildroot}%{_javadir}/%{name} && for jar in *-%{namedversion}*; do %{__ln_s} ${jar} `/bin/echo ${jar} | %{__sed} -e "s|-%{namedversion}||g"`; done)
+install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
+install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/maven2/poms
 
-# poms
-%{__mkdir_p} %{buildroot}%{_datadir}/maven2/poms
-pushd maven2-brew
-%{__cp} -p org/sonatype/aether/aether-api/%{namedversion}/aether-api-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-api.pom
-%{__cp} -p org/sonatype/aether/aether-connector-asynchttpclient/%{namedversion}/aether-connector-asynchttpclient-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-asynchttpclient.pom
-%{__cp} -p org/sonatype/aether/aether-connector-file/%{namedversion}/aether-connector-file-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-file.pom
-%if %with wagon
-%{__cp} -p org/sonatype/aether/aether-connector-wagon/%{namedversion}/aether-connector-wagon-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-wagon.pom
-%endif
-%{__cp} -p org/sonatype/aether/aether-impl/%{namedversion}/aether-impl-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-impl.pom
-%{__cp} -p org/sonatype/aether/aether-parent/%{namedversion}/aether-parent-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-parent.pom
-%{__cp} -p org/sonatype/aether/aether-spi/%{namedversion}/aether-spi-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-spi.pom
-%{__cp} -p org/sonatype/aether/aether-test-util/%{namedversion}/aether-test-util-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-test-util.pom
-%{__cp} -p org/sonatype/aether/aether-util/%{namedversion}/aether-util-%{namedversion}.pom %{buildroot}%{_datadir}/maven2/poms/JPP.%{name}-aether-util.pom
-popd
+%add_to_maven_depmap org.sonatype.aether aether %{version} JPP/%{name} aether
+install -m 644 pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether.pom
+
+%add_to_maven_depmap org.sonatype.aether aether-api %{version} JPP/%{name} aether-api
+install -m 644 aether-api/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-api.pom
+install -m 644 aether-api/target/aether-api-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-api-%{version}.jar
+
+%add_to_maven_depmap org.sonatype.aether aether-connector-asynchttpclient %{version} JPP/%{name} aether-connector-asynchttpclient
+install -m 644 aether-connector-asynchttpclient/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-asynchttpclient.pom
+install -m 644 aether-connector-asynchttpclient/target/aether-connector-asynchttpclient-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-connector-asynchttpclient-%{version}.jar
 
-# depmaps
-%add_to_maven_depmap org.sonatype.aether aether-api %{namedversion} JPP/%{name} aether-api
-%add_to_maven_depmap org.sonatype.aether aether-connector-asynchttpclient %{namedversion} JPP/%{name} aether-connector-asynchttpclient
-%add_to_maven_depmap org.sonatype.aether aether-connector-file %{namedversion} JPP/%{name} aether-connector-file
-%if %with wagon
-%add_to_maven_depmap org.sonatype.aether aether-connector-wagon %{namedversion} JPP/%{name} aether-connector-wagon
-%endif
-%add_to_maven_depmap org.sonatype.aether aether-impl %{namedversion} JPP/%{name} aether-impl
-%add_to_maven_depmap org.sonatype.aether aether-parent %{namedversion} JPP/%{name} aether-parent
-%add_to_maven_depmap org.sonatype.aether aether-spi %{namedversion} JPP/%{name} aether-spi
-%add_to_maven_depmap org.sonatype.aether aether-test-util %{namedversion} JPP/%{name} aether-test-util
-%add_to_maven_depmap org.sonatype.aether aether-util %{namedversion} JPP/%{name} aether-util
-
-%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
-%{__cp} -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
-%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
-
-%if %with repolib
-%{__mkdir_p} %{buildroot}%{_javadir}/repository.jboss.com
-%{__cp} -pr maven2-brew %{buildroot}%{_javadir}/repository.jboss.com
-%endif
+%add_to_maven_depmap org.sonatype.aether aether-connector-file %{version} JPP/%{name} aether-connector-file
+install -m 644 aether-connector-file/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-file.pom
+install -m 644 aether-connector-file/target/aether-connector-file-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-connector-file-%{version}.jar
+
+%add_to_maven_depmap org.sonatype.aether aether-connector-wagon %{version} JPP/%{name} aether-connector-wagon
+install -m 644 aether-connector-wagon/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-wagon.pom
+install -m 644 aether-connector-wagon/target/aether-connector-wagon-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-connector-wagon-%{version}.jar
+
+%add_to_maven_depmap org.sonatype.aether aether-impl %{version} JPP/%{name} aether-impl
+install -m 644 aether-impl/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-impl.pom
+install -m 644 aether-impl/target/aether-impl-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-impl-%{version}.jar
+
+%add_to_maven_depmap org.sonatype.aether aether-spi %{version} JPP/%{name} aether-spi
+install -m 644 aether-spi/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-spi.pom
+install -m 644 aether-spi/target/aether-spi-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-spi-%{version}.jar
+
+%add_to_maven_depmap org.sonatype.aether aether-test-util %{version} JPP/%{name} aether-test-util
+install -m 644 aether-test-util/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-test-util.pom
+install -m 644 aether-test-util/target/aether-test-util-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-test-util-%{version}.jar
+
+%add_to_maven_depmap org.sonatype.aether aether-util %{version} JPP/%{name} aether-util
+install -m 644 aether-util/pom.xml $RPM_BUILD_ROOT%{_datadir}/maven2/poms/JPP.%{name}-aether-util.pom
+install -m 644 aether-util/target/aether-util-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/aether-util-%{version}.jar
+
+(cd $RPM_BUILD_ROOT%{_javadir}/%{name} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
+
+# javadoc
+install -d -m 755 $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
+
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 %post
 %update_maven_depmap
@@ -174,57 +264,23 @@
 %update_maven_depmap
 
 %files
-%defattr(0644,root,root,0755)
-%doc README.md
-%dir %{_javadir}*/%{name}
-%exclude %dir %{_javadocdir}/%{name}
-%{_javadir}*/%{name}/aether-api-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-api.jar
-%{_javadir}*/%{name}/aether-connector-asynchttpclient-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-connector-asynchttpclient.jar
-%{_javadir}*/%{name}/aether-connector-file-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-connector-file.jar
-%if %with wagon
-%{_javadir}*/%{name}/aether-connector-wagon-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-connector-wagon.jar
-%endif
-%{_javadir}*/%{name}/aether-impl-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-impl.jar
-%{_javadir}*/%{name}/aether-spi-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-spi.jar
-%{_javadir}*/%{name}/aether-test-util-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-test-util.jar
-%{_javadir}*/%{name}/aether-util-%{namedversion}.jar
-%{_javadir}*/%{name}/aether-util.jar
-%{_datadir}/maven2/poms/JPP.%{name}-aether-api.pom
-%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-asynchttpclient.pom
-%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-file.pom
-%if %with wagon
-%{_datadir}/maven2/poms/JPP.%{name}-aether-connector-wagon.pom
-%endif
-%{_datadir}/maven2/poms/JPP.%{name}-aether-impl.pom
-%{_datadir}/maven2/poms/JPP.%{name}-aether-parent.pom
-%{_datadir}/maven2/poms/JPP.%{name}-aether-spi.pom
-%{_datadir}/maven2/poms/JPP.%{name}-aether-test-util.pom
-%{_datadir}/maven2/poms/JPP.%{name}-aether-util.pom
-%{_mavendepmapfragdir}/%{name}
+%defattr(-,root,root)
+%dir %{_javadir}/%{name}
+%{_javadir}/%{name}/*.jar
+%{_datadir}/maven2/poms/*
+%{_mavendepmapfragdir}/*
 
 %files javadoc
-%defattr(0644,root,root,0755)
-%{_javadocdir}/%{name}-%{version}
-%{_javadocdir}/%{name}
-
-%if %with repolib
-%files repolib
-%defattr(0644,root,root,0755)
-%dir %{_javadir}*
-%exclude %dir %{_javadocdir}
-%{_javadir}*/repository.jboss.com
-%endif
+%defattr(-,root,root,-)
+%doc %{_javadocdir}/*
 
 %changelog
+* Sun Jul 08 2012 Ralph Apel <r.apel at r-apel.de> 0:1.13.1-1
+- 1.13.1
+
 * Wed Jul 20 2011 David Walluck <[email protected]> 0:1.11-5
 - disable wagon due to plexus-container-default multiple versions issue
 
 * Wed Jul 13 2011 David Walluck <[email protected]> 0:1.11-4
 - release (based on Fedora 1.11-3)
+
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.