commit aef9a37158ab2807f45fe34c20dae96d62b63891 Author: MSVSphere Packaging Team Date: Mon Dec 23 13:41:14 2024 +0300 import cjson-1.7.18-1.el10 diff --git a/.cjson.metadata b/.cjson.metadata new file mode 100644 index 0000000..16a042c --- /dev/null +++ b/.cjson.metadata @@ -0,0 +1 @@ +3e3408c124a2c885e2724ff88d7f5473cda53038 SOURCES/cjson-1.7.18.tar.gz diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..818fc3f --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/cjson-1.7.18.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..0f08271 --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# cjson + +The cjson package diff --git a/SPECS/cjson.spec b/SPECS/cjson.spec new file mode 100644 index 0000000..47dba29 --- /dev/null +++ b/SPECS/cjson.spec @@ -0,0 +1,106 @@ +Name: cjson +Version: 1.7.18 +Release: 1%{?dist} +Summary: Ultralightweight JSON parser in ANSI C + +# several files in tests/ are Apache-2.0 but are not packaged +License: MIT +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 +Requires: cmake-filesystem + +%description devel +The %{name}-devel package contains libraries and header files for +developing applications that use cJSON. + +%prep +%autosetup -n cJSON-%{version} + +%build +%cmake -DENABLE_CJSON_TEST=ON -DENABLE_TARGET_EXPORT=ON +%cmake_build + +%install +%cmake_install +rm -f %{buildroot}%{_libdir}/*.{la,a} + +%check +%ctest + +%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 +%{_libdir}/cmake/cJSON/ +%{_includedir}/cjson/ + +%changelog +* Mon Dec 23 2024 MSVSphere Packaging Team - 1.7.18-1 +- Rebuilt for MSVSphere 10 + +* Thu Sep 26 2024 Fabian Affolter - 1.7.18-1 +- Update to new upstream version (closes rhbz#2237124) +- Fix rhbz#2277268, closes rhbz#2277269 + +* Wed Jul 17 2024 Fedora Release Engineering - 1.7.17-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sun Apr 07 2024 Fabian Affolter - 1.7.17.-1 +- Update to latest upstream version 1.7.17 (closes rhbz#2255953) +- Fix rhbz#2254647 + +* Tue Jan 23 2024 Fedora Release Engineering - 1.7.15-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Fri Jan 19 2024 Fedora Release Engineering - 1.7.15-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Wed Jul 19 2023 Fedora Release Engineering - 1.7.15-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Wed Mar 01 2023 Petr Menšík - 1.7.15-1 +- Update to 1.7.15 +- Export also CMake module + +* Wed Jan 18 2023 Fedora Release Engineering - 1.7.14-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Wed Jul 20 2022 Fedora Release Engineering - 1.7.14-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Wed Jan 19 2022 Fedora Release Engineering - 1.7.14-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Wed Jul 21 2021 Fedora Release Engineering - 1.7.14-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Tue Jan 26 2021 Fedora Release Engineering - 1.7.14-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Dec 11 2020 Fabian Affolter - 1.7.14-2 +- Adjust license tag, it's MIT and ASL 2.0 (#1905273) +- Replace ldconfig scriplets +- Fix requires: + +* Mon Dec 07 2020 Fabian Affolter - 1.7.14-1 +- Initial package for Fedora