- Build with xmvn - Split into multiple subpackages, resolves: rhbz#916142 - Update to current packaging guidelines
216 lines
7.6 KiB
RPMSpec
216 lines
7.6 KiB
RPMSpec
Name: aether
|
|
Version: 1.13.1
|
|
Release: 8%{?dist}
|
|
Summary: Sonatype library to resolve, install and deploy artifacts the Maven way
|
|
License: EPL or ASL 2.0
|
|
URL: https://docs.sonatype.org/display/AETHER/Home
|
|
# git clone https://github.com/sonatype/sonatype-aether.git
|
|
# git archive --prefix="aether-1.11/" --format=tar aether-1.11 | bzip2 > aether-1.11.tar.bz2
|
|
Source0: %{name}-%{version}.tar.bz2
|
|
BuildArch: noarch
|
|
|
|
BuildRequires: maven-local
|
|
BuildRequires: mvn(com.ning:async-http-client)
|
|
BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
|
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
BuildRequires: mvn(org.sonatype.forge:forge-parent)
|
|
BuildRequires: mvn(org.sonatype.sisu:sisu-inject-plexus)
|
|
|
|
# Require all subpackages for now, until all packages that use aether
|
|
# migrate to appropriate subpackages. See rhbz #958143
|
|
# TODO: Remove these once the above bug is closed.
|
|
Requires: %{name}-api = %{version}-%{release}
|
|
Requires: %{name}-connector-asynchttpclient = %{version}-%{release}
|
|
Requires: %{name}-connector-file = %{version}-%{release}
|
|
Requires: %{name}-connector-wagon = %{version}-%{release}
|
|
Requires: %{name}-impl = %{version}-%{release}
|
|
Requires: %{name}-spi = %{version}-%{release}
|
|
Requires: %{name}-test-util = %{version}-%{release}
|
|
Requires: %{name}-util = %{version}-%{release}
|
|
|
|
%description
|
|
Aether is a standalone library to resolve, install and deploy artifacts
|
|
the Maven way.
|
|
|
|
%package api
|
|
Summary: Aether API
|
|
|
|
%description api
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package provides application
|
|
programming interface for Aether repository system.
|
|
|
|
%package connector-asynchttpclient
|
|
Summary: Aether connector for Async Http Client
|
|
|
|
%description connector-asynchttpclient
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package provides Aether repository
|
|
connector implementation based on Async Http Client.
|
|
|
|
%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
|
|
Summary: Implementation of Aether repository system
|
|
|
|
%description impl
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package provides implementation of
|
|
Aether repository system.
|
|
|
|
%package spi
|
|
Summary: Aether SPI
|
|
|
|
%description spi
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package contains Aether service
|
|
provider interface (SPI) for repository system implementations and
|
|
repository connectors.
|
|
|
|
%package test-util
|
|
Summary: Aether test utilities
|
|
|
|
%description test-util
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package provides collection of utility
|
|
classes that ease testing of Aether repository system.
|
|
|
|
%package util
|
|
Summary: Aether utilities
|
|
|
|
%description util
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package provides a collection of
|
|
utility classes to ease usage of Aether repository system.
|
|
|
|
%package javadoc
|
|
Summary: Java API documentation for Aether
|
|
|
|
%description javadoc
|
|
Aether is a standalone library to resolve, install and deploy
|
|
artifacts the Maven way. This package provides Java API documentation
|
|
for Aether.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
# 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
|
|
%pom_remove_plugin :clirr-maven-plugin
|
|
%pom_remove_plugin :clirr-maven-plugin aether-api
|
|
%pom_remove_plugin :clirr-maven-plugin aether-spi
|
|
|
|
# Animal sniffer is not useful in Fedora
|
|
for module in . aether-connector-wagon aether-util aether-api \
|
|
aether-impl aether-connector-asynchttpclient \
|
|
aether-connector-file aether-demo aether-test-util; do
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin $module
|
|
done
|
|
|
|
# Workaround for rhbz#911365
|
|
%pom_xpath_inject pom:project "<dependencies/>"
|
|
%pom_add_dep cglib:cglib:any:test
|
|
|
|
%build
|
|
%mvn_build -s
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles-%{name}
|
|
%doc README.md
|
|
|
|
%files api -f .mfiles-%{name}-api
|
|
%doc README.md
|
|
%dir %{_javadir}/%{name}
|
|
|
|
%files connector-asynchttpclient -f .mfiles-%{name}-connector-asynchttpclient
|
|
%files connector-file -f .mfiles-%{name}-connector-file
|
|
%files connector-wagon -f .mfiles-%{name}-connector-wagon
|
|
%files impl -f .mfiles-%{name}-impl
|
|
%files spi -f .mfiles-%{name}-spi
|
|
%files test-util -f .mfiles-%{name}-test-util
|
|
%files util -f .mfiles-%{name}-util
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%changelog
|
|
* Tue Apr 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-8
|
|
- Complete spec file rewrite
|
|
- Build with xmvn
|
|
- Split into multiple subpackages, resolves: rhbz#916142
|
|
- Update to current packaging guidelines
|
|
|
|
* Mon Aug 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-5
|
|
- Disable animal-sniffer on RHEL
|
|
|
|
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13.1-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
* Thu Jun 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-3
|
|
- Replace pom.xml patches with pom macros
|
|
|
|
* Thu Apr 19 2012 Alexander Kurtakov <akurtako@redhat.com> 1.13.1-2
|
|
- Install aether-connector-asynchttpclient - it was build but not installed.
|
|
|
|
* Tue Jan 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.13.1-1
|
|
- Update to latest upstream
|
|
- Update spec to latest guidelines
|
|
|
|
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
* Wed Jun 8 2011 Alexander Kurtakov <akurtako@redhat.com> 1.11-3
|
|
- Build with maven 3.x.
|
|
- Do not require maven - not found in dependencies in poms.
|
|
- Guidelines fixes.
|
|
|
|
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.11-2
|
|
- Rebuild after bugfix update to plexus-containers (#675865)
|
|
|
|
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.11-1
|
|
- Update to latest version
|
|
- Add ASL 2.0 back as optional license
|
|
|
|
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
* Wed Jan 19 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.9-1
|
|
- License changed to EPL
|
|
- Add async-http-client to BR/R
|
|
- Update to latest version
|
|
|
|
* Wed Dec 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-3
|
|
- Make jars/javadocs versionless
|
|
- Remove buildroot and clean section
|
|
|
|
* Wed Oct 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-2
|
|
- Explained how to get tarball properly
|
|
- Removed noreplace on depmap fragment
|
|
|
|
* Mon Oct 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-1
|
|
- Initial Package
|