a8fc1c
Name:           maven-resolver
a8fc1c
Epoch:          1
a8fc1c
Version:        1.1.1
a8fc1c
Release:        2%{?dist}
a8fc1c
License:        ASL 2.0
a8fc1c
Summary:        Apache Maven Artifact Resolver library
a8fc1c
URL:            http://maven.apache.org/resolver/
a8fc1c
Source0:        http://archive.apache.org/dist/maven/resolver/%{name}-%{version}-source-release.zip
a8fc1c
BuildArch:      noarch
a8fc1c
a8fc1c
BuildRequires:  maven-local
a8fc1c
BuildRequires:  mvn(javax.inject:javax.inject)
a8fc1c
BuildRequires:  mvn(junit:junit)
a8fc1c
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
a8fc1c
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
a8fc1c
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
a8fc1c
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
a8fc1c
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
a8fc1c
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
a8fc1c
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
a8fc1c
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
a8fc1c
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
a8fc1c
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
a8fc1c
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
a8fc1c
BuildRequires:  mvn(org.eclipse.sisu:sisu-maven-plugin)
a8fc1c
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
a8fc1c
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
a8fc1c
BuildRequires:  mvn(org.slf4j:slf4j-api)
a8fc1c
BuildRequires:  mvn(org.sonatype.sisu:sisu-guice::no_aop:)
a8fc1c
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes:      aether < 1:1.0.3
a8fc1c
a8fc1c
%description
a8fc1c
Apache Maven Artifact Resolver is a library for working with artifact
a8fc1c
repositories and dependency resolution. Maven Artifact Resolver deals with the
a8fc1c
specification of local repository, remote repository, developer workspaces,
a8fc1c
artifact transports and artifact resolution.
a8fc1c
a8fc1c
%package api
a8fc1c
Summary:   Maven Artifact Resolver API
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-api < 1:1.0.3
a8fc1c
Obsoletes: aether-ant-tasks < 1:1.0.1-9
a8fc1c
a8fc1c
%description api
a8fc1c
The application programming interface for the repository system.
a8fc1c
a8fc1c
%package spi
a8fc1c
Summary:   Maven Artifact Resolver SPI
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-spi < 1:1.0.3
a8fc1c
a8fc1c
%description spi
a8fc1c
The service provider interface for repository system implementations and
a8fc1c
repository connectors.
a8fc1c
a8fc1c
%package util
a8fc1c
Summary:   Maven Artifact Resolver Utilities
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-util < 1:1.0.3
a8fc1c
a8fc1c
%description util
a8fc1c
A collection of utility classes to ease usage of the repository system.
a8fc1c
a8fc1c
%package impl
a8fc1c
Summary:   Maven Artifact Resolver Implementation
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-impl < 1:1.0.3
a8fc1c
a8fc1c
%description impl
a8fc1c
An implementation of the repository system.
a8fc1c
a8fc1c
%package test-util
a8fc1c
Summary:   Maven Artifact Resolver Test Utilities
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-test-util < 1:1.0.3
a8fc1c
a8fc1c
%description test-util
a8fc1c
A collection of utility classes to ease testing of the repository system.
a8fc1c
a8fc1c
%package connector-basic
a8fc1c
Summary:   Maven Artifact Resolver Connector Basic
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-connector-basic < 1:1.0.3
a8fc1c
a8fc1c
%description connector-basic
a8fc1c
A repository connector implementation for repositories using URI-based layouts.
a8fc1c
a8fc1c
%package transport-classpath
a8fc1c
Summary:   Maven Artifact Resolver Transport Classpath
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-transport-classpath < 1:1.0.3
a8fc1c
a8fc1c
%description transport-classpath
a8fc1c
A transport implementation for repositories using classpath:// URLs.
a8fc1c
a8fc1c
%package transport-file
a8fc1c
Summary:   Maven Artifact Resolver Transport File
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-transport-file < 1:1.0.3
a8fc1c
a8fc1c
%description transport-file
a8fc1c
A transport implementation for repositories using file:// URLs.
a8fc1c
a8fc1c
%package transport-http
a8fc1c
Summary:   Maven Artifact Resolver Transport HTTP
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-transport-http < 1:1.0.3
a8fc1c
a8fc1c
%description transport-http
a8fc1c
A transport implementation for repositories using http:// and https:// URLs.
a8fc1c
a8fc1c
%package transport-wagon
a8fc1c
Summary:   Maven Artifact Resolver Transport Wagon
a8fc1c
# XXX Remove after F26 EOL
a8fc1c
Obsoletes: aether-transport-wagon < 1:1.0.3
a8fc1c
a8fc1c
%description transport-wagon
a8fc1c
A transport implementation based on Maven Wagon.
a8fc1c
a8fc1c
%package        javadoc
a8fc1c
Summary:        API documentation for %{name}
a8fc1c
a8fc1c
%description    javadoc
a8fc1c
This package provides %{summary}.
a8fc1c
a8fc1c
a8fc1c
%prep
a8fc1c
%setup -q
a8fc1c
a8fc1c
# tests require jetty 7
a8fc1c
%pom_remove_dep :::test maven-resolver-transport-http
a8fc1c
rm -r maven-resolver-transport-http/src/test
a8fc1c
a8fc1c
%pom_disable_module maven-resolver-demos
a8fc1c
a8fc1c
# generate OSGi manifests
a8fc1c
for pom in $(find -mindepth 2 -name pom.xml) ; do
a8fc1c
  %pom_add_plugin "org.apache.felix:maven-bundle-plugin" $pom \
