Projects
home:Eustace:branches:Eulaceura:Factory
libconfuse
_service:obs_scm:libconfuse.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:libconfuse.spec of Package libconfuse
Name: libconfuse Version: 3.3 Release: 2 Summary: A configuration file parser library License: ISC URL: https://github.com/martinh/libconfuse Source0: https://github.com/martinh/libconfuse/releases/download/v%{version}/confuse-%{version}.tar.gz Patch0: CVE-2022-40320.patch BuildRequires: gcc check-devel, pkgconfig perl-interpreter make %description libConfuse is a configuration file parser library, licensed under the terms of the ISC license, and written in C. It supports sections and (lists of) values (strings, integers, floats, booleans or other sections), as well as some other features (such as single/double-quoted strings, environment variable expansion, functions and nested include statements). It makes it very easy to add configuration file capability to a program using a simple API. The goal of libConfuse is not to be the configuration file parser library with a gazillion of features. Instead, it aims to be easy to use and quick to integrate with your code. %package devel Summary: Development files for %{name} Requires: %{name} = %{version}-%{release} pkgconfig %description devel Development files for %{name}. %prep %setup -q -n confuse-%{version} perl -pi.orig -e 's|confuse.h|../src/confuse.h|g' tests/check_confuse.c %patch0 -p0 %build %configure --enable-shared --disable-static make %{?_smp_mflags} AM_CFLAGS="-Wall -Wextra" %check make check %install make install DESTDIR=$RPM_BUILD_ROOT rm -f $RPM_BUILD_ROOT%{_libdir}/*.la mkdir -p $RPM_BUILD_ROOT%{_mandir}/man3/ cp -p doc/man/man3/*.3 $RPM_BUILD_ROOT%{_mandir}/man3/ mkdir -p ex2/examples cp -p examples/{ftpconf.c,ftp.conf,simple.c,simple.conf,reread.c,reread.conf} \ ex2/examples/ rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/confuse %find_lang confuse %ldconfig_scriptlets %files -f confuse.lang %license LICENSE %doc AUTHORS README.md %doc doc/html %{_libdir}/libconfuse.so.2* %{_mandir}/man?/*.* %files devel %doc ex2/examples %{_includedir}/confuse.h %{_libdir}/libconfuse.so %{_libdir}/pkgconfig/libconfuse.pc %changelog * Fri Sep 16 2022 panyanshuang<panyanshuang@ncti-gba.cn> - 3.3-2 - Fix CVE-2022-40320 * Wed Apr 14 2021 chengzihan <chengzihan2@huawei.com> - 3.3-1 - package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2