Update to upstream version 0.9.0.M3

This commit is contained in:
Mikolaj Izdebski 2013-08-12 07:43:53 +02:00
commit 283f79caf8
3 changed files with 64 additions and 67 deletions

1
.gitignore vendored
View file

@ -6,3 +6,4 @@
/LICENSE-2.0.txt /LICENSE-2.0.txt
/epl-v10.html /epl-v10.html
/aether-0.9.0.M2.tar.bz2 /aether-0.9.0.M2.tar.bz2
/aether-0.9.0.M3.tar.bz2

View file

@ -1,15 +1,9 @@
# Conditionals to build Aether with or without AHC connector %global vertag M3
# (connector for Async Http Client).
%if 0%{?fedora}
%bcond_without ahc
%endif
%global vertag M2
Name: aether Name: aether
Epoch: 1 Epoch: 1
Version: 0.9.0 Version: 0.9.0
Release: 0.2.%{vertag}%{?dist} Release: 0.3.%{vertag}%{?dist}
Summary: Library to resolve, install and deploy artifacts the Maven way Summary: Library to resolve, install and deploy artifacts the Maven way
License: EPL License: EPL
URL: http://eclipse.org/aether URL: http://eclipse.org/aether
@ -17,21 +11,18 @@ BuildArch: noarch
Source0: http://git.eclipse.org/c/%{name}/%{name}-core.git/snapshot/%{name}-%{version}.%{vertag}.tar.bz2 Source0: http://git.eclipse.org/c/%{name}/%{name}-core.git/snapshot/%{name}-%{version}.%{vertag}.tar.bz2
Patch0001: 0001-Port-from-Sonatype-Sisu-to-Eclipse-Sisu.patch
BuildRequires: maven-local BuildRequires: maven-local
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api) BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) >= 1.7 BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) >= 1.7
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds) BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations) BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils) BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin)
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus) BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires: mvn(org.eclipse.sisu:sisu-maven-plugin)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api) BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.forge:forge-parent)
%if %{with ahc}
BuildRequires: mvn(com.ning:async-http-client)
%endif
%description %description
Aether is a standalone library to resolve, install and deploy artifacts Aether is a standalone library to resolve, install and deploy artifacts
@ -45,31 +36,13 @@ Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides application artifacts the Maven way. This package provides application
programming interface for Aether repository system. programming interface for Aether repository system.
%if %{with ahc} %package connector-basic
%package connector-asynchttpclient Summary: Aether Connector Basic
Summary: Aether connector for Async Http Client
%description connector-asynchttpclient %description connector-basic
Aether is a standalone library to resolve, install and deploy Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides Aether repository artifacts the Maven way. This package provides repository connector
connector implementation based on Async Http Client. implementation for repositories using URI-based layouts.
%endif
%package connector-file
Summary: Aether connector for file URLs
%description connector-file
Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides Aether repository
connector implementation for repositories using file:// URLs.
%package connector-wagon
Summary: Aether connector for Maven Wagon
%description connector-wagon
Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides Aether repository
connector implementation based on Maven Wagon.
%package impl %package impl
Summary: Implementation of Aether repository system Summary: Implementation of Aether repository system
@ -96,6 +69,40 @@ Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides collection of utility artifacts the Maven way. This package provides collection of utility
classes that ease testing of Aether repository system. classes that ease testing of Aether repository system.
%package transport-classpath
Summary: Aether Transport Classpath
%description transport-classpath
Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides a transport
implementation for repositories using classpath:// URLs.
%package transport-file
Summary: Aether Transport File
%description transport-file
Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides a transport
implementation for repositories using file:// URLs.
%package transport-http
Summary: Aether Transport HTTP
Obsoletes: %{name}-connector-asynchttpclient < %{epoch}:%{version}-%{release}
%description transport-http
Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides a transport
implementation for repositories using http:// and https:// URLs.
%package transport-wagon
Summary: Aether Transport Wagon
Obsoletes: %{name}-connector-wagon < %{epoch}:%{version}-%{release}
%description transport-wagon
Aether is a standalone library to resolve, install and deploy
artifacts the Maven way. This package provides a transport
implementation based on Maven Wagon.
%package util %package util
Summary: Aether utilities Summary: Aether utilities
@ -115,31 +122,24 @@ for Aether.
%prep %prep
%setup -q -n %{name}-%{version}.%{vertag} %setup -q -n %{name}-%{version}.%{vertag}
%if %{without ahc}
%pom_disable_module aether-connector-asynchttpclient
%endif
# we'd need org.sonatype.http-testing-harness so let's remove async
# and wagon http tests (leave others enabled)
for module in asynchttpclient wagon; do (
cd ./aether-connector-$module
rm -rf src/test
# Removes all dependencies with test scope
%pom_xpath_remove "pom:dependency[pom:scope[text()='test']]"
) done
# Remove clirr plugin # Remove clirr plugin
%pom_remove_plugin :clirr-maven-plugin %pom_remove_plugin :clirr-maven-plugin
%pom_remove_plugin :clirr-maven-plugin aether-api %pom_remove_plugin :clirr-maven-plugin aether-api
%pom_remove_plugin :clirr-maven-plugin aether-util
%pom_remove_plugin :clirr-maven-plugin aether-spi %pom_remove_plugin :clirr-maven-plugin aether-spi
# Animal sniffer is not useful in Fedora # Animal sniffer is not useful in Fedora
for module in . aether-connector-wagon aether-util aether-api \ for module in . aether-api aether-connector-basic aether-impl \
aether-impl aether-connector-asynchttpclient \ aether-spi aether-test-util aether-transport-file \
aether-connector-file aether-test-util; do aether-transport-classpath aether-transport-http \
aether-transport-wagon aether-util; do
%pom_remove_plugin :animal-sniffer-maven-plugin $module %pom_remove_plugin :animal-sniffer-maven-plugin $module
done done
# HTTP transport tests require Jetty 7 and networking.
rm -rf aether-transport-http/src/test
%pom_xpath_remove "pom:dependency[pom:scope='test']" aether-transport-http
%pom_remove_plugin :maven-enforcer-plugin %pom_remove_plugin :maven-enforcer-plugin
# Workaround for rhbz#911365 # Workaround for rhbz#911365
@ -147,12 +147,6 @@ done
%pom_add_dep cglib:cglib:any:test %pom_add_dep cglib:cglib:any:test
%pom_add_dep aopalliance:aopalliance:any:test %pom_add_dep aopalliance:aopalliance:any:test
%patch0001 -p1
# Keep compatibility with packages that use old JAR locations until
# they migrate.
%mvn_file ":{%{name}-{*}}" %{name}/@1 %{name}/@2
%build %build
%mvn_build -s %mvn_build -s
@ -168,20 +162,22 @@ done
%doc epl-v10.html notice.html %doc epl-v10.html notice.html
%dir %{_javadir}/%{name} %dir %{_javadir}/%{name}
%files connector-file -f .mfiles-%{name}-connector-file %files connector-basic -f .mfiles-%{name}-connector-basic
%files connector-wagon -f .mfiles-%{name}-connector-wagon
%files impl -f .mfiles-%{name}-impl %files impl -f .mfiles-%{name}-impl
%files spi -f .mfiles-%{name}-spi %files spi -f .mfiles-%{name}-spi
%files test-util -f .mfiles-%{name}-test-util %files test-util -f .mfiles-%{name}-test-util
%files transport-classpath -f .mfiles-%{name}-transport-classpath
%files transport-file -f .mfiles-%{name}-transport-file
%files transport-http -f .mfiles-%{name}-transport-http
%files transport-wagon -f .mfiles-%{name}-transport-wagon
%files util -f .mfiles-%{name}-util %files util -f .mfiles-%{name}-util
%files javadoc -f .mfiles-javadoc %files javadoc -f .mfiles-javadoc
%doc epl-v10.html notice.html %doc epl-v10.html notice.html
%if %{with ahc}
%files connector-asynchttpclient -f .mfiles-%{name}-connector-asynchttpclient
%endif
%changelog %changelog
* Mon Aug 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.9.0-0.3.M3
- Update to upstream version 0.9.0.M3
* Thu Jul 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.9.0-0.2.M2 * Thu Jul 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.9.0-0.2.M2
- Remove remains of Sonatype Aether - Remove remains of Sonatype Aether
- Port from Sonatype Sisu to Eclipse Sisu, resolves: rhbz#985691 - Port from Sonatype Sisu to Eclipse Sisu, resolves: rhbz#985691

View file

@ -1 +1 @@
e454062f186024aeb7b8c16343735d31 aether-0.9.0.M2.tar.bz2 c81ef36155719a0cdc1473654e2f0d3b aether-0.9.0.M3.tar.bz2