diff --git a/classloader-leak-test-framework.spec b/classloader-leak-test-framework.spec index dbfd008..d8ef06d 100644 --- a/classloader-leak-test-framework.spec +++ b/classloader-leak-test-framework.spec @@ -1,6 +1,8 @@ +%bcond_with tests + Name: classloader-leak-test-framework Version: 1.1.1 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Detection and verification of Java ClassLoader leaks License: ASL 2.0 URL: https://github.com/mjiderhamn/classloader-leak-prevention/tree/master/%{name} @@ -8,14 +10,14 @@ Source0: https://github.com/mjiderhamn/classloader-leak-prevention/archive/%{nam BuildArch: noarch -# build BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.bcel:bcel) -# test dependencies -BuildRequires: mvn(javax.el:el-api) -BuildRequires: mvn(com.sun.faces:jsf-api) -BuildRequires: mvn(com.sun.faces:jsf-impl) +%if %{with tests} +BuildRequires: mvn(javax.el:el-api) +BuildRequires: mvn(com.sun.faces:jsf-api) +BuildRequires: mvn(com.sun.faces:jsf-impl) +%endif %description Stand-alone test framework for detecting and/or verifying the existence or @@ -35,7 +37,11 @@ rm -r classloader-leak-prevention cp -r %{name}/* . %build +%if %{with tests} %mvn_build +%else +%mvn_build -f +%endif %install %mvn_install @@ -48,6 +54,9 @@ cp -r %{name}/* . %license LICENSE.txt %changelog +* Wed May 30 2018 Mikolaj Izdebski - 1.1.1-5 +- Disable tests and remove dependency on mojarra + * Wed Feb 07 2018 Fedora Release Engineering - 1.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild