68 lines
1.4 KiB
RPMSpec
68 lines
1.4 KiB
RPMSpec
Name: inih
|
|
Version: 56
|
|
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
|
|
%{_libdir}/lib%{name}.so.0
|
|
%{_libdir}/libINIReader.so
|
|
%{_libdir}/libINIReader.so.0
|
|
|
|
%files devel
|
|
%{_includedir}/ini.h
|
|
%{_includedir}/INIReader.h
|
|
%{_libdir}/pkgconfig/inih.pc
|
|
%{_libdir}/pkgconfig/INIReader.pc
|
|
%{_libdir}/lib%{name}.so
|
|
%{_libdir}/libINIReader.so
|
|
|
|
|
|
%changelog
|
|
* Tue Oct 18 2022 lihaoxiang <lihaoxiang9@huawei.com> - 56-1
|
|
- Update version to 56
|
|
* Wed Dec 1 2021 yanglongkang <yanglongkang@huawei.com> - 49-1
|
|
- Package init
|