inih/inih.spec

68 lines
1.4 KiB
RPMSpec
Raw Normal View History

2021-12-01 17:46:02 +08:00
Name: inih
2022-10-18 15:39:37 +08:00
Version: 56
2021-12-01 17:46:02 +08:00
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
2022-10-18 15:39:37 +08:00
%{_libdir}/lib%{name}.so
2021-12-01 17:46:02 +08:00
%{_libdir}/lib%{name}.so.0
2022-10-18 15:39:37 +08:00
%{_libdir}/libINIReader.so
%{_libdir}/libINIReader.so.0
2021-12-01 17:46:02 +08:00
%files devel
%{_includedir}/ini.h
2022-10-18 15:39:37 +08:00
%{_includedir}/INIReader.h
2021-12-01 17:46:02 +08:00
%{_libdir}/pkgconfig/inih.pc
2022-10-18 15:39:37 +08:00
%{_libdir}/pkgconfig/INIReader.pc
2021-12-01 17:46:02 +08:00
%{_libdir}/lib%{name}.so
2022-10-18 15:39:37 +08:00
%{_libdir}/libINIReader.so
2021-12-01 17:46:02 +08:00
%changelog
2022-10-18 15:39:37 +08:00
* Tue Oct 18 2022 lihaoxiang <lihaoxiang9@huawei.com> - 56-1
- Update version to 56
2021-12-01 17:46:02 +08:00
* Wed Dec 1 2021 yanglongkang <yanglongkang@huawei.com> - 49-1
- Package init