|
Stanislav Ochotnicky |
cba8ea |
Name: aether
|
|
Stanislav Ochotnicky |
0ce9c3 |
Version: 1.13.1
|
|
Mikolaj Izdebski |
4a60b7 |
Release: 3%{?dist}
|
|
Stanislav Ochotnicky |
cba8ea |
Summary: Sonatype library to resolve, install and deploy artifacts the Maven way
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
Group: Development/Libraries
|
|
Stanislav Ochotnicky |
276311 |
License: EPL or ASL 2.0
|
|
Stanislav Ochotnicky |
cba8ea |
URL: https://docs.sonatype.org/display/AETHER/Home
|
|
Stanislav Ochotnicky |
276311 |
# git clone https://github.com/sonatype/sonatype-aether.git
|
|
Stanislav Ochotnicky |
276311 |
# git archive --prefix="aether-1.11/" --format=tar aether-1.11 | bzip2 > aether-1.11.tar.bz2
|
|
Stanislav Ochotnicky |
276311 |
Source0: %{name}-%{version}.tar.bz2
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
BuildArch: noarch
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Alexander Kurtakov |
59fcba |
BuildRequires: maven
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-compiler-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-install-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-jar-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-javadoc-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-resources-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-site-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-surefire-plugin
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: maven-surefire-provider-junit4
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: plexus-containers-component-metadata >= 1.5.4-4
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: animal-sniffer >= 1.6-5
|
|
Stanislav Ochotnicky |
cba8ea |
BuildRequires: mojo-parent
|
|
Stanislav Ochotnicky |
276311 |
BuildRequires: async-http-client >= 1.6.1
|
|
Stanislav Ochotnicky |
0e0eaf |
BuildRequires: sonatype-oss-parent
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
0ce9c3 |
# required by netty really, but we push this dep on level higer
|
|
Stanislav Ochotnicky |
0ce9c3 |
BuildRequires: jboss-parent
|
|
Stanislav Ochotnicky |
0ce9c3 |
Requires: jboss-parent
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
276311 |
Requires: async-http-client >= 1.6.1
|
|
Stanislav Ochotnicky |
cba8ea |
Requires: java >= 1:1.6.0
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%description
|
|
Stanislav Ochotnicky |
cba8ea |
Aether is standalone library to resolve, install and deploy artifacts
|
|
Stanislav Ochotnicky |
cba8ea |
the Maven way developed by Sonatype
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%package javadoc
|
|
Stanislav Ochotnicky |
cba8ea |
Summary: API documentation for %{name}
|
|
Stanislav Ochotnicky |
cba8ea |
Group: Documentation
|
|
Stanislav Ochotnicky |
cba8ea |
Requires: jpackage-utils
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%description javadoc
|
|
Stanislav Ochotnicky |
cba8ea |
%{summary}.
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%prep
|
|
Stanislav Ochotnicky |
cba8ea |
# last part will have to change every time
|
|
Stanislav Ochotnicky |
276311 |
%setup -q
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
0e0eaf |
# we'd need org.sonatype.http-testing-harness so let's remove async
|
|
Stanislav Ochotnicky |
276311 |
# and wagon http tests (leave others enabled)
|
|
Mikolaj Izdebski |
4a60b7 |
for module in asynchttpclient wagon; do (
|
|
Mikolaj Izdebski |
4a60b7 |
cd ./aether-connector-$module
|
|
Mikolaj Izdebski |
4a60b7 |
rm -rf src/test
|
|
Mikolaj Izdebski |
4a60b7 |
# Removes all dependencies with test scope
|
|
Mikolaj Izdebski |
4a60b7 |
%pom_xpath_remove "pom:dependency[pom:scope[text()='test']]"
|
|
Mikolaj Izdebski |
4a60b7 |
) done
|
|
Mikolaj Izdebski |
4a60b7 |
|
|
Mikolaj Izdebski |
4a60b7 |
# Remove clirr plugin
|
|
Mikolaj Izdebski |
4a60b7 |
%pom_remove_plugin :clirr-maven-plugin
|
|
Mikolaj Izdebski |
4a60b7 |
%pom_remove_plugin :clirr-maven-plugin aether-api
|
|
Mikolaj Izdebski |
4a60b7 |
%pom_remove_plugin :clirr-maven-plugin aether-spi
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%build
|
|
Alexander Kurtakov |
59fcba |
mvn-rpmbuild install javadoc:aggregate
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%install
|
|
Stanislav Ochotnicky |
cba8ea |
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
|
|
Stanislav Ochotnicky |
cba8ea |
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Alexander Kurtakov |
cbe707 |
for module in aether-api aether-connector-file aether-connector-wagon aether-connector-asynchttpclient\
|
|
Stanislav Ochotnicky |
cba8ea |
aether-impl aether-spi aether-test-util aether-util;do
|
|
Stanislav Ochotnicky |
cba8ea |
pushd $module
|
|
Stanislav Ochotnicky |
cba8ea |
jarname=`echo $module | sed s:aether-::`
|
|
Stanislav Ochotnicky |
d76385 |
install -m 644 target/$module-*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/$jarname.jar
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-$jarname.pom
|
|
Stanislav Ochotnicky |
0ce9c3 |
%add_maven_depmap JPP.%{name}-$jarname.pom %{name}/$jarname.jar
|
|
Stanislav Ochotnicky |
cba8ea |
popd
|
|
Stanislav Ochotnicky |
cba8ea |
done
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
d76385 |
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
d76385 |
cp -pr target/site/apidocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
install -pm 644 pom.xml $RPM_BUILD_ROOT/%{_mavenpomdir}/JPP.%{name}-parent.pom
|
|
Stanislav Ochotnicky |
0ce9c3 |
%add_maven_depmap JPP.%{name}-parent.pom
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%files
|
|
Stanislav Ochotnicky |
cba8ea |
%doc README.md
|
|
Stanislav Ochotnicky |
cba8ea |
%{_javadir}/%{name}
|
|
Stanislav Ochotnicky |
cba8ea |
%{_mavendepmapfragdir}/%{name}
|
|
Stanislav Ochotnicky |
cba8ea |
%{_mavenpomdir}/*.pom
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%files javadoc
|
|
Stanislav Ochotnicky |
cba8ea |
%{_javadocdir}/%{name}
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
%changelog
|
|
Mikolaj Izdebski |
4a60b7 |
* Thu Jun 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-3
|
|
Mikolaj Izdebski |
4a60b7 |
- Replace pom.xml patches with pom macros
|
|
Mikolaj Izdebski |
4a60b7 |
|
|
Alexander Kurtakov |
cbe707 |
* Thu Apr 19 2012 Alexander Kurtakov <akurtako@redhat.com> 1.13.1-2
|
|
Alexander Kurtakov |
cbe707 |
- Install aether-connector-asynchttpclient - it was build but not installed.
|
|
Alexander Kurtakov |
cbe707 |
|
|
Stanislav Ochotnicky |
0ce9c3 |
* Tue Jan 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.13.1-1
|
|
Stanislav Ochotnicky |
0ce9c3 |
- Update to latest upstream
|
|
Stanislav Ochotnicky |
0ce9c3 |
- Update spec to latest guidelines
|
|
Stanislav Ochotnicky |
0ce9c3 |
|
|
Dennis Gilmore |
a2fb02 |
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
|
|
Dennis Gilmore |
a2fb02 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
Dennis Gilmore |
a2fb02 |
|
|
Alexander Kurtakov |
59fcba |
* Wed Jun 8 2011 Alexander Kurtakov <akurtako@redhat.com> 1.11-3
|
|
Alexander Kurtakov |
59fcba |
- Build with maven 3.x.
|
|
Alexander Kurtakov |
59fcba |
- Do not require maven - not found in dependencies in poms.
|
|
Alexander Kurtakov |
59fcba |
- Guidelines fixes.
|
|
Alexander Kurtakov |
59fcba |
|
|
Stanislav Ochotnicky |
ea5d8c |
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.11-2
|
|
Stanislav Ochotnicky |
ea5d8c |
- Rebuild after bugfix update to plexus-containers (#675865)
|
|
Stanislav Ochotnicky |
ea5d8c |
|
|
Stanislav Ochotnicky |
276311 |
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.11-1
|
|
Stanislav Ochotnicky |
276311 |
- Update to latest version
|
|
Stanislav Ochotnicky |
276311 |
- Add ASL 2.0 back as optional license
|
|
Stanislav Ochotnicky |
276311 |
|
|
Dennis Gilmore |
34e329 |
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
|
|
Dennis Gilmore |
34e329 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
Dennis Gilmore |
34e329 |
|
|
Stanislav Ochotnicky |
0e0eaf |
* Wed Jan 19 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.9-1
|
|
Stanislav Ochotnicky |
0e0eaf |
- License changed to EPL
|
|
Stanislav Ochotnicky |
0e0eaf |
- Add async-http-client to BR/R
|
|
Stanislav Ochotnicky |
0e0eaf |
- Update to latest version
|
|
Stanislav Ochotnicky |
0e0eaf |
|
|
Stanislav Ochotnicky |
d76385 |
* Wed Dec 8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-3
|
|
Stanislav Ochotnicky |
d76385 |
- Make jars/javadocs versionless
|
|
Stanislav Ochotnicky |
d76385 |
- Remove buildroot and clean section
|
|
Stanislav Ochotnicky |
d76385 |
|
|
Stanislav Ochotnicky |
cba8ea |
* Wed Oct 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-2
|
|
Stanislav Ochotnicky |
cba8ea |
- Explained how to get tarball properly
|
|
Stanislav Ochotnicky |
cba8ea |
- Removed noreplace on depmap fragment
|
|
Stanislav Ochotnicky |
cba8ea |
|
|
Stanislav Ochotnicky |
cba8ea |
* Mon Oct 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-1
|
|
Stanislav Ochotnicky |
cba8ea |
- Initial Package
|