Sophie

Sophie

distrib > Mandriva > 2009.1 > x86_64 > by-pkgid > f75f4b4ffb40ee2bd516f30086e79760 > files > 2

json-c-0.8-1mdv2009.1.src.rpm

%define major		0
%define libname		%mklibname json %{major}
%define develname	%mklibname json -d

Name:		json-c
Version:	0.8
Release:	%mkrel 1
Summary:	JSON implementation in C
Group:		System/Libraries
URL:		http://oss.metaparadigm.com/%{name}
Source0:	http://oss.metaparadigm.com/%{name}/json-c-%{version}.tar.gz
License:	MIT
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%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 -n %{libname}
Summary:	JSON implementation in C
Group:		System/Libraries

%description -n %{libname}
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 -n %{develname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libjson-devel = %{version}-%{release}

%description -n %{develname}
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.

%prep
%setup -q

%build
%configure2_5x
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_includedir}/json
%{_libdir}/pkgconfig/*.pc



%changelog
* Sun Feb 22 2009 Oden Eriksson <oeriksson@mandriva.org> 0.8-1mdv2009.1
+ Revision: 343849
- 0.8

* Sun Dec 28 2008 Adam Williamson <awilliamson@mandriva.org> 0.7-2mdv2009.1
+ Revision: 320229
- devel requires lib
- import json-c