From 10429776b8cf9bf26c201df4e321b63876df4313 Mon Sep 17 00:00:00 2001 From: Rusty Lynch Date: Wed, 22 Aug 2012 13:31:45 -0700 Subject: [PATCH] Add Tizen packaging files --- packaging/jansson.changes | 2 ++ packaging/jansson.spec | 55 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 packaging/jansson.changes create mode 100644 packaging/jansson.spec diff --git a/packaging/jansson.changes b/packaging/jansson.changes new file mode 100644 index 0000000..2e4efce --- /dev/null +++ b/packaging/jansson.changes @@ -0,0 +1,2 @@ +* Wed Aug 22 2012 Rusty Lynch v2.3.1-45-g0dac319 +- Update to latest snapshot diff --git a/packaging/jansson.spec b/packaging/jansson.spec new file mode 100644 index 0000000..e42218a --- /dev/null +++ b/packaging/jansson.spec @@ -0,0 +1,55 @@ +Name: jansson +Summary: Jansson JSON Library +Version: v2.3.1_45_g0dac319 +Release: 1 +Group: System/Libraries +License: MIT +URL: http://www.digip.org/jannson +Source0: %{name}-%{version}.tar.bz2 +Requires(post): /sbin/ldconfig +Requires(postun): /sbin/ldconfig + +%description +Jansson is a C library for encoding, decoding and manipulating JSON data. It features: +* Simple and intuitive API and data model +* Comprehensive documentation +* No dependencies on other libraries +* Full Unicode support (UTF-8) +* Extensive test suite + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description devel +Development files needed for building jasson apps + +%prep +%setup -q -n %{name}-%{version} + +%build + +autoreconf -i +%configure + +make %{?jobs:-j%jobs} + +%install +rm -rf %{buildroot} +%make_install + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%{_libdir}/libjansson.so.* + +%files devel +%defattr(-,root,root,-) +%{_includedir}/jansson_config.h +%{_includedir}/jansson.h +%{_libdir}/libjansson.so +%{_libdir}/pkgconfig/jansson.pc -- 2.7.4