Replace JARs used as test resources with symlinks to system JARs
This commit is contained in:
parent
10a651f399
commit
58379ef788
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
/plexus-languages-0.9.3.tar.gz
|
||||
/LICENSE-2.0.txt
|
63
plexus-languages.spec
Normal file
63
plexus-languages.spec
Normal file
@ -0,0 +1,63 @@
|
||||
Name: plexus-languages
|
||||
Version: 0.9.3
|
||||
Release: 2%{?dist}
|
||||
Summary: Plexus Languages
|
||||
License: ASL 2.0
|
||||
URL: https://github.com/codehaus-plexus/plexus-languages
|
||||
BuildArch: noarch
|
||||
|
||||
Source0: https://github.com/codehaus-plexus/plexus-languages/archive/plexus-languages-%{version}.tar.gz
|
||||
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
|
||||
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(com.google.inject:guice)
|
||||
BuildRequires: mvn(com.thoughtworks.qdox:qdox)
|
||||
BuildRequires: mvn(javax.inject:javax.inject)
|
||||
BuildRequires: mvn(junit:junit)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
|
||||
BuildRequires: mvn(org.codehaus.plexus:plexus:pom:)
|
||||
BuildRequires: mvn(org.mockito:mockito-core)
|
||||
BuildRequires: mvn(org.ow2.asm:asm)
|
||||
# test deps
|
||||
BuildRequires: jdom
|
||||
BuildRequires: objectweb-asm
|
||||
|
||||
%description
|
||||
Plexus Languages is a set of Plexus components that maintain shared
|
||||
language features.
|
||||
|
||||
%package javadoc
|
||||
Summary: Javadoc for %{name}
|
||||
|
||||
%description javadoc
|
||||
API documentation for %{name}.
|
||||
|
||||
%prep
|
||||
%setup -q -n plexus-languages-plexus-languages-%{version}
|
||||
cp %{SOURCE1} .
|
||||
# Replace bundled class file from ASM6
|
||||
jar xf $(find-jar objectweb-asm/asm-all) module-info.class
|
||||
mv module-info.class plexus-java/src/test/resources/dir.descriptor/out/
|
||||
# Replace JARs used as test resources with symlinks to system JARs
|
||||
ln -sf $(find-jar jdom) plexus-java/src/test/resources/jar.unsupported/jdom-1.0.jar
|
||||
ln -sf $(find-jar objectweb-asm/asm) plexus-java/src/test/resources/jar.descriptor/asm-6.0_BETA.jar
|
||||
|
||||
%build
|
||||
%mvn_build
|
||||
|
||||
%install
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%license LICENSE-2.0.txt
|
||||
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
%license LICENSE-2.0.txt
|
||||
|
||||
%changelog
|
||||
* Tue Sep 12 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.9.3-2
|
||||
- Replace JARs used as test resources with symlinks to system JARs
|
||||
|
||||
* Mon Sep 11 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.9.3-1
|
||||
- Initial packaging
|
2
sources
Normal file
2
sources
Normal file
@ -0,0 +1,2 @@
|
||||
SHA512 (plexus-languages-0.9.3.tar.gz) = 122407efc06232ee7f8f303295e800b532410710810e2d3f9680e6af18e4420b69b822b210d98bd0a41f09d5e1850bfea0ea2e0a423a7690222e3f4ae6f9a74f
|
||||
SHA512 (LICENSE-2.0.txt) = 98f6b79b778f7b0a15415bd750c3a8a097d650511cb4ec8115188e115c47053fe700f578895c097051c9bc3dfb6197c2b13a15de203273e1a3218884f86e90e8
|
Loading…
Reference in New Issue
Block a user