2020-09-15 07:48:16 +02:00
|
|
|
#
|
|
|
|
# spec file for package inih
|
|
|
|
#
|
2022-03-25 22:04:13 +01:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2020-09-15 07:48:16 +02:00
|
|
|
# Copyright (c) 2020 Matthias Bach <marix@marix.org>
|
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2020-10-15 21:37:35 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2020-09-15 07:48:16 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: inih
|
2022-03-25 23:09:51 +01:00
|
|
|
Version: 55
|
2020-09-15 07:48:16 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Simple .INI file parser in C, good for embedded systems
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-10-15 21:37:35 +02:00
|
|
|
URL: https://github.com/benhoyt/inih
|
|
|
|
Source: https://github.com/benhoyt/inih/archive/r%{version}.tar.gz#/inih-r%{version}.tar.gz
|
2020-09-15 07:48:16 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: meson
|
|
|
|
BuildRequires: pkgconfig
|
|
|
|
|
|
|
|
%description
|
|
|
|
INI Not Invented Here is a simple parser for .INI files written in C and mostly
|
|
|
|
compatible with Python's ConfigParser.
|
|
|
|
|
2020-09-18 21:36:53 +02:00
|
|
|
%package -n libinih0
|
2020-09-15 07:48:16 +02:00
|
|
|
Summary: INIH dynamic libary files
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2020-09-18 21:36:53 +02:00
|
|
|
%description -n libinih0
|
2020-09-15 07:48:16 +02:00
|
|
|
INI Not Invented Here is a simple parser for .INI files written in C and mostly
|
|
|
|
compatible with Python's ConfigParser.
|
|
|
|
|
|
|
|
This package provides the library for use at runtime by applications using INIH.
|
|
|
|
|
|
|
|
%package -n libinih-devel
|
|
|
|
Summary: Development files for INIH
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-09-18 21:36:53 +02:00
|
|
|
Requires: libinih0 = %{version}
|
2020-09-15 07:48:16 +02:00
|
|
|
|
|
|
|
%description -n libinih-devel
|
|
|
|
INI Not Invented Here is a simple parser for .INI files written in C and mostly
|
|
|
|
compatible with Python's ConfigParser.
|
|
|
|
|
|
|
|
This package provides the development headers for INIH including the C++ bindings.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-r%{version}
|
|
|
|
|
|
|
|
%build
|
2020-09-19 17:46:41 +02:00
|
|
|
%meson -Ddefault_library=shared -Ddistro_install=true -Dwith_INIReader=true
|
2020-09-15 07:48:16 +02:00
|
|
|
%meson_build
|
|
|
|
|
|
|
|
%check
|
2020-09-18 21:45:07 +02:00
|
|
|
cd tests
|
|
|
|
bash -e ./unittest.sh
|
|
|
|
cd ../examples
|
|
|
|
bash -e cpptest.sh
|
2020-09-15 07:48:16 +02:00
|
|
|
|
|
|
|
%install
|
|
|
|
%meson_install
|
|
|
|
|
2020-09-18 21:36:53 +02:00
|
|
|
%post -n libinih0 -p /sbin/ldconfig
|
|
|
|
%postun -n libinih0 -p /sbin/ldconfig
|
2020-09-15 07:48:16 +02:00
|
|
|
|
2020-09-18 21:36:53 +02:00
|
|
|
%files -n libinih0
|
2020-09-15 07:48:16 +02:00
|
|
|
%{_libdir}/libinih.so.*
|
|
|
|
%{_libdir}/libINIReader.so.*
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%files -n libinih-devel
|
|
|
|
%{_includedir}/ini.h
|
|
|
|
%{_includedir}/INIReader.h
|
|
|
|
%{_libdir}/libinih.so
|
|
|
|
%{_libdir}/libINIReader.so
|
|
|
|
%{_libdir}/pkgconfig/inih.pc
|
|
|
|
%{_libdir}/pkgconfig/INIReader.pc
|
|
|
|
%doc README.md
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|