50 lines
1.3 KiB
RPMSpec
50 lines
1.3 KiB
RPMSpec
|
|
Name: lua-json
|
||
|
|
Version: 1.3.2
|
||
|
|
Release: 12
|
||
|
|
License: MIT
|
||
|
|
Summary: JSON Parser/Constructor for Lua
|
||
|
|
|
||
|
|
%define luaversion 5.3
|
||
|
|
%define luapkgdir %{_datadir}/lua/%{luaversion}
|
||
|
|
%global commitid 7a86bc22066858afeb23845a191a6ab680b46233
|
||
|
|
%global shortid %(c=%{commitid}; echo ${c:0:7})
|
||
|
|
|
||
|
|
URL: http://github.com/harningt/luajson/
|
||
|
|
Source0: https://github.com/harningt/luajson/archive/%{commitid}/luajson-%{version}-%{shortid}.tar.gz
|
||
|
|
# for build and check
|
||
|
|
BuildRequires: lua >= %{luaversion}, lua-lpeg >= 0.8.1
|
||
|
|
BuildRequires: lua-filesystem >= 1.4.1, lua-lunit >= 0.4
|
||
|
|
BuildArch: noarch
|
||
|
|
# for run
|
||
|
|
Requires: lua >= %{luaversion}, lua-lpeg >= 0.8.1
|
||
|
|
|
||
|
|
Patch0: luajson-lua-5.2.patch
|
||
|
|
|
||
|
|
%description
|
||
|
|
JSON parser/encoder for Lua Parses JSON using LPEG for speed and flexibility.
|
||
|
|
Depending on parser/encoder options, various values are preserved as best as possible.
|
||
|
|
|
||
|
|
%prep
|
||
|
|
%setup -q -n luajson-%{commitid}
|
||
|
|
%patch0 -p1 -b .lua-52
|
||
|
|
|
||
|
|
%build
|
||
|
|
|
||
|
|
%install
|
||
|
|
mkdir -p $RPM_BUILD_ROOT%{luapkgdir}
|
||
|
|
cp -pr lua/* $RPM_BUILD_ROOT%{luapkgdir}
|
||
|
|
|
||
|
|
%check
|
||
|
|
make check-regression
|
||
|
|
|
||
|
|
%files
|
||
|
|
%doc LICENSE docs/LuaJSON.txt docs/ReleaseNotes-1.0.txt
|
||
|
|
%{luapkgdir}/*
|
||
|
|
|
||
|
|
%changelog
|
||
|
|
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.2-12
|
||
|
|
- Fix package name
|
||
|
|
|
||
|
|
* Thu Sep 5 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.3.2-11
|
||
|
|
- Package init
|