From 6141318348b9b1856007d3508404ec4f26efda5d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 11 Dec 2020 09:04:39 +0100 Subject: [PATCH] * 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 --- .gitignore | 1 + cjson.spec | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 64 insertions(+) create mode 100644 .gitignore create mode 100644 cjson.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3dac64c --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/cjson-1.7.14.tar.gz diff --git a/cjson.spec b/cjson.spec new file mode 100644 index 0000000..e6e6e0f --- /dev/null +++ b/cjson.spec @@ -0,0 +1,62 @@ +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 +%cmake_build + +%install +%cmake_install +rm -f %{buildroot}%{_libdir}/*.{la,a} +rm -f %{buildroot}%{_libdir}/cmake/cJSON/*.cmake + +%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 +%{_includedir}/cjson/ + +%changelog +* 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 \ No newline at end of file diff --git a/sources b/sources new file mode 100644 index 0000000..cfa1dee --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (cjson-1.7.14.tar.gz) = 8de1dedc123ed025a9cbe6764e5963eb0550f726d06a8f6bedfe05b84e852cd9c1587cd381669663073967f42be894a535ba239013f304ce544c3b15a6477c01