Blame SPECS/aether.spec

1d9177
# Conditionals to build Aether with or without AHC connector
1d9177
# (connector for Async Http Client).
1d9177
%if 0%{?fedora}
1d9177
%bcond_without ahc
1d9177
%endif
1d9177
1d9177
Name:           aether
1d9177
Version:        1.13.1
1d9177
Release:        13%{?dist}
1d9177
Summary:        Sonatype library to resolve, install and deploy artifacts the Maven way
1d9177
License:        EPL or ASL 2.0
1d9177
URL:            https://docs.sonatype.org/display/AETHER/Home
1d9177
# git clone https://github.com/sonatype/sonatype-aether.git
1d9177
# git archive --prefix="aether-1.11/" --format=tar aether-1.11 | bzip2 > aether-1.11.tar.bz2
1d9177
Source0:        %{name}-%{version}.tar.bz2
1d9177
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
1d9177
Source2:        http://www.eclipse.org/legal/epl-v10.html
1d9177
BuildArch:      noarch
1d9177
1d9177
BuildRequires:  maven-local
1d9177
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
1d9177
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
1d9177
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
1d9177
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
1d9177
BuildRequires:  mvn(org.slf4j:slf4j-api)
1d9177
BuildRequires:  mvn(org.sonatype.forge:forge-parent)
1d9177
BuildRequires:  mvn(org.sonatype.sisu:sisu-inject-plexus)
1d9177
%if %{with ahc}
1d9177
BuildRequires:  mvn(com.ning:async-http-client)
1d9177
%endif
1d9177
1d9177
# Require all subpackages for now, until all packages that use aether
1d9177
# migrate to appropriate subpackages.  See rhbz #958143
1d9177
# TODO: Remove these once the above bug is closed.
1d9177
Requires:       %{name}-api                       = %{version}-%{release}
1d9177
Requires:       %{name}-connector-file            = %{version}-%{release}
1d9177
Requires:       %{name}-connector-wagon           = %{version}-%{release}
1d9177
Requires:       %{name}-impl                      = %{version}-%{release}
1d9177
Requires:       %{name}-spi                       = %{version}-%{release}
1d9177
Requires:       %{name}-test-util                 = %{version}-%{release}
1d9177
Requires:       %{name}-util                      = %{version}-%{release}
1d9177
1d9177
%description
1d9177
Aether is a standalone library to resolve, install and deploy artifacts
1d9177
the Maven way.
1d9177
1d9177
%package api
1d9177
Summary: Aether API
1d9177
1d9177
%description api
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides application
1d9177
programming interface for Aether repository system.
1d9177
1d9177
%if %{with ahc}
1d9177
%package connector-asynchttpclient
1d9177
Summary: Aether connector for Async Http Client
1d9177
1d9177
%description connector-asynchttpclient
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides Aether repository
1d9177
connector implementation based on Async Http Client.
1d9177
%endif
1d9177
1d9177
%package connector-file
1d9177
Summary: Aether connector for file URLs
1d9177
1d9177
%description connector-file
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides Aether repository
1d9177
connector implementation for repositories using file:// URLs.
1d9177
1d9177
%package connector-wagon
1d9177
Summary: Aether connector for Maven Wagon
1d9177
1d9177
%description connector-wagon
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides Aether repository
1d9177
connector implementation based on Maven Wagon.
1d9177
1d9177
%package impl
1d9177
Summary: Implementation of Aether repository system
1d9177
1d9177
%description impl
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides implementation of
1d9177
Aether repository system.
1d9177
1d9177
%package spi
1d9177
Summary: Aether SPI
1d9177
1d9177
%description spi
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package contains Aether service
1d9177
provider interface (SPI) for repository system implementations and
1d9177
repository connectors.
1d9177
1d9177
%package test-util
1d9177
Summary: Aether test utilities
1d9177
1d9177
%description test-util
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides collection of utility
1d9177
classes that ease testing of Aether repository system.
1d9177
1d9177
%package util
1d9177
Summary: Aether utilities
1d9177
1d9177
%description util
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides a collection of
1d9177
utility classes to ease usage of Aether repository system.
1d9177
1d9177
%package javadoc
1d9177
Summary: Java API documentation for Aether
1d9177
1d9177
%description javadoc
1d9177
Aether is a standalone library to resolve, install and deploy
1d9177
artifacts the Maven way.  This package provides Java API documentation
1d9177
for Aether.
1d9177
1d9177
%prep
1d9177
%setup -q
1d9177
cp -p %{SOURCE1} LICENSE-ASL
1d9177
cp -p %{SOURCE2} LICENSE-EPL
1d9177
1d9177
%if %{without ahc}
1d9177
%pom_disable_module aether-connector-asynchttpclient
1d9177
%endif
1d9177
1d9177
# we'd need org.sonatype.http-testing-harness so let's remove async
1d9177
# and wagon http tests (leave others enabled)
1d9177
for module in asynchttpclient wagon; do (
1d9177
    cd ./aether-connector-$module
1d9177
    rm -rf src/test
1d9177
    # Removes all dependencies with test scope
1d9177
    %pom_xpath_remove "pom:dependency[pom:scope[text()='test']]"
1d9177
) done
1d9177
1d9177
# Remove clirr plugin
1d9177
%pom_remove_plugin :clirr-maven-plugin
1d9177
%pom_remove_plugin :clirr-maven-plugin aether-api
1d9177
%pom_remove_plugin :clirr-maven-plugin aether-spi
1d9177
1d9177
# Animal sniffer is not useful in Fedora
1d9177
for module in . aether-connector-wagon aether-util aether-api   \
1d9177
              aether-impl aether-connector-asynchttpclient      \
