Blame SPECS/aether.spec

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