a8fc1c
  "<configuration>
a8fc1c
    <instructions>
a8fc1c
      <Bundle-SymbolicName>\${project.groupId}$(sed 's:./maven-resolver::;s:/pom.xml::;s:-:.:g' <<< $pom)</Bundle-SymbolicName>
a8fc1c
      <Export-Package>!org.eclipse.aether.internal*,org.eclipse.aether*</Export-Package>
a8fc1c
      <_nouses>true</_nouses>
a8fc1c
    </instructions>
a8fc1c
  </configuration>
a8fc1c
  <executions>
a8fc1c
    <execution>
a8fc1c
      <id>create-manifest</id>
a8fc1c
      <phase>process-classes</phase>
a8fc1c
      <goals><goal>manifest</goal></goals>
a8fc1c
    </execution>
a8fc1c
  </executions>"
a8fc1c
done
a8fc1c
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin" pom.xml \
a8fc1c
"<configuration>
a8fc1c
  <archive>
a8fc1c
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
a8fc1c
  </archive>
a8fc1c
</configuration>"
a8fc1c
a8fc1c
%mvn_package :maven-resolver
a8fc1c
%mvn_alias 'org.apache.maven.resolver:maven-resolver{*}' 'org.eclipse.aether:aether@1'
a8fc1c
%mvn_file ':maven-resolver{*}' %{name}/maven-resolver@1 aether/aether@1
a8fc1c
a8fc1c
%build
a8fc1c
%mvn_build -s
a8fc1c
a8fc1c
%install
a8fc1c
%mvn_install
a8fc1c
a8fc1c
a8fc1c
%files -f .mfiles
a8fc1c
%license LICENSE NOTICE
a8fc1c
a8fc1c
%files api -f .mfiles-%{name}-api
a8fc1c
%license LICENSE NOTICE
a8fc1c
%files spi -f .mfiles-%{name}-spi
a8fc1c
%files util -f .mfiles-%{name}-util
a8fc1c
%files impl -f .mfiles-%{name}-impl
a8fc1c
%files test-util -f .mfiles-%{name}-test-util
a8fc1c
%files connector-basic -f .mfiles-%{name}-connector-basic
a8fc1c
%files transport-classpath -f .mfiles-%{name}-transport-classpath
a8fc1c
%files transport-file -f .mfiles-%{name}-transport-file
a8fc1c
%files transport-http -f .mfiles-%{name}-transport-http
a8fc1c
%files transport-wagon -f .mfiles-%{name}-transport-wagon
a8fc1c
a8fc1c
%files javadoc -f .mfiles-javadoc
a8fc1c
%license LICENSE NOTICE
a8fc1c
a8fc1c
%changelog
a8fc1c
* Wed Apr 18 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1.1-2
a8fc1c
- Remove aether provides
a8fc1c
a8fc1c
* Mon Feb 26 2018 Michael Simacek <msimacek@redhat.com> - 1:1.1.1-1
a8fc1c
- Update to upstream version 1.1.1
a8fc1c
a8fc1c
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.1.0-3
a8fc1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
a8fc1c
a8fc1c
* Mon Nov 27 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.1.0-2
a8fc1c
- Obsolete aether-ant-tasks
a8fc1c
- Resolves: rhbz#1516043
a8fc1c
a8fc1c
* Wed Oct 25 2017 Michael Simacek <msimacek@redhat.com> - 1:1.1.0-1
a8fc1c
- Update to upstream version 1.1.0
a8fc1c
a8fc1c
* Thu Aug 24 2017 Mat Booth <mat.booth@redhat.com> - 1:1.0.3-7
a8fc1c
- Fix OSGi metadata to also export "impl" packages; "internal" packages remain
a8fc1c
  unexported
a8fc1c
a8fc1c
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.0.3-6
a8fc1c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a8fc1c
a8fc1c
* Wed May 24 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.0.3-5
a8fc1c
- Add aether alias for main POM file
a8fc1c
a8fc1c
* Tue May 23 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.0.3-4
a8fc1c
- Fix duplicate Bundle-SymbolicName in OSGi manifests
a8fc1c
a8fc1c
* Mon May 15 2017 Mat Booth <mat.booth@redhat.com> - 1:1.0.3-3
a8fc1c
- Restore OSGi metadata that was lost in the switch from "aether" to
a8fc1c
  "maven-resolver"
a8fc1c
a8fc1c
* Wed Apr 12 2017 Michael Simacek <msimacek@redhat.com> - 1:1.0.3-2
a8fc1c
- Split into subpackages
a8fc1c
- Obsolete and provide aether
a8fc1c
a8fc1c
* Tue Apr 11 2017 Michael Simacek <msimacek@redhat.com> - 1.0.3-1
a8fc1c
- Initial packaging