Name:                jackson-dataformats-text
Version:             2.9.8
Release:             1
Summary:             Jackson standard text-format data format backends
License:             ASL 2.0
URL:                 https://github.com/FasterXML/jackson-dataformats-text
Source0:             https://github.com/FasterXML/jackson-dataformats-text/archive/%{name}-%{version}.tar.gz
BuildRequires:       maven-local mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:       mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:       mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:       mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:       mvn(com.google.code.maven-replacer-plugin:replacer) mvn(com.google.guava:guava)
BuildRequires:       mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:       mvn(org.yaml:snakeyaml)
BuildArch:           noarch
%description
Parent pom for Jackson text-format dataformats.

%package -n jackson-dataformat-csv
Summary:             Support for reading and writing CSV-encoded data via Jackson abstractions
%description -n jackson-dataformat-csv
Jackson data format module for reading and writing CSV encoded data, either
as "raw" data (sequence of String arrays), or via data binding to/from Java
Objects (POJOs).

%package -n jackson-dataformat-properties
Summary:             Support for reading and writing content of "Java Properties" files
%description -n jackson-dataformat-properties
Jackson data format module that supports reading and writing Java Properties
files, using naming convention to determine implied structure (by default
assuming dotted notation, but configurable from non-nested to other
separators).

%package -n jackson-dataformat-yaml
Summary:             Support for reading and writing YAML-encoded data via Jackson abstractions
%description -n jackson-dataformat-yaml
Jackson extension component for reading and writing YAML encoded data.
SnakeYAML library is used for low-level YAML parsing. This project adds
necessary abstractions on top to make things work with other Jackson
functionality.

%package javadoc
Summary:             Javadoc for %{name}
Obsoletes:           jackson-dataformat-csv-javadoc < %{version}-%{release}
Provides:            jackson-dataformat-csv-javadoc = %{version}-%{release}
Obsoletes:           jackson-dataformat-properties-javadoc < %{version}-%{release}
Provides:            jackson-dataformat-properties-javadoc = %{version}-%{release}
Obsoletes:           jackson-dataformat-yaml-javadoc < %{version}-%{release}
Provides:            jackson-dataformat-yaml-javadoc = %{version}-%{release}
%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
cp -p yaml/src/main/resources/META-INF/{NOTICE,LICENSE} .
sed -i 's/\r//' LICENSE NOTICE
%mvn_file ":{*}" jackson-dataformats/@1

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-jackson-dataformats-text
%doc README.md release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-csv -f .mfiles-jackson-dataformat-csv
%doc csv/README.md csv/release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-properties -f .mfiles-jackson-dataformat-properties
%doc properties/README.md properties/release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-yaml -f .mfiles-jackson-dataformat-yaml
%doc yaml/README.md yaml/release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%changelog
* Sat Aug 22 2020 Ge Wang <wangge20@huawei.com> - 2.9.8-1
- Package init
