File c-sundry.spec of Package c-sundry

#
# spec file for package c-sundry
#
# Copyright (c) 2017 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:           c-sundry
Version:        1.git1
Release:        0
Summary:        Collection of miscellaneous functions for C11
License:        Apache-2.0
Group:          Development/Libraries/C and C++
Url:            https://github.com/c-util/c-sundry

Source:         %name-%version.tar.xz
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  meson
BuildRequires:  pkg-config

%description
A header-only library for ISO C2011 providing macros and functions to
work on bitmaps, strings, time and syscalls.

%package devel
Summary:        Development files for c-sundry, a misc function collection
Group:          Development/Libraries/C and C++

%description devel
A header-only library for ISO C2011 providing macros and functions to
work on bitmaps, strings, time and syscalls.

%prep
%setup -q

%build
%meson --includedir="%_includedir/%name"
%meson_build

%install
%meson_install

%files devel
%defattr(-,root,root)
%_includedir/%name/
%_libdir/pkgconfig/*.pc
%doc LICENSE* NEWS

%changelog
openSUSE Build Service is sponsored by