1d9177
              aether-connector-file aether-demo aether-test-util; do
1d9177
    %pom_remove_plugin :animal-sniffer-maven-plugin $module
1d9177
done
1d9177
1d9177
# Workaround for rhbz#911365
1d9177
%pom_xpath_inject pom:project "<dependencies/>"
1d9177
%pom_add_dep cglib:cglib:any:test
1d9177
1d9177
# Keep compatibility with packages that use old JAR locations until
1d9177
# they migrate.
1d9177
%mvn_file ":{%{name}-{*}}" %{name}/@1 %{name}/@2
1d9177
1d9177
%build
1d9177
%mvn_build -s
1d9177
1d9177
%install
1d9177
%mvn_install
1d9177
1d9177
%files -f .mfiles-%{name}
1d9177
%doc README.md
1d9177
%doc LICENSE-ASL LICENSE-EPL
1d9177
1d9177
%files api -f .mfiles-%{name}-api
1d9177
%doc README.md
1d9177
%doc LICENSE-ASL LICENSE-EPL
1d9177
%dir %{_javadir}/%{name}
1d9177
1d9177
%files connector-file -f .mfiles-%{name}-connector-file
1d9177
%files connector-wagon -f .mfiles-%{name}-connector-wagon
1d9177
%files impl -f .mfiles-%{name}-impl
1d9177
%files spi -f .mfiles-%{name}-spi
1d9177
%files test-util -f .mfiles-%{name}-test-util
1d9177
%files util -f .mfiles-%{name}-util
1d9177
%files javadoc -f .mfiles-javadoc
1d9177
%doc LICENSE-ASL LICENSE-EPL
1d9177
1d9177
%if %{with ahc}
1d9177
%files connector-asynchttpclient -f .mfiles-%{name}-connector-asynchttpclient
1d9177
%endif
1d9177
1d9177
%changelog
1d9177
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.13.1-13
1d9177
- Mass rebuild 2013-12-27
1d9177
1d9177
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-12
1d9177
- Install license files
1d9177
- Resolves: rhbz#958117
1d9177
1d9177
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-11
1d9177
- Rebuild to regenerate API documentation
1d9177
- Resolves: CVE-2013-1571
1d9177
1d9177
* Fri May 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-10
1d9177
- Conditionally build without AHC connector
1d9177
1d9177
* Thu May  2 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-9
1d9177
- Install compat JAR symlinks
1d9177
- Resolves: rhbz#958558
1d9177
1d9177
* Tue Apr 30 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-8
1d9177
- Complete spec file rewrite
1d9177
- Build with xmvn
1d9177
- Split into multiple subpackages, resolves: rhbz#916142
1d9177
- Update to current packaging guidelines
1d9177
1d9177
* Thu Feb  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-7
1d9177
- Build with xmvn
1d9177
- Disable animal sniffer
1d9177
- Remove R on jboss-parent, resolves: rhbz#908583
1d9177
1d9177
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.13.1-6
1d9177
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
1d9177
- Replace maven BuildRequires with maven-local
1d9177
1d9177
* Mon Aug 27 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-5
1d9177
- Disable animal-sniffer on RHEL
1d9177
1d9177
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.13.1-4
1d9177
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
1d9177
1d9177
* Thu Jun 28 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-3
1d9177
- Replace pom.xml patches with pom macros
1d9177
1d9177
* Thu Apr 19 2012 Alexander Kurtakov <akurtako@redhat.com> 1.13.1-2
1d9177
- Install aether-connector-asynchttpclient - it was build but not installed.
1d9177
1d9177
* Tue Jan 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.13.1-1
1d9177
- Update to latest upstream
1d9177
- Update spec to latest guidelines
1d9177
1d9177
* Thu Jan 12 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
1d9177
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
1d9177
1d9177
* Wed Jun 8 2011 Alexander Kurtakov <akurtako@redhat.com> 1.11-3
1d9177
- Build with maven 3.x.
1d9177
- Do not require maven - not found in dependencies in poms.
1d9177
- Guidelines fixes.
1d9177
1d9177
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.11-2
1d9177
- Rebuild after bugfix update to plexus-containers (#675865)
1d9177
1d9177
* Fri Feb 25 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.11-1
1d9177
- Update to latest version
1d9177
- Add ASL 2.0 back as optional license
1d9177
1d9177
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9-2
1d9177
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1d9177
1d9177
* Wed Jan 19 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.9-1
1d9177
- License changed to EPL
1d9177
- Add async-http-client to BR/R
1d9177
- Update to latest version
1d9177
1d9177
* Wed Dec  8 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-3
1d9177
- Make jars/javadocs versionless
1d9177
- Remove buildroot and clean section
1d9177
1d9177
* Wed Oct 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-2
1d9177
- Explained how to get tarball properly
1d9177
- Removed noreplace on depmap fragment
1d9177
1d9177
* Mon Oct 11 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.7-1
1d9177
- Initial Package