diff --git a/README.md b/README.md index 8b03b45..bb5474d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # cjson +Ultralightweight JSON parser in ANSI C. + diff --git a/cjson.spec b/cjson.spec new file mode 100644 index 0000000..94c6105 --- /dev/null +++ b/cjson.spec @@ -0,0 +1,73 @@ +Name: cjson +Version: 1.7.18 +Release: 1mamba +Summary: Ultralightweight JSON parser in ANSI C +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/DaveGamble/cJSON +Source: https://github.com/DaveGamble/cJSON.git/v%{version}/cJSON-%{version}.tar.bz2 +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRequires: cmake +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description +Ultralightweight JSON parser in ANSI C. + +%package -n lib%{name} +Group: System/Libraries +Summary: Ultralightweight JSON parser in ANSI C + +%description -n lib%{name} +Ultralightweight JSON parser in ANSI C. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n cJSON-%{version} + +%build +%cmake +%cmake_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%cmake_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libcjson.so.* +%doc LICENSE + +%files -n lib%{name}-devel +%defattr(-,root,root) +%dir %{_includedir}/cjson +%{_includedir}/cjson/* +%{_libdir}/libcjson.so +%dir %{_libdir}/cmake/cJSON +%{_libdir}/cmake/cJSON/*.cmake +%{_libdir}/pkgconfig/libcjson.pc +%doc README.md + +%changelog +* Sat Sep 21 2024 Silvan Calarco 1.7.18-1mamba +- package created using the webbuild interface