File jsmn.spec of Package jsmn

#
# spec file for package jsmn
#
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           jsmn
Version:        20211014
Release:        0
Summary:        Minimalistic JSON parser library in C
License:        MIT
Group:          Development/Libraries/C and C++
Url:            http://zserge.com/jsmn.html
Source:         %{name}-%{version}.tar.xz

%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/C and C++

%description devel
jsmn (pronounced like ‘jasmine’) is a minimalistic JSON parser in C with a
focus on simplicity and efficiency.

This package contains the jsmn.h header file for embedding into a project;
there is no separate shared-object library. Some examples and a readme are
also present.

%prep
%setup -q

%build
# nothing to build for header; 'make' builds and runs tests

%check
%make_build

%install
install -m 0644 -D jsmn.h %{buildroot}/%{_includedir}/jsmn.h

%files devel
%doc LICENSE README.md example/
%{_includedir}/jsmn.h

%changelog
openSUSE Build Service is sponsored by