From 35a04db5af6f9d4da4c715318cf8d20856d9f7cd Mon Sep 17 00:00:00 2001 From: Marian Koncek Date: Wed, 26 Oct 2022 14:18:02 +0200 Subject: [PATCH] Remove BuildRequires on git --- jaxb.spec | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/jaxb.spec b/jaxb.spec index b003674..dd67335 100644 --- a/jaxb.spec +++ b/jaxb.spec @@ -10,7 +10,6 @@ ExclusiveArch: %{java_arches} noarch Source0: %{url}/archive/%{version}-RI/%{name}-%{version}.tar.gz -BuildRequires: git BuildRequires: maven-local BuildRequires: mvn(com.sun.activation:jakarta.activation) BuildRequires: mvn(com.sun.istack:istack-commons-runtime) @@ -29,7 +28,6 @@ BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) -BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin) BuildRequires: mvn(org.jvnet.staxex:stax-ex) BuildRequires: mvn(xml-resolver:xml-resolver) BuildRequires: mvn(xmlunit:xmlunit) @@ -91,13 +89,18 @@ Summary: RelaxNG Datatype RelaxNG Datatype library. %prep -%autosetup -p1 -n jaxb-ri-%{version}-RI -S git +%autosetup -p1 -n jaxb-ri-%{version}-RI # Delete precompiled jar and class files find -type f '(' -iname '*.jar' -o -iname '*.class' ')' -print -delete cd jaxb-ri # Remove unnecessary dep on ee4j parent pom (it adds nothing to our downstream builds) %pom_remove_parent boms/bom external xsom codemodel + +%pom_remove_plugin -r :buildnumber-maven-plugin + +%pom_xpath_remove "pom:profiles/pom:profile[pom:id='default-profile']/pom:modules" + # SCM from parent: org.eclipse.ee4j:project:1.0.7 %pom_xpath_inject 'pom:project' \ ' @@ -116,8 +119,6 @@ sed -i -e 's/com\.sun\.org\.apache\.xml\.internal\.resolver/org.apache.xml.resol %pom_disable_module ri bundles %pom_disable_module runtime bundles %pom_disable_module xjc bundles -# Ignore osgi tests -%pom_disable_module tools/osgi_tests # lack of dependency when building documentation %pom_disable_module release-documentation docs # Compatibility