From 990e8f2276356311418bad8f08935f15a3afe996 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Arkadiusz=20Mi=C5=9Bkiewicz?= Date: Tue, 13 Apr 2010 09:43:33 +0000 Subject: [PATCH] - initial Changed files: json-c.spec -> 1.1 --- json-c.spec | 68 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 json-c.spec diff --git a/json-c.spec b/json-c.spec new file mode 100644 index 0000000..15e6d1d --- /dev/null +++ b/json-c.spec @@ -0,0 +1,68 @@ +Summary: A JSON implementation in C +Name: json-c +Version: 0.9 +Release: 1 +License: LGPL v2 +Group: Development/Libraries +Source0: http://oss.metaparadigm.com/json-c/%{name}-%{version}.tar.gz +# Source0-md5: 3a13d264528dcbaf3931b0cede24abae +URL: http://oss.metaparadigm.com/json-c/ +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%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 +Summary: Header files for the json-c library +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Header files for the json-c library. + +%package static +Summary: Static json-c library +Group: Development/Libraries +Requires: %{name}-devel = %{version}-%{release} + +%description static +Static json-c library. + +%prep +%setup -q + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(644,root,root,755) +%doc README INSTALL AUTHORS NEWS README +%attr(755,root,root) %{_libdir}/libjson.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libjson.so.0 + +%files devel +%defattr(644,root,root,755) +%{_includedir}/json +%attr(755,root,root) %{_libdir}/libjson.so +%{_libdir}/libjson.la +%{_pkgconfigdir}/json.pc + +%files static +%defattr(644,root,root,755) +%{_libdir}/libjson.a -- 2.43.0