%global oname jackson-core
Name: jackson2-core
Version: 2.2.1
Release: 2%{?dist}
Summary: Core part of Jackson
License: ASL 2.0
URL: http://wiki.fasterxml.com/JacksonHome
# git clone git://github.com/FasterXML/jackson-core.git jackson2-core-2.1.0
# (cd jackson2-core-2.1.0/ && git archive --format=tar --prefix=jackson2-core-2.1.0/ 2.1.0b | xz > ../jackson2-core-2.1.0-src-git.tar.xz)
Source0: https://github.com/FasterXML/jackson-core/archive/%{oname}-%{version}.tar.gz
# jackson-core package don't include the license file
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: fasterxml-oss-parent >= 10
# test deps
BuildRequires: junit
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: replacer
BuildRequires: maven-source-plugin
BuildRequires: maven-surefire-provider-junit4
BuildRequires: maven-install-plugin
BuildArch: noarch
%description
Core part of Jackson that defines Streaming API as well
as basic shared abstractions.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q -n %{oname}-%{oname}-%{version}
%pom_xpath_remove "pom:build/pom:extensions/pom:extension[pom:artifactId='wagon-gitsite']"
# remove unavailable com.google.doclava doclava 1.0.3
%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration"
%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']" '
${project.reporting.outputEncoding}
true
'
cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt
%build
%mvn_build
%install
%mvn_install
%files -f .mfiles
%dir %{_javadir}/%{name}
%doc LICENSE-2.0.txt README.md
%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt
%changelog
* Tue Jul 16 2013 Marek Goldmann - 2.2.1-2
- New guidelines
- Fixed BR
* Tue May 07 2013 gil cattaneo 2.2.1-1
- 2.2.1
* Wed Oct 24 2012 gil cattaneo 2.1.0-1
- update to 2.1.0
- renamed jackson2-core
* Thu Sep 13 2012 gil cattaneo 2.0.6-1
- initial rpm