%global pmname xmltool %global ppname mycila Name: %{ppname}-%{pmname} Version: 4.4.ga Release: 1%{?dist} Summary: Very simple Java library to do common operations with an XML document Group: Development/Tools License: ASL 2.0 MIT URL: https://github.com/mycila/xmltool BuildArch: noarch Source0: https://github.com/mycila/xmltool/archive/%{name}-%{version}.tar.gz BuildRequires: maven-local BuildRequires: junit BuildRequires: mycila-pom BuildRequires: mvn(org.apache.commons:commons-pool2) Requires: java-headless %package javadoc Summary: API documentation for %{name} %description javadoc This package provides javadoc for -%{summary}. %description XMLTool is a very simple Java library to be able to do all sorts of common operations with an XML document. As a Java developer, I often end up writing the always the same code for processing XML, transforming, ... So i decided to put all in a very easy to use class using the Fluent Interface pattern to facilitate XML manipulations. * Create new XML documents from external sources or new document from scrash * Manage namespaces * Manipulating nodes (add, remove, rename) * Manipulating data (add, remove text or CDATA) * Navigate into the document with shortcuts and XPath (note: XPath supports namespaces) * Tranform an XMlDoc instance to a String or a Document * Validate your document against schemas * Executin callbacks on a hierarchy * Remove all namspaces (namespace ignoring) * ... and a lot of other features ! %prep %setup -q -n %{pmname}-%{name}-%{version} %pom_remove_dep junit:junit-dep %pom_add_dep junit:junit %pom_xpath_remove pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration %build #unluckily, some tests fails:( %mvn_build -f %install %mvn_install %files -f .mfiles %doc README.md %files javadoc -f .mfiles-javadoc %doc README.md %changelog * Tue Feb 03 2015 Zdenek Zambersky 4.4.ga-1 - initial rpm