From bb892668dafaf75d27af1c97c0153c2309bf2c5f Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 04:02:01 +0100 Subject: [PATCH] legacy package [release 2.8-2mamba;Mon Aug 27 2018] --- README.md | 3 ++ libconfuse-2.6-lexer_noinput.patch | 11 ++++ libconfuse0.spec | 82 ++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 libconfuse-2.6-lexer_noinput.patch create mode 100644 libconfuse0.spec diff --git a/README.md b/README.md index c042f18..f9fc836 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # libconfuse0 +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. libConfuse was called libcfg before, but was changed to not confuse with other similar libraries. + diff --git a/libconfuse-2.6-lexer_noinput.patch b/libconfuse-2.6-lexer_noinput.patch new file mode 100644 index 0000000..5185de1 --- /dev/null +++ b/libconfuse-2.6-lexer_noinput.patch @@ -0,0 +1,11 @@ +diff -Nru confuse-2.6.orig/src/lexer.l confuse-2.6/src/lexer.l +--- confuse-2.6.orig/src/lexer.l 2007-10-13 17:12:20.000000000 +0200 ++++ confuse-2.6/src/lexer.l 2009-07-06 12:51:31.531656794 +0200 +@@ -63,6 +63,7 @@ + %} + + %option noyywrap ++%option noinput + + /* start conditions + */ diff --git a/libconfuse0.spec b/libconfuse0.spec new file mode 100644 index 0000000..d05cd09 --- /dev/null +++ b/libconfuse0.spec @@ -0,0 +1,82 @@ +Name: libconfuse0 +Version: 2.8 +Release: 2mamba +Summary: A configuration file parser library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: http://www.nongnu.org/confuse/ +Source: https://github.com/martinh/libconfuse.git/v%{version}/libconfuse-%{version}.tar.bz2 +#Source: http://savannah.nongnu.org/download/confuse/confuse-%{version}.tar.gz +Patch0: libconfuse-2.6-lexer_noinput.patch +License: BSD +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +## AUTOBUILDREQ-END +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%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. libConfuse was called libcfg before, but was changed to not confuse with other similar libraries. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +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. libConfuse was called libcfg before, but was changed to not confuse with other similar libraries. + +This package contains static libraries and header files need for development. + +%prep +%setup -q -n libconfuse-%{version} +%patch0 -p1 + +%build +./autogen.sh +%configure --enable-shared +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +%find_lang confuse + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_libdir}/libconfuse.so.* +%doc AUTHORS + +%files devel -f confuse.lang +%defattr(-,root,root) +%dir %{_includedir} +%{_includedir}/*.h +%{_libdir}/libconfuse.a +%{_libdir}/libconfuse.la +%{_libdir}/libconfuse.so +%{_libdir}/pkgconfig/*.pc +%dir %{_docdir}/confuse +%{_docdir}/confuse/* + +%changelog +* Mon Aug 27 2018 Silvan Calarco 2.8-2mamba +- legacy package + +* Fri Jan 29 2016 Silvan Calarco 2.8-1mamba +- update to 2.8 + +* Sun Dec 02 2012 Automatic Build System 2.7-1mamba +- update to 2.7 + +* Mon Jul 06 2009 Silvan Calarco 2.6-1mamba +- package created by autospec