Name: swizzle Version: 1.6.2 Release: 2%{?dist} Summary: Collection of Java data processing and RPC utilities License: ASL 2.0 URL: http://swizzle.codehaus.org/ # svn export http://svn.codehaus.org/swizzle/tags/swizzle-1.6.2/ # tar cafJ swizzle-1.6.2.tar.xz swizzle-1.6.2 Source0: %{name}-%{version}.tar.xz # swizzle package don't include the license file # reported @ http://jira.codehaus.org/browse/SWIZZLE-61 Source1: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: maven-local BuildRequires: mvn(commons-collections:commons-collections) BuildRequires: mvn(junit:junit) BuildRequires: mvn(org.apache.velocity:velocity) BuildRequires: mvn(org.apache.xmlrpc:xmlrpc-client) BuildRequires: mvn(org.slf4j:slf4j-api) %if %{?fedora} > 20 BuildRequires: mvn(log4j:log4j:1.2.17) BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:) %else BuildRequires: mvn(log4j:log4j) BuildRequires: mvn(org.sonatype.oss:oss-parent) %endif BuildArch: noarch %description Collection of Java data processing and RPC utilities. %package confluence Summary: Swizzle :: Confluence %description confluence Strongly typed Java Client for the Confluence XML-RPC API. Can add, update, find and delete pages and more. %package jira Summary: Swizzle :: JIRA %description jira Strongly typed Java Client for the Jira XML-RPC API or the JIRA RSS API. Far more expressive and natural to code against. Implements caching of response data. Can screen scrape using Swizzle Stream for data which is not available through XML-RPC or RSS, such as lists of voters or sub-tasks for a given item. %package jirareport Summary: Swizzle :: JIRA Report %description jirareport A simple command line utility library that combines Velocity with Swizzle JIRA to easily create reports. The Velocity template is 100% self contained, no "coding" necessary. Simply point the swizzle-jirareport jar at a velocity template and get your formatted data back. %package stream Summary: Swizzle :: Stream %description stream Stream editor implemented as a series of InputStream and OutputStream filters. Like the UNIX SED and can manipulate an endless stream with little memory. Unlike SED it does not support regular expressions, but the lack of it keeps buffering down and processing fast as all scanning is done with string literals of known content and length. %package javadoc Summary: Javadoc for %{name} %description javadoc This package contains javadoc for %{name}. %prep %setup -q cp -p %{SOURCE1} LICENSE sed -i 's/\r//' LICENSE %pom_remove_plugin :maven-assembly-plugin %{name}-jirareport for m in confluence jira; do %pom_remove_dep org.sonatype.sisu:sisu-xmlrpc-client %{name}-${m} %pom_add_dep org.apache.xmlrpc:xmlrpc-client:3.1.3 %{name}-${m} done # Change org.sonatype.sisu:sisu-xmlrpc-client support (project seem upstream dead) with Apache xmlrpc-client sed -i "s|XmlRpcAhcTransportFactory|XmlRpcCommonsTransportFactory|" \ %{name}-confluence/src/main/java/org/codehaus/swizzle/confluence/Confluence.java \ %{name}-jira/src/main/java/org/codehaus/swizzle/jira/Jira.java %pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId='log4j']/pom:version" 1.2.17 %{name}-jirareport %pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId='velocity']/pom:groupId" org.apache.velocity %{name}-jirareport # Disable tests, required web connection # org.codehaus.swizzle.confluence.ConfluenceException: # I/O error while communicating with HTTP server: docs.codehaus.org rm -r %{name}-confluence/src/test \ %{name}-jira/src/test \ %{name}-jirareport/src/test %build %mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8 %install %mvn_install %files -f .mfiles-%{name} %dir %{_javadir}/%{name} %license LICENSE %files confluence -f .mfiles-%{name}-confluence %license LICENSE %files jira -f .mfiles-%{name}-jira %license LICENSE %files jirareport -f .mfiles-%{name}-jirareport %license LICENSE %files stream -f .mfiles-%{name}-stream %license LICENSE %files javadoc -f .mfiles-javadoc %license LICENSE %changelog * Mon Mar 09 2015 gil cattaneo 1.6.2-2 - fix summary and description - disable confluence/jira/jirareport tests * Wed Jun 12 2013 gil cattaneo 1.6.2-1 - initial rpm