File c-utf8.spec of Package c-utf8
#
# spec file for package c-utf8
#
# Copyright (c) 2022 SUSE LLC
#
# 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-utf8
%define lname libcutf8-1-0
Version: 1.0.0
Release: 0
Summary: UTF-8 handling in standard ISO C11
License: Apache-2.0 OR LGPL-2.1-or-later
URL: https://github.com/c-util/c-utf8
Source: https://github.com/c-util/c-utf8/archive/refs/tags/v%version.tar.gz
BuildRequires: meson >= 0.60
BuildRequires: pkg-config >= 0.29
BuildRequires: pkgconfig(libcstdaux-1) >= 1.3
%description
c-utf8 implements utility functions around handling UTF-8 in standard ISO C11.
%package -n %lname
Summary: UTF-8 handling in standard ISO C11
%description -n %lname
c-utf8 implements utility functions around handling UTF-8 in standard ISO C11.
%package devel
Summary: Header files for the c-utf8 library
Requires: %lname = %version
%description devel
c-utf8 implements utility functions around handling UTF-8 in standard ISO C11.
%prep
%autosetup
%build
%meson --includedir="%_includedir/%name"
%meson_build
%install
%meson_install
rm -v "%buildroot/%_libdir"/*.a
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%_libdir/*.so.*
%files devel
%_includedir/%name/
%_libdir/*.so
%_libdir/pkgconfig/*.pc
%license AUTHORS
%changelog