Name: metatype-sxc Version: 0.8 Release: 1%{?dist} Summary: Simple XML Compiler # Project is under COMMON DEVELOPMENT AND DISTRIBUTION LICENSE (CDDL) Version 1.0 # ASL 2.0 sxc-runtime/src/main/java/org/metatype/sxc/util/* \ # sxc-jaxb/src/main/java/org/metatype/sxc/jaxb/* \ # sxc-jaxb-core/src/main/java/org/metatype/sxc/jaxb/* License: CDDL or ASL 2.0 # Project started @ http://sxc.codehaus.org/Home URL: https://github.com/dblevins/sxc Source0: https://github.com/dblevins/sxc/archive/sxc-%{version}.tar.gz # Add missing ecj4 method stub Patch0: sxc-0.8-ecj.patch # Add maven-bundle-plugin conf Patch1: sxc-0.8-osgi.patch BuildRequires: mvn(com.sun.xml.bind:jaxb-impl) BuildRequires: mvn(com.sun.xml.bind:jaxb-xjc) BuildRequires: mvn(jaxen:jaxen) BuildRequires: mvn(org.apache.maven:maven-compat) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl) BuildRequires: mvn(org.eclipse.jdt:core) BuildRequires: mvn(org.sonatype.oss:oss-parent) BuildRequires: mvn(stax:stax-api) # Test deps BuildRequires: mvn(junit:junit) BuildRequires: mvn(xmlunit:xmlunit) BuildRequires: maven-local BuildRequires: maven-antrun-plugin BuildRequires: maven-plugin-build-helper BuildRequires: maven-plugin-bundle BuildRequires: maven-plugin-plugin BuildRequires: mvn(org.codehaus.swizzle:dependency-report-plugin) BuildArch: noarch %description SXC (Simple XML Compiler) allows you to created optimized parsers and writers for XML. Through a declarative API you're able to tell SXC what type of XML to expect and what actions to associate with it. %package jaxb-maven-plugin Summary: SXC JAXB :: Maven Plugin %description jaxb-maven-plugin Simple XML Compiler JAXB :: Maven Plugin. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n sxc-sxc-%{version} %patch0 -p0 %patch1 -p1 %pom_remove_plugin :maven-project-info-reports-plugin %pom_remove_plugin :jdepend-maven-plugin %pom_remove_plugin :jxr-maven-plugin # Remove org.apache.maven.wagon:wagon-webdav:1.0-beta-1 %pom_xpath_remove "pom:project/pom:build/pom:extensions" # Use proper default-tools.jar %pom_xpath_remove "pom:project/pom:profiles" sxc-core %pom_add_dep com.sun:tools sxc-core # Use maven3 apis %pom_remove_dep org.apache.maven:maven-project sxc-jaxb-maven-plugin %pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.apache.maven' ]/pom:version" 3.0.5 sxc-jaxb-maven-plugin %pom_add_dep org.apache.maven:maven-compat:3.0.5 sxc-jaxb-maven-plugin %pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.woodstox' ]/pom:artifactId" woodstox-core-asl %pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.woodstox' ]/pom:artifactId" woodstox-core-asl sxc-jaxb-maven-plugin %pom_remove_plugin :maven-assembly-plugin sxc-jaxb # These test fails # [javax.xml.stream.XMLStreamException: Underlying stream encoding 'ASCII' and # input paramter for writeStartDocument() method 'UTF-8' do not match.] rm -r \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/CustomerTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/EverythingTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/EverythingAttributeTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/any/AnyTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/array/ArraysTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/collection/CollectionsTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/enums/EnumTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/fields/FieldsTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/invoice/InvoiceTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/listener/ListenerTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/mixed/MixedTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/node/NodeTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/properties/PropertiesTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/root/RootTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/simple/SimpleGlobalTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/simple/SimpleReadWriteTest.java \ sxc-jaxb/src/test/java/org/metatype/sxc/jaxb/xmllist/XmlListTest.java %build %mvn_package :sxc-jaxb-maven-plugin maven-plugin %mvn_build %install %mvn_install %files -f .mfiles %dir %{_javadir}/%{name} %doc LICENSE.txt %files jaxb-maven-plugin -f .mfiles-maven-plugin %doc LICENSE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Fri Feb 28 2014 gil cattaneo 0.8-1 - initial rpm