6 Commits

6 changed files with 81 additions and 51 deletions

23
autoconf2.60.patch Normal file
View File

@@ -0,0 +1,23 @@
From: Jan Engelhardt <ej@inai.de>
Date: 2025-05-29 09:03:06.799019252 +0200
Upstream: no
openSUSE Leap 15.6 does not have autoconf 2.70
(AC_CHECK_INCLUDES_DEFAULT).
---
configure.ac | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: libconfig-1.8/configure.ac
===================================================================
--- libconfig-1.8.orig/configure.ac
+++ libconfig-1.8/configure.ac
@@ -70,7 +70,7 @@ fi;
dnl Checks for header files.
-AC_CHECK_INCLUDES_DEFAULT
+AC_HEADER_STDC
AC_CHECK_HEADERS(unistd.h stdint.h xlocale.h)

View File

@@ -1,2 +1,2 @@
libconfig++11
libconfig11
libconfig++15
libconfig15

Binary file not shown.

View File

@@ -1,3 +1,23 @@
-------------------------------------------------------------------
Thu May 29 06:36:53 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to release 1.8.1
* Documentation updates
- Add autoconf2.60.patch to help a Leap 15.6 FTBFS
-------------------------------------------------------------------
Wed Apr 30 10:04:27 UTC 2025 - Jan Engelhardt <jengelh@inai.de>
- Update to relase 1.8
* Added support for binary integer values
- Merge libconfig++-devel into libconfig-devel
-------------------------------------------------------------------
Sun Apr 6 16:45:34 UTC 2025 - Friedrich Haubensak <hsk17@mail.de>
- add -std=gnu11 to CFLAGS to fix gcc15 compile time error, and to
still allow build on Leap 15.6
-------------------------------------------------------------------
Sun Jun 20 07:51:20 UTC 2021 - Jan Engelhardt <jengelh@inai.de>

View File

@@ -1,7 +1,7 @@
#
# spec file for package libconfig
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,23 @@
#
%define _soversion 11
%define _soversion 15
Name: libconfig
Version: 1.7.3
Version: 1.8.1
Release: 0
Summary: A library for manipulating structured configuration files
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://hyperrealm.github.io/libconfig
Source: https://hyperrealm.github.io/libconfig/dist/%{name}-%{version}.tar.gz
Source: https://github.com/hyperrealm/libconfig/archive/refs/tags/v%{version}.tar.gz
Source1: baselibs.conf
Patch1: autoconf2.60.patch
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: makeinfo
BuildRequires: pkgconfig
BuildRequires: pkg-config
%description
libconfig is a library for manipulating structured configuration
@@ -51,20 +54,6 @@ string parsing in application code.
This package contains the shared libraries for libconfig.
%package devel
Summary: C bindings development files for libconfig
Group: Development/Languages/C and C++
Requires: libconfig%{_soversion} = %{version}
Recommends: libconfig-doc = %{version}
%description devel
libconfig is a library for manipulating structured configuration
files. The supported file format is more compact and more readable
than XML. Unlike XML, it is type-aware, so it is not necessary to do
string parsing in application code.
This package contains the C bindings development files.
%package -n libconfig++%{_soversion}
Summary: C++ API of libconfig
Group: System/Libraries
@@ -77,25 +66,35 @@ string parsing in application code.
This package contains the shared libraries for libconfig.
%package -n libconfig++-devel
Summary: C++ bindings development files for libconfig
%package devel
Summary: Headers for libconfig
Group: Development/Languages/C and C++
Requires: libconfig%{_soversion} = %{version}
Requires: libconfig++%{_soversion} = %{version}
Requires: libconfig-devel = %{version}
Recommends: libconfig-doc = %{version}
Obsoletes: libconfig++-devel < %{version}-%{release}
Provides: libconfig++-devel = %{version}-%{release}
%description -n libconfig++-devel
%description devel
libconfig is a library for manipulating structured configuration
files. The supported file format is more compact and more readable
than XML. Unlike XML, it is type-aware, so it is not necessary to do
string parsing in application code.
This package contains the C++ bindings development files.
This package contains the headers and cmake files for both
the C and C++ APIs.
%prep
%autosetup -p1
%if 0%{?suse_version} >= 1600
%patch -P 1 -R -p1
%endif
%build
if ! test -f configure; then
autoreconf -fi
fi
export CFLAGS="%{optflags} -std=gnu11"
%configure \
--disable-silent-rules \
--disable-static
@@ -109,10 +108,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%check
%make_build check
%post -n libconfig%{_soversion} -p /sbin/ldconfig
%postun -n libconfig%{_soversion} -p /sbin/ldconfig
%post -n libconfig++%{_soversion} -p /sbin/ldconfig
%postun -n libconfig++%{_soversion} -p /sbin/ldconfig
%ldconfig_scriptlets -n libconfig%{_soversion}
%ldconfig_scriptlets -n libconfig++%{_soversion}
%files -n libconfig%{_soversion}
%license COPYING*
@@ -121,31 +118,21 @@ find %{buildroot} -type f -name "*.la" -delete -print
%files -n libconfig++%{_soversion}
%license COPYING*
%doc AUTHORS README
%{_libdir}/libconfig++.so.*
%files devel
%doc ChangeLog TODO
%{_includedir}/libconfig.h
%doc AUTHORS ChangeLog README TODO
%{_includedir}/libconfig*
%{_libdir}/libconfig.so
%{_libdir}/pkgconfig/libconfig.pc
%{_libdir}/libconfig++.so
%{_libdir}/pkgconfig/*.pc
%{_infodir}/libconfig*
%{_libdir}/cmake/
%post -n libconfig++-devel
%post devel
%install_info --info-dir=%{_infodir} %{_infodir}/libconfig.info%{ext_info}
%postun -n libconfig++-devel
%postun devel
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libconfig.info%{ext_info}
%files -n libconfig++-devel
%doc ChangeLog TODO
%{_includedir}/libconfig.h++
%{_libdir}/libconfig++.so
%{_libdir}/pkgconfig/libconfig++.pc
%{_infodir}/libconfig.info%{?ext_info}
%dir %{_libdir}/cmake
%dir %{_libdir}/cmake/libconfig
%dir %{_libdir}/cmake/libconfig++
%{_libdir}/cmake/libconfig++/libconfig++Config.cmake
%{_libdir}/cmake/libconfig/libconfigConfig.cmake
%changelog

3
v1.8.1.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e95798d2992a66ecd547ce3651d7e10642ff2211427c43a7238186ff4c372627
size 1726710