Name: uri-template
Version: 0.9
Release: 1%{?dist}
Summary: Java implementation of URI templates (RFC 6570)
License: ASL 2.0 and LGPLv3+
URL: https://github.com/fge/uri-template
Source0: https://github.com/fge/uri-template/archive/%{version}.tar.gz
Source1: http://repo1.maven.org/maven2/com/github/fge/%{name}/%{version}/%{name}-%{version}.pom
BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.github.fge:jackson-coreutils)
BuildRequires: mvn(com.github.fge:msg-simple)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.testng:testng)
BuildArch: noarch
%description
A fully functional Java implementation of URI templates (RFC 6570):
create URIs for your REST API without room for errors
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{name}-%{version}
find -name "*.class" -delete
find -name "*.jar" -print -delete
cp -p %{SOURCE1} pom.xml
%pom_xpath_inject "pom:project" "bundle"
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
true
com.github.fge.uri-template
uri-template
${project.version}
com.github.fge.uritemplate;version="${project.version}"
bundle-manifest
process-classes
manifest
'
# package com.fasterxml.jackson.databind does not exist
%pom_add_dep com.fasterxml.jackson.core:jackson-databind::test
%mvn_file :%{name} %{name}
%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%doc CONTRIBUTORS.md README.md RELEASE-NOTES.md
%license ASL-2.0.txt LGPL-3.0.txt LICENSE
%files javadoc -f .mfiles-javadoc
%license ASL-2.0.txt LGPL-3.0.txt LICENSE
%changelog
* Mon Mar 09 2015 gil cattaneo 0.9-1
- initial rpm