12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- %define pkg_version 0.9
- %define pkg_release 1%{?_dist_release}
- Summary: A JSON implementation in C
- Name: json-c
- Version: %{pkg_version}
- Release: %{pkg_release}
- Source0: http://oss.metaparadigm.com/json-c/%{name}-%{version}.tar.gz
- License: MIT
- Group: System Environment/Libraries
- URL: http://oss.metaparadigm.com/json-c/
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Vendor: Project Vine
- Distribution: Vine Linux
- Packager: Takemikaduchi
- %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 files for json-c
- Group: Development/Libraries
- Requires: %{name} = %{version}-%{release}
- Requires: pkgconfig
- %description devel
- This package contains the libraries and header files that are needed
- for writing applications that are using json-c.
- %package doc
- Summary: Documentation for json-c
- Group: Documentation
- Requires: %{name} = %{version}-%{release}
- BuildArch: noarch
- %description doc
- This package contains documentation for json-c.
- %prep
- %setup -q
- %build
- %configure --disable-static
- %{__make} %{?_smp_mflags}
- %install
- %{__rm} -rf $RPM_BUILD_ROOT
- %{__make} install DESTDIR=$RPM_BUILD_ROOT
- %{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la
- %clean
- %{__rm} -rf $RPM_BUILD_ROOT
- %post -p /sbin/ldconfig
- %postun -p /sbin/ldconfig
- %files
- %defattr(-,root,root,-)
- %doc COPYING 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
- * Fri Oct 07 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-1
- - initial build for Vine Linux
|