50 lines
1.2 KiB
RPMSpec
50 lines
1.2 KiB
RPMSpec
%global main_res_dir src/main/resources/META-INF
|
|
|
|
Name: jackson-core
|
|
Version: 2.9.4
|
|
Release: 4
|
|
Summary: Core part of Jackson
|
|
License: ASL 2.0
|
|
URL: https://github.com/FasterXML/jackson-core/
|
|
Source0: https://github.com/FasterXML/jackson-core/archive/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer)
|
|
BuildRequires: mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
|
|
BuildRequires: maven-local
|
|
|
|
BuildArch: noarch
|
|
|
|
Provides: jackson-core-javadoc
|
|
Obsoletes: jackson-core-javadoc
|
|
|
|
%description
|
|
Core part of Jackson that defines Streaming API as well as basic shared abstractions.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-%{name}-%{version} -p1
|
|
|
|
%pom_remove_plugin ":maven-enforcer-plugin"
|
|
|
|
cp -p %{main_res_dir}/LICENSE .
|
|
cp -p %{main_res_dir}/NOTICE .
|
|
sed -i 's/\r//' LICENSE NOTICE
|
|
|
|
%mvn_file : %{name}
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc README.md release-notes/*
|
|
%doc %{_javadocdir}/%{name}
|
|
%license LICENSE NOTICE
|
|
|
|
|
|
%changelog
|
|
* Tue Dec 3 2019 huyan <hu.huyan@huawei.com> - 2.9.4-4
|
|
- Package Initialization
|