From c284a1f10e914fdf820e9cb6678bb20e2bca40f1 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Fri, 5 Jan 2024 23:54:55 +0100 Subject: [PATCH] package created using the webbuild interface [release 56-1mamba;Fri Sep 30 2022] --- README.md | 2 ++ inih.spec | 76 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 inih.spec diff --git a/README.md b/README.md index 0e78fba..8214593 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # inih +inih (INI Not Invented Here) is a simple .INI file parser written in C. It's only a couple of pages of code, and it was designed to be small and simple, so it's good for embedded systems. It's also more or less compatible with Python's ConfigParser style of .INI files, including RFC 822-style multi-line syntax and name: value entries. + diff --git a/inih.spec b/inih.spec new file mode 100644 index 0000000..e4f8013 --- /dev/null +++ b/inih.spec @@ -0,0 +1,76 @@ +Name: inih +Version: 56 +Release: 1mamba +Summary: Simple .INI file parser in C, good for embedded systems +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/benhoyt/inih +Source: https://github.com/benhoyt/inih.git/r%{version}/inih-%{version}.tar.bz2 +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libgcc +BuildRequires: libstdc++6-devel +## AUTOBUILDREQ-END + +%description +inih (INI Not Invented Here) is a simple .INI file parser written in C. It's only a couple of pages of code, and it was designed to be small and simple, so it's good for embedded systems. It's also more or less compatible with Python's ConfigParser style of .INI files, including RFC 822-style multi-line syntax and name: value entries. + +%package -n lib%{name} +Group: System/Libraries +Summary: Simple .INI file parser in C, good for embedded systems + +%description -n lib%{name} +inih (INI Not Invented Here) is a simple .INI file parser written in C. It's only a couple of pages of code, and it was designed to be small and simple, so it's good for embedded systems. It's also more or less compatible with Python's ConfigParser style of .INI files, including RFC 822-style multi-line syntax and name: value entries. +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%meson +%meson_build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%meson_install + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libINIReader.so.* +%{_libdir}/libinih.so.* +%doc LICENSE.txt + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/INIReader.h +%{_includedir}/ini.h +%{_libdir}/libINIReader.so +%{_libdir}/libinih.so +%{_libdir}/pkgconfig/INIReader.pc +%{_libdir}/pkgconfig/inih.pc +%doc README.md + +%changelog +* Fri Sep 30 2022 Silvan Calarco 56-1mamba +- package created using the webbuild interface