diff --git a/testng.spec b/testng.spec index 03526ae..c40bc4b 100644 --- a/testng.spec +++ b/testng.spec @@ -21,7 +21,7 @@ BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(com.beust:jcommander) BuildRequires: mvn(com.google.code.findbugs:jsr305) -BuildRequires: mvn(com.google.inject:guice) +BuildRequires: mvn(com.google.inject:guice::no_aop:) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) @@ -62,6 +62,8 @@ rm src/main/java/org/testng/Converter.java %pom_remove_dep :bsh +%pom_xpath_inject "pom:dependency[pom:artifactId='guice']" "no_aop" + # missing test deps sed -i -e 's/DEV-SNAPSHOT/%{version}/' src/main/java/org/testng/internal/Version.java