- Update to 1.7: * Redesigned the directory-include feature to avoid using platform-specific directory scanning code, and to fix a bug in the handling of nested includes. The application can now do its own directory scanning and/or wildcard expansion by registering an include function. * Added new CONFIG_OPTION_ALLOW_SCIENTIFIC_NOTATION to allow either %f or %g-style formatting for floating point values. * Improved the options APIs in both the C and C++ libraries. * Improved the automatic conversion between int and int64 values. * Fixed build errors caused by out-of-sync generated lexer and parser source files. * Added an API to clear an existing configuration. * Fixed a problem where a group or list could be added to an array. * Changed default float precision from 2 to 6. * Modified grammar to allow trailing commas in lists and arrays. * Removed logic that clipped negative values to 0 in (unsigned int) cast operator. * Updated manual and added a new chapter on other libconfig implementations and bindings. * Various internal code cleanup. * Fixed failing unit tests. * Upgraded VS2015 solution/project files to VS2017. - Use new project URL - sonum updated from 8 to 11 OBS-URL: https://build.opensuse.org/request/show/540745 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libconfig?expand=0&rev=19
174 lines
5.6 KiB
RPMSpec
174 lines
5.6 KiB
RPMSpec
#
|
|
# spec file for package libconfig
|
|
#
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
%define _soversion 11
|
|
Name: libconfig
|
|
Version: 1.7
|
|
Release: 0
|
|
Summary: A simple library for manipulating structured configuration files
|
|
License: LGPL-2.1+
|
|
Group: Development/Libraries/C and C++
|
|
Url: https://hyperrealm.github.io/libconfig
|
|
Source0: https://github.com/hyperrealm/libconfig/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
Source1: baselibs.conf
|
|
BuildRequires: autoconf
|
|
BuildRequires: automake
|
|
BuildRequires: bison
|
|
BuildRequires: fdupes
|
|
BuildRequires: flex
|
|
BuildRequires: gcc-c++
|
|
BuildRequires: libtool
|
|
BuildRequires: makeinfo
|
|
BuildRequires: pkgconfig
|
|
|
|
%description
|
|
Libconfig is a simple library for manipulating structured
|
|
configuration files, like this one: test.cfg. This file format
|
|
is more compact and more readable than XML. And unlike XML, it
|
|
is type-aware, so it is not necessary to do string parsing in
|
|
application code.
|
|
|
|
Libconfig is very compact — just 38K for the stripped C shared
|
|
library (less than one-fourth the size of the expat XML parser
|
|
library) and 66K for the stripped C++ shared library. This makes
|
|
it well-suited for memory-constrained systems like handheld
|
|
devices.
|
|
|
|
The library includes bindings for both the C and C++ languages.
|
|
It works on POSIX-compliant UNIX systems (GNU/Linux, Mac OS X,
|
|
Solaris, FreeBSD) and Windows (2000, XP and later).
|
|
|
|
%package -n libconfig%{_soversion}
|
|
Summary: Shared libraries for libconfig
|
|
Group: System/Libraries
|
|
|
|
%description -n libconfig%{_soversion}
|
|
Libconfig is a simple library for manipulating structured
|
|
configuration files, like this one: test.cfg. This file format
|
|
is more compact and more readable than XML. And unlike XML, it
|
|
is type-aware, so it is not necessary to do 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 simple library for manipulating structured
|
|
configuration files, like this one: test.cfg. This file format
|
|
is more compact and more readable than XML. And 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: Shared libraries for libconfig
|
|
Group: System/Libraries
|
|
|
|
%description -n libconfig++%{_soversion}
|
|
Libconfig is a simple library for manipulating structured
|
|
configuration files, like this one: test.cfg. This file format
|
|
is more compact and more readable than XML. And unlike XML, it
|
|
is type-aware, so it is not necessary to do string parsing in
|
|
application code.
|
|
|
|
This package contains the shared libraries for libconfig.
|
|
|
|
%package -n libconfig++-devel
|
|
Summary: C++-Bindings development files for libconfig
|
|
Group: Development/Languages/C and C++
|
|
Requires: libconfig++%{_soversion} = %{version}
|
|
Requires: libconfig-devel = %{version}
|
|
Recommends: libconfig-doc = %{version}
|
|
|
|
%description -n libconfig++-devel
|
|
Libconfig is a simple library for manipulating structured
|
|
configuration files, like this one: test.cfg. This file format
|
|
is more compact and more readable than XML. And 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.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
# remove autogenerated files
|
|
pushd lib > /dev/null
|
|
rm scanner.c scanner.h grammar.c grammar.h
|
|
popd > /dev/null
|
|
|
|
%build
|
|
autoreconf -fvi
|
|
%configure \
|
|
--disable-silent-rules \
|
|
--disable-static
|
|
make -j1
|
|
|
|
%install
|
|
%make_install
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
%fdupes -s %{buildroot}%{_docdir}
|
|
|
|
%check
|
|
./tests/libconfig_tests
|
|
|
|
%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
|
|
|
|
%files -n libconfig%{_soversion}
|
|
%doc AUTHORS COPYING* README
|
|
%{_libdir}/libconfig.so.*
|
|
|
|
%files -n libconfig++%{_soversion}
|
|
%doc AUTHORS COPYING* README
|
|
%{_libdir}/libconfig++.so.*
|
|
|
|
%files devel
|
|
%doc ChangeLog TODO
|
|
%{_includedir}/libconfig.h
|
|
%{_libdir}/libconfig.so
|
|
%{_libdir}/pkgconfig/libconfig.pc
|
|
|
|
%post -n libconfig++-devel
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libconfig.info%{ext_info}
|
|
|
|
%postun -n libconfig++-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
|