Disable tests to reduce dependency tree
This commit is contained in:
parent
711f167a20
commit
150f43ebba
@ -1,26 +1,20 @@
|
|||||||
Name: replacer
|
Name: replacer
|
||||||
Version: 1.6
|
Version: 1.6
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Replacer Maven Mojo
|
Summary: Replacer Maven Mojo
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://github.com/beiliubei/maven-replacer-plugin
|
URL: https://github.com/beiliubei/maven-replacer-plugin
|
||||||
# http://code.google.com/p/maven-replacer-plugin/
|
# http://code.google.com/p/maven-replacer-plugin/
|
||||||
Source0: https://github.com/beiliubei/maven-replacer-plugin/archive/%{version}.tar.gz
|
Source0: https://github.com/beiliubei/maven-replacer-plugin/archive/%{version}.tar.gz
|
||||||
|
|
||||||
Patch0: 0001-Fix-build-with-Mockito-2.x.patch
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(commons-io:commons-io)
|
||||||
BuildRequires: maven-local
|
BuildRequires: mvn(commons-lang:commons-lang)
|
||||||
BuildRequires: mvn(commons-io:commons-io)
|
BuildRequires: mvn(org.apache.ant:ant)
|
||||||
BuildRequires: mvn(commons-lang:commons-lang)
|
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||||
BuildRequires: mvn(junit:junit)
|
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
||||||
BuildRequires: mvn(org.apache.ant:ant)
|
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
||||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
BuildRequires: mvn(xerces:xercesImpl)
|
||||||
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
|
||||||
BuildRequires: mvn(org.hamcrest:hamcrest-all)
|
|
||||||
BuildRequires: mvn(org.mockito:mockito-all)
|
|
||||||
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
|
|
||||||
BuildRequires: mvn(xerces:xercesImpl)
|
|
||||||
BuildRequires: mvn(xml-apis:xml-apis)
|
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -38,21 +32,15 @@ This package contains javadoc for %{name}.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n maven-replacer-plugin-%{version}
|
%setup -q -n maven-replacer-plugin-%{version}
|
||||||
%patch0 -p1
|
|
||||||
|
|
||||||
%pom_remove_plugin :dashboard-maven-plugin
|
%pom_remove_plugin :dashboard-maven-plugin
|
||||||
%pom_remove_plugin :maven-assembly-plugin
|
%pom_remove_plugin :maven-assembly-plugin
|
||||||
# NoClassDefFoundError: org/w3c/dom/ElementTraversal
|
|
||||||
%pom_add_dep xml-apis:xml-apis::test
|
|
||||||
|
|
||||||
sed -i.hamcrest '/startsWith/d' src/test/java/com/google/code/maven_replacer_plugin/file/FileUtilsTest.java
|
|
||||||
|
|
||||||
%mvn_file :%{name} %{name}
|
%mvn_file :%{name} %{name}
|
||||||
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin
|
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
%mvn_build -f
|
||||||
%mvn_build
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%mvn_install
|
%mvn_install
|
||||||
@ -65,6 +53,9 @@ sed -i.hamcrest '/startsWith/d' src/test/java/com/google/code/maven_replacer_plu
|
|||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Apr 18 2019 Mat Booth <mat.booth@redhat.com> - 1.6-10
|
||||||
|
- Disable tests to reduce dependency tree
|
||||||
|
|
||||||
* Wed Feb 13 2019 Mat Booth <mat.booth@redhat.com> - 1.6-9
|
* Wed Feb 13 2019 Mat Booth <mat.booth@redhat.com> - 1.6-9
|
||||||
- Fix build against mockito 2.x
|
- Fix build against mockito 2.x
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user