From 636ca90ce33b7afc8750ef7fdfb38a7ddebb5837 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:43:02 +0100 Subject: [PATCH] legacy package [release 0.12.1_20160607-2mamba;Tue Jan 09 2018] --- README.md | 2 ++ libjson-c2.spec | 90 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 92 insertions(+) create mode 100644 libjson-c2.spec diff --git a/README.md b/README.md index 91b5ae8..9642a65 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # libjson-c2 +JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. + diff --git a/libjson-c2.spec b/libjson-c2.spec new file mode 100644 index 0000000..94c8149 --- /dev/null +++ b/libjson-c2.spec @@ -0,0 +1,90 @@ +%define gitver %(echo %version | tr _ -) +Name: libjson-c2 +Version: 0.12.1_20160607 +Release: 2mamba +Summary: A reference counting object model that allows you to easily construct JSON objects in C +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://oss.metaparadigm.com/json-c/ +Source: https://github.com/json-c/json-c.git/json-c-%{gitver}/json-c-%{version}.tar.bz2 +#Source: http://oss.metaparadigm.com/json-c/json-c-%{version}.tar.gz +License: MIT +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: pkg-config +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +JSON-C implements a reference counting object model that allows you to easily construct JSON objects in C, output them as JSON formatted strings and parse JSON formatted strings back into the C representation of JSON objects. + +%package devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description devel +This package contains libraries and header files for developing applications that use %{name}. + +%debug_package + +%prep +%setup -q -n json-c-%{version} + +%build +%configure +%make -j1 + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%pre devel +[ -d %{_includedir}/json ] && rm -rf %{_includedir}/json +: + +%files +%defattr(-,root,root) +#%{_libdir}/libjson.so.* +%{_libdir}/libjson-c.so.* +%doc AUTHORS COPYING + +%files devel +%defattr(-,root,root) +#%{_includedir}/json +%dir %{_includedir}/json-c +%{_includedir}/json-c/*.h +#%{_libdir}/libjson.a +#%{_libdir}/libjson.la +#%{_libdir}/libjson.so +%{_libdir}/libjson-c.a +%{_libdir}/libjson-c.la +%{_libdir}/libjson-c.so +#%{_libdir}/pkgconfig/json.pc +%{_libdir}/pkgconfig/json-c.pc +%doc ChangeLog NEWS README README.html README-WIN32.html + +%changelog +* Tue Jan 09 2018 Silvan Calarco 0.12.1_20160607-2mamba +- legacy package + +* Sun Jul 31 2016 Silvan Calarco 0.12.1_20160607-1mamba +- update to 0.12.1_20160607 + +* Mon Jun 16 2014 Automatic Build System 0.12-1mamba +- automatic version update by autodist + +* Sat Jan 25 2014 Silvan Calarco 0.11-1mamba +- update to 0.11 + +* Sat May 12 2012 Silvan Calarco 0.9-1mamba +- package created by autospec