[packages/jsmn] new

glen glen at pld-linux.org
Sat Jan 2 00:15:45 CET 2016


commit 88f9e0264663a225572ec65449c7959a8a350ba0
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Jan 2 01:14:39 2016 +0200

    new
    
    based on opensuse package
    https://build.opensuse.org/package/show/server:database/jsmn

 CMakeLists.txt | 15 +++++++++++++++
 jsmn.spec      | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 75 insertions(+)
---
diff --git a/jsmn.spec b/jsmn.spec
new file mode 100644
index 0000000..f1da454
--- /dev/null
+++ b/jsmn.spec
@@ -0,0 +1,60 @@
+Summary:	Minimalistic JSON parser library in C
+Name:		jsmn
+Version:	0.0.0
+Release:	1
+License:	MIT
+Group:		Development/Libraries
+URL:		http://zserge.com/jsmn.html
+Source0:	https://github.com/zserge/jsmn/archive/4a54ae6/%{name}-%{version}.tar.gz
+# Source0-md5:	749dcd1163d005d9adba985308d9edb2
+Source1:	CMakeLists.txt
+BuildRequires:	cmake
+BuildRequires:	unzip
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+jsmn (pronounced like 'jasmine') is a minimalistic JSON parser in C
+with a focus on simplicity and efficiency.
+
+%package devel
+Summary:	Development files for %{name}
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+jsmn (pronounced like 'jasmine') is a minimalistic JSON parser in C
+with a focus on simplicity and efficiency.
+
+This package contains development files for %{name}.
+
+%prep
+%setup -qc
+mv jsmn-*/* .
+cp %{SOURCE1} .
+rm Makefile
+
+%build
+%cmake
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%cmake_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc LICENSE README.md
+%attr(755,root,root) %{_libdir}/libjsmn.so.*.*.*
+%ghost %{_libdir}/libjsmn.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%doc LICENSE README.md example
+%{_includedir}/jsmn.h
+%{_libdir}/libjsmn.so
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644
index 0000000..44d84e2
--- /dev/null
+++ b/CMakeLists.txt
@@ -0,0 +1,15 @@
+cmake_minimum_required(VERSION 2.8)
+
+PROJECT(jsmn C)
+ADD_LIBRARY(jsmn jsmn.c)
+
+SET_TARGET_PROPERTIES(jsmn
+  PROPERTIES
+    SOVERSION 0
+    VERSION 0.0.0
+)
+
+INSTALL(TARGETS jsmn
+  LIBRARY DESTINATION ${LIB_INSTALL_DIR} COMPONENT libraries
+)
+INSTALL(FILES jsmn.h DESTINATION include)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jsmn.git/commitdiff/88f9e0264663a225572ec65449c7959a8a350ba0



More information about the pld-cvs-commit mailing list