CBL-Mariner/SPECS/libconfuse/libconfuse.spec

70 строки
1.7 KiB
Plaintext

Summary: Configuration file parser library
Name: libconfuse
Version: 3.3
Release: 2%{?dist}
License: ISC
Vendor: Microsoft Corporation
Distribution: Mariner
Group: Development/Libraries
URL: https://github.com/libconfuse/libconfuse
Source0: https://github.com/libconfuse/libconfuse/releases/download/v%{version}/confuse-%{version}.tar.gz
Patch0: CVE-2022-40320.patch
BuildRequires: gcc
BuildRequires: make
%description
libConfuse is a configuration file parser library written in C.
It supports sections and (lists of) values, as well as other features
such as single/double quoted strings, environment variable expansion,
functions and nested include statements. Values can be strings,
integers, floats, booleans, and sections.
%package devel
Summary: Development headers for libconfuse.
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
%{summary}
%prep
%autosetup -p1 -n confuse-%{version}
%build
%configure
%make_build
%check
make check
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%{_libdir}/*.so*
%files devel
%license LICENSE
%doc README.md
%exclude %{_libdir}/libconfuse.a
%exclude %{_datadir}/locale
%{_docdir}
%{_includedir}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libconfuse.pc
%changelog
* Thu Dec 08 2022 Henry Beberman <henry.beberman@microsoft.com> 3.3-2
- Apply upstream patch for CVE-2022-40320
- Add check section
* Mon Feb 08 2021 Henry Beberman <henry.beberman@microsoft.com> 3.3-1
- Add libconfuse spec
- License verified
- Original version for CBL-Mariner