Install license files

- Resolves: rhbz#958116
This commit is contained in:
Mikolaj Izdebski 2013-06-26 10:08:12 +02:00
commit 6ed73aae22
3 changed files with 16 additions and 1 deletions

2
.gitignore vendored
View file

@ -3,3 +3,5 @@
/sonatype-sonatype-aether-aether-1.9-0-g23f7474.tar.gz
/aether-1.11.tar.bz2
/aether-1.13.1.tar.bz2
/LICENSE-2.0.txt
/epl-v10.html

View file

@ -6,13 +6,15 @@
Name: aether
Version: 1.13.1
Release: 10%{?dist}
Release: 11%{?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
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
Source2: http://www.eclipse.org/legal/epl-v10.html
BuildArch: noarch
BuildRequires: maven-local
@ -119,6 +121,8 @@ for Aether.
%prep
%setup -q
cp -p %{SOURCE1} LICENSE-ASL
cp -p %{SOURCE2} LICENSE-EPL
%if %{without ahc}
%pom_disable_module aether-connector-asynchttpclient
@ -161,9 +165,11 @@ done
%files -f .mfiles-%{name}
%doc README.md
%doc LICENSE-ASL LICENSE-EPL
%files api -f .mfiles-%{name}-api
%doc README.md
%doc LICENSE-ASL LICENSE-EPL
%dir %{_javadir}/%{name}
%files connector-file -f .mfiles-%{name}-connector-file
@ -173,12 +179,17 @@ done
%files test-util -f .mfiles-%{name}-test-util
%files util -f .mfiles-%{name}-util
%files javadoc -f .mfiles-javadoc
%doc LICENSE-ASL LICENSE-EPL
%if %{with ahc}
%files connector-asynchttpclient -f .mfiles-%{name}-connector-asynchttpclient
%endif
%changelog
* Wed Jun 26 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-11
- Install license files
- Resolves: rhbz#958116
* Fri May 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.13.1-10
- Conditionally build without AHC connector

View file

@ -1 +1,3 @@
a02f091d4e00e8fe6f35508ba60d95e6 aether-1.13.1.tar.bz2
3b83ef96387f14655fc854ddc3c6bd57 LICENSE-2.0.txt
d0fc088e4e5216422c217d39853d8601 epl-v10.html