46 lines
1.4 KiB
RPMSpec
46 lines
1.4 KiB
RPMSpec
Name: jettison
|
|
Version: 1.3.7
|
|
Release: 1
|
|
Summary: A JSON StAX implementation
|
|
License: ASL 2.0
|
|
URL: https://github.com/codehaus/jettison
|
|
BuildArch: noarch
|
|
Source0: https://github.com/codehaus/jettison/archive/%{name}-%{version}.tar.gz
|
|
Patch0: %{name}-update-woodstox-version.patch
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.codehaus:codehaus-parent:pom:)
|
|
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl) mvn(stax:stax-api)
|
|
%description
|
|
Jettison is a collection of Java APIs (like STaX and DOM) which read
|
|
and write JSON. This allows nearly transparent enablement of JSON based
|
|
web services in services frameworks like CXF or XML serialization
|
|
frameworks like XStream.
|
|
|
|
%package javadoc
|
|
Summary: Javadocs for %{name}
|
|
%description javadoc
|
|
This package contains the API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{name}-%{version}
|
|
%patch0 -p1
|
|
%pom_xpath_remove pom:build/pom:extensions
|
|
%pom_remove_plugin :maven-release-plugin
|
|
%pom_xpath_remove pom:Private-Package
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc src/main/resources/META-INF/LICENSE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%doc src/main/resources/META-INF/LICENSE
|
|
|
|
%changelog
|
|
* Sat Aug 1 2020 Jeffery.Gao <gaojianxing@huawei.com> - 1.3.7-1
|
|
- Package init
|