SHA256
3
0
forked from pool/libeconf
libeconf/libeconf.spec
Dominique Leuenberger d10f4de529 Accepting request 769722 from devel:kubic
- Update to version 0.3.5+git20200203.3144b69:
  * Release version 0.3.5
  * Use float.h instead of obsolete gnuism values.h
  * Remove gnuism (strdupa)
  * Check for empty value (NULL pointer) before calling strdup.
- Update to version 0.3.4+git20200121.febebf2:
  * Release version 0.3.4
  * Fix buffer overflow in econf_readDirs
  * Fix parsing of quoted strings, and values starting with delimiters
  * tests: add test for quoted strings
  * tests: tst-configdirs5: fix config dir paths

OBS-URL: https://build.opensuse.org/request/show/769722
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libeconf?expand=0&rev=6
2020-02-15 21:21:33 +00:00

83 lines
2.2 KiB
RPMSpec

#
# spec file for package libeconf
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define lname libeconf0
Name: libeconf
Version: 0.3.5+git20200203.3144b69
Release: 0
Summary: Enhanced config file parser ala systemd
License: LGPL-2.1-or-later
Group: Development/Libraries/C and C++
URL: https://github.com/openSUSE/libeconf
Source: libeconf-%{version}.tar.xz
Source2: baselibs.conf
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
%description
Enhanced config file parser, which merges config files placed
in several locations into one.
%package -n %{lname}
Summary: Enhanced config file parser ala systemd
Group: Development/Libraries/C and C++
%description -n %{lname}
Enhanced config file parser, which merges config files placed
in several locations into one.
%package devel
Summary: Development files for libeconf
Group: Development/Libraries/C and C++
Requires: %{lname} = %{version}
%description devel
This package contains all necessary include files and libraries needed
to develop applications that needs to read configuration files from
different locations.
%prep
%setup -q
%build
./autogen.sh
%configure --disable-static
%install
%make_install
rm -fv %{buildroot}%{_libdir}/libeconf.la
%check
make check
%post -n %{lname} -p /sbin/ldconfig
%postun -n %{lname} -p /sbin/ldconfig
%files -n %{lname}
%license LICENSE
%{_libdir}/libeconf.so.*
%files devel
%{_includedir}/*.h
%{_libdir}/libeconf.so
%{_libdir}/pkgconfig/libeconf.pc
%changelog