inih/inih.spec
2021-12-02 15:31:38 +08:00

62 lines
1.2 KiB
RPMSpec

Name: inih
Version: 49
Release: 1
Summary: Simple INI file parser library
License: BSD
URL: https://github.com/benhoyt/inih
Source0: https://github.com/benhoyt/inih/archive/refs/tags/r%{version}.tar.gz
BuildRequires: gcc g++
BuildRequires: meson
%description
The inih package provides simple INI file parser which is only a couple of
pages of code, and it was designed to be small and simple, so it's good for
embedded systems.
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package contains development files for %{name}.
The inih package provides simple INI file parser which is only a couple of
pages of code, and it was designed to be small and simple, so it's good for
embedded systems.
%prep
%autosetup -n %{name}-r%{version}
%build
%meson -Ddefault_library=shared -Ddistro_install=true
%meson_build
%install
%meson_install
%files
%license LICENSE.txt
%doc README.md
%{_libdir}/lib%{name}.so.%{version}
%{_libdir}/lib%{name}.so.0
%files devel
%{_includedir}/ini.h
%{_libdir}/pkgconfig/inih.pc
%{_libdir}/lib%{name}.so
%changelog
* Wed Dec 1 2021 yanglongkang <yanglongkang@huawei.com> - 49-1
- Package init