diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..78deb0406d713ab9730e3c2447be1abdbd70b9a2 --- /dev/null +++ b/LICENSE @@ -0,0 +1,20 @@ +Copyright (c) 2009-2017 Dave Gamble and cJSON contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + diff --git a/cjson-1.7.14.tar.gz b/cjson-1.7.14.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d00eda3f0be3bc56413ababd7656dba063bdab45 Binary files /dev/null and b/cjson-1.7.14.tar.gz differ diff --git a/cjson.spec b/cjson.spec new file mode 100644 index 0000000000000000000000000000000000000000..2fe61269bba36c1438c95efa1de05b741a9bca83 --- /dev/null +++ b/cjson.spec @@ -0,0 +1,55 @@ +Name: cjson +Version: 1.7.14 +Release: 2%{?dist} +Summary: Ultralightweight JSON parser in ANSI C + +License: MIT and ASL 2.0 +URL: https://github.com/DaveGamble/cJSON +Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: cmake + +%description +cJSON aims to be the dumbest possible parser that you can get your job +done with. It's a single file of C, and a single header file. + +%package devel +Summary: Development files for cJSON +Requires: %{name}%{?_isa} = %{version}-%{release} +Requires: pkgconfig + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use cJSON. + +%prep +%autosetup -n cJSON-%{version} + +%build +%cmake +%make_build + +%install +%make_install +rm -f %{buildroot}%{_libdir}/*.{la,a} +rm -f %{buildroot}%{_libdir}/cmake/cJSON/*.cmake + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%license LICENSE +%doc README.md +%{_libdir}/libcjson*.so.* + +%files devel +%doc CHANGELOG.md CONTRIBUTORS.md +%{_libdir}/libcjson.so +%{_libdir}/pkgconfig/libcjson.pc +%{_includedir}/cjson/ + +%changelog +* Fri Jul 16 2021 zhanyige - 1.7.14-2 +- Initial package + diff --git a/cjson.yaml b/cjson.yaml new file mode 100644 index 0000000000000000000000000000000000000000..b8762b9e70711112cd651e9e4ad18dffe92300dd --- /dev/null +++ b/cjson.yaml @@ -0,0 +1,4 @@ +version_control: git +src_repo: https://github.com/DaveGamble/cJSON.git +tag_prefix: +seperator: