60 lines
1.9 KiB
RPMSpec
60 lines
1.9 KiB
RPMSpec
Name: json-smart
|
|
Version: 2.5.2
|
|
Release: 1
|
|
Summary: A small and very fast json parser/generator for java
|
|
License: Apache-2.0
|
|
URL: https://github.com/netplex/json-smart-v2
|
|
Source0: https://github.com/netplex/%{name}-v2/archive/%{version}/%{name}-v2-%{version}.tar.gz
|
|
Source1: https://repo.maven.apache.org/maven2/net/minidev/minidev-parent/2.4.4/minidev-parent-2.4.4.pom
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
|
BuildRequires: mvn(org.ow2.asm:asm) mvn(org.sonatype.oss:oss-parent:pom:)
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
|
|
BuildArch: noarch
|
|
%description
|
|
Json-smart is a performance focused, JSON processor lib.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%autosetup -n %{name}-v2-%{version} -p1
|
|
cp %{SOURCE1} ./pom.xml
|
|
%pom_remove_dep :json-smart-mini
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
|
%pom_remove_plugin :maven-source-plugin
|
|
%pom_xpath_set "pom:Bundle-Version" "1.1" accessors-smart
|
|
cp -p %{name}/*.txt .
|
|
%mvn_file :%{name} %{name}
|
|
%mvn_file :accessors-smart accessors-smart
|
|
rm accessors-smart/src/test/java/net/minidev/asm/TestDateConvert.java
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc ChangeLog.txt readme.txt
|
|
%license LICENSE.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|
|
* Mon Feb 17 2025 yaoxin <1024769339@qq.com> - 2.5.2-1
|
|
- Update to 2.5.2 for fix CVE-2024-57699
|
|
|
|
* Sun Feb 04 2024 Ge Wang <wang__ge@126.com> - 2.4.8-1
|
|
- update to version 2.4.8
|
|
|
|
* Tue Apr 04 2023 liyuxiang <liyuxiang@ncti-gba.cn> - 2.2-2
|
|
- fix CVE-2023-1370
|
|
|
|
* Mon Aug 24 2020 wangchong <wangchong56@huawei.com> - 2.2-1
|
|
- package init
|