From a96f44e3e86fe0d59b712cdb0d28157a472887d5 Mon Sep 17 00:00:00 2001 From: Jussi Lehtola Date: Thu, 8 Apr 2010 05:14:21 +0000 Subject: [PATCH] Initial import. --- json-c.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 2 files changed, 77 insertions(+) create mode 100644 json-c.spec diff --git a/json-c.spec b/json-c.spec new file mode 100644 index 0000000..cdf0a7c --- /dev/null +++ b/json-c.spec @@ -0,0 +1,76 @@ +Name: json-c +Version: 0.9 +Release: 1%{?dist} +Summary: A JSON implementation in C +Group: Development/Libraries +License: MIT +URL: http://oss.metaparadigm.com/json-c/ +Source0: http://oss.metaparadigm.com/json-c/json-c-%{version}.tar.gz +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) + + +%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: Development headers and library for json-c +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: pkgconfig + +%description devel +This package contains the development headers and library for json-c. + + +%package doc +Summary: Reference manual for json-c +Group: Documentation +BuildArch: noarch + +%description doc +This package contains the reference manual for json-c. + +%prep +%setup -q +for doc in ChangeLog; do + iconv -f iso-8859-1 -t utf8 $doc > $doc.new && + touch -r $doc $doc.new && + mv $doc.new $doc +done + +%build +%configure --enable-shared --disable-static +make %{?_smp_mflags} + +%install +rm -rf %{buildroot} +make install DESTDIR=%{buildroot} +# Get rid of la files +rm -rf %{buildroot}%{_libdir}/*.la + +%clean +rm -rf %{buildroot} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc AUTHORS ChangeLog COPYING NEWS README README.html +%{_libdir}/libjson.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/json/ +%{_libdir}/libjson.so +%{_libdir}/pkgconfig/json.pc + +%files doc +%defattr(-,root,root,-) +%doc doc/html/* + +%changelog +* Tue Apr 06 2010 Jussi Lehtola - 0.9-1 +- First release. diff --git a/sources b/sources index e69de29..28d3e60 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +3a13d264528dcbaf3931b0cede24abae json-c-0.9.tar.gz