diff --git a/xsom.spec b/xsom.spec index 2f7db06..5a796fd 100644 --- a/xsom.spec +++ b/xsom.spec @@ -1,7 +1,7 @@ Name: xsom Summary: XML Schema Object Model (XSOM) Version: 20140514 -Release: 1%{?dist} +Release: 2%{?dist} License: CDDL-1.1 or GPLv2 with exceptions # java.net is dead; upstream sources have been imported to GitHub though @@ -15,8 +15,10 @@ Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd # patch POM to drop tasks that rely on bundled JARs Patch0: 00-pom-changes.patch +BuildRequires: relaxngcc BuildRequires: maven-local BuildRequires: mvn(junit:junit) +BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin) BuildRequires: mvn(relaxngDatatype:relaxngDatatype) @@ -52,8 +54,12 @@ sed -i \ 's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' \ test/XSOMParserTest.java +pushd lib +ln -sf `build-classpath relaxngcc` relaxngcc.jar +popd + %build -%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -P regenerate-sources %install %mvn_install @@ -65,6 +71,9 @@ sed -i \ %license license.txt copyright.txt %changelog +* Wed Nov 06 2019 Fabio Valentini - 20140514-2 +- Regenerate sources during build. + * Thu Oct 24 2019 Fabio Valentini - 20140514-1 - Update to version 20140514.