From 8907d4c86e57565302ae5e85dacacb6641218b14 Mon Sep 17 00:00:00 2001 From: Daan De Meyer Date: Sat, 2 Dec 2023 15:14:24 +0100 Subject: [PATCH] Move INIReader C++ library to inih-cpp subpackage This commit moves the INIReader C++ library to a subpackage so that a base system with xfsprogs (which provides fsck.xfs) can be built without pulling in the C++ standard library. None of the packages pulling in inih depend on libINIReader.so so this should not break any downstream users. We care about not pulling in the C++ standard library because we might want to install xfsprogs in an initramfs which needs to be as small as possible. By splitting INIReader into a subpackage, installing xfsprogs doesn't pull in the C++ standard library into the initramfs anymore. --- inih.spec | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/inih.spec b/inih.spec index 479de0c..d67b410 100644 --- a/inih.spec +++ b/inih.spec @@ -1,6 +1,6 @@ Name: inih Version: 57 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Simple INI file parser library License: BSD-3-Clause @@ -17,11 +17,18 @@ 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 cpp +Summary: INIReader C++ library +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description cpp +This package contains the INIReader C++ library which provides a C++ interface +for inih. %package devel Summary: Development package for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} - +Requires: %{name}-cpp%{?_isa} = %{version}-%{release} %description devel This package contains development files for %{name}. @@ -51,6 +58,8 @@ embedded systems. %license LICENSE.txt %doc README.md %{_libdir}/lib%{name}.so.0 + +%files cpp %{_libdir}/libINIReader.so.0 @@ -64,6 +73,9 @@ embedded systems. %changelog +* Sat Dec 2 2023 Daan De Meyer - 57-3 +- Move INIReader C++ library to inih-cpp subpackage + * Thu Jul 20 2023 Fedora Release Engineering - 57-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild