2018-08-06 13:54:34 +00:00
|
|
|
#
|
|
|
|
# spec file for package libconfuse
|
|
|
|
#
|
2022-09-12 14:58:28 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2018-08-06 13:54:34 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
Accepting request 816964 from home:jubalh:branches:devel:libraries:c_c++
- Update to 3.3:
Changes:
* Support building static library on Windows
* Support for fmemopen() in Windows UWP applications
* Support for cfg_getopt(cfg, "sub=name|option"), i.e., get an
option from a sub-section, by Peter Rosin
* Support for CFGF_MODIFIED flag, to detect changes to settings
in memory after parsing, by Peter Rosin
* Support for filtering out settings when printing, by Peter Rosin
* Support for dynamic key=value sections with no pre-runtime
knowledge of setting names, useful for environment variables
and similar
* Updated German translation, by Chris Leick
Fixes:
* Fix loop-forever bug found by Christian Reitter; a .conf file
containing only "=", will cause even the simplest parser to loop
forever in internal function cfg_getopt_secidx()
* Issue #113: Fail to build strdup() replacement
* Issue #118: Fix build on Windows, missing fmemopen() replacement
* Issue #120: Handle shell and C++ comments with no space separator
* Issue #125: Drop developer debug msg QSTR: ...
* Issue #131: Fix CFG_PTR_CB() regression, segfaults when, e.g.,
cfg_free() is called. Found and fixed by Peter Rosin
* Issue #135: Revert CFGF_RESET flag if cfg_setmulti() family fail
* Issue #137: Memory leak in cfg_setopt() for PTR options
OBS-URL: https://build.opensuse.org/request/show/816964
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libconfuse?expand=0&rev=9
2020-06-30 07:42:46 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2018-08-06 13:54:34 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define library_name libconfuse2
|
|
|
|
Name: libconfuse
|
Accepting request 816964 from home:jubalh:branches:devel:libraries:c_c++
- Update to 3.3:
Changes:
* Support building static library on Windows
* Support for fmemopen() in Windows UWP applications
* Support for cfg_getopt(cfg, "sub=name|option"), i.e., get an
option from a sub-section, by Peter Rosin
* Support for CFGF_MODIFIED flag, to detect changes to settings
in memory after parsing, by Peter Rosin
* Support for filtering out settings when printing, by Peter Rosin
* Support for dynamic key=value sections with no pre-runtime
knowledge of setting names, useful for environment variables
and similar
* Updated German translation, by Chris Leick
Fixes:
* Fix loop-forever bug found by Christian Reitter; a .conf file
containing only "=", will cause even the simplest parser to loop
forever in internal function cfg_getopt_secidx()
* Issue #113: Fail to build strdup() replacement
* Issue #118: Fix build on Windows, missing fmemopen() replacement
* Issue #120: Handle shell and C++ comments with no space separator
* Issue #125: Drop developer debug msg QSTR: ...
* Issue #131: Fix CFG_PTR_CB() regression, segfaults when, e.g.,
cfg_free() is called. Found and fixed by Peter Rosin
* Issue #135: Revert CFGF_RESET flag if cfg_setmulti() family fail
* Issue #137: Memory leak in cfg_setopt() for PTR options
OBS-URL: https://build.opensuse.org/request/show/816964
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libconfuse?expand=0&rev=9
2020-06-30 07:42:46 +00:00
|
|
|
Version: 3.3
|
2018-08-06 13:54:34 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A configuration file parser library
|
|
|
|
License: LGPL-2.1-or-later
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
URL: http://www.nongnu.org/confuse/
|
|
|
|
Source: https://github.com/martinh/libconfuse/releases/download/v%{version}/confuse-%{version}.tar.xz
|
2022-09-12 14:58:28 +00:00
|
|
|
# PATCH-FIX_UPSTREAM
|
|
|
|
Patch0: libconfuse-d73777c2c3566fb2647727bb56d9a2295b81669b.patch
|
2018-08-06 13:54:34 +00:00
|
|
|
BuildRequires: check-devel
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: gettext-devel
|
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2018-10-12 15:20:49 +00:00
|
|
|
BuildRequires: rpm-config-SUSE >= 0.g8
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%description
|
2018-08-06 18:18:02 +00:00
|
|
|
libConfuse is a configuration file parser library. It supports
|
|
|
|
sections and (lists of) values (strings, integers, floats, booleans
|
|
|
|
or other sections), as well as single/double-quoted strings,
|
2018-08-06 13:54:34 +00:00
|
|
|
environment variable expansion, functions and nested include
|
2018-08-06 18:18:02 +00:00
|
|
|
statements.
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%package -n %{library_name}
|
|
|
|
Summary: A configuration file parser library
|
2018-08-06 18:18:02 +00:00
|
|
|
Group: System/Libraries
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%description -n %{library_name}
|
2018-08-06 18:18:02 +00:00
|
|
|
libConfuse is a configuration file parser library. It supports
|
|
|
|
sections and (lists of) values (strings, integers, floats, booleans
|
|
|
|
or other sections), as well as single/double-quoted strings,
|
2018-08-06 13:54:34 +00:00
|
|
|
environment variable expansion, functions and nested include
|
2018-08-06 18:18:02 +00:00
|
|
|
statements.
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: The development files for libconfuse
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{library_name} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
2018-08-06 18:18:02 +00:00
|
|
|
libConfuse is a configuration file parser library. It supports
|
|
|
|
sections and (lists of) values (strings, integers, floats, booleans
|
|
|
|
or other sections), as well as single/double-quoted strings,
|
2018-08-06 13:54:34 +00:00
|
|
|
environment variable expansion, functions and nested include
|
2018-08-06 18:18:02 +00:00
|
|
|
statements.
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
This package holds the development files for libconfuse.
|
|
|
|
|
2018-10-12 15:20:49 +00:00
|
|
|
%lang_package -r %{library_name}
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%prep
|
2022-09-12 14:58:28 +00:00
|
|
|
%autosetup -n confuse-%{version} -p1
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --enable-shared --disable-static
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc
|
2018-10-12 09:10:59 +00:00
|
|
|
|
2018-08-06 13:54:34 +00:00
|
|
|
%find_lang confuse
|
|
|
|
install -Dd %{buildroot}%{_mandir}
|
|
|
|
cp -Rv doc/man/man3/ %{buildroot}%{_mandir}
|
2018-10-12 09:10:59 +00:00
|
|
|
|
2018-08-06 13:54:34 +00:00
|
|
|
# clean up unneeded files
|
|
|
|
make -C examples clean
|
|
|
|
rm -rf examples/.deps/ examples/Makefile*
|
|
|
|
rm %{buildroot}%{_libdir}/libconfuse.la
|
|
|
|
|
|
|
|
%post -n %{library_name} -p /sbin/ldconfig
|
|
|
|
%postun -n %{library_name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{library_name}
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md AUTHORS ChangeLog.md
|
|
|
|
%{_libdir}/libconfuse.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%doc doc/html/ doc/tutorial-html/ examples/
|
|
|
|
%{_libdir}/libconfuse.so
|
|
|
|
%{_libdir}/pkgconfig/libconfuse.pc
|
|
|
|
%{_includedir}/confuse.h
|
|
|
|
%{_mandir}/man3/*.3%{?ext_man}
|
|
|
|
|
2018-10-12 09:10:59 +00:00
|
|
|
%files -n %{name}-lang -f confuse.lang
|
2018-08-06 13:54:34 +00:00
|
|
|
|
|
|
|
%changelog
|