diff --git a/apache-commons-lang3.spec b/apache-commons-lang3.spec
index 76d9c85..6127886 100644
--- a/apache-commons-lang3.spec
+++ b/apache-commons-lang3.spec
@@ -61,9 +61,13 @@ cp %{SOURCE1} .
cp %{SOURCE2} .
sed -i 's/\r//' *.txt
-%pom_remove_parent .
-%pom_remove_plugin :maven-checkstyle-plugin .
-%pom_xpath_inject "pom:project" "org.apache.commons" .
+# Not needed since we don't build with maven
+%pom_remove_parent
+%pom_xpath_inject "pom:project" "org.apache.commons"
+%pom_xpath_remove pom:project/pom:reporting
+%pom_xpath_remove pom:project/pom:build
+%pom_xpath_remove pom:project/pom:profiles
+%pom_remove_dep :::test
%build
export OPT_JAR_LIST=`cat %{_sysconfdir}/ant.d/junit`