commit d30c2aa83f50210c46ae23ccc8f1f577aff554ac77cff917924a77b64c3ffdc6 Author: Ismail Dönmez Date: Mon Aug 6 13:54:34 2018 +0000 Accepting request 627694 from home:kbabioch:libconfuse This is a properly named / split library package for libconfuse, which is a replacement for libconfuse0. A subsequent delete request is required, which I will also submit. OBS-URL: https://build.opensuse.org/request/show/627694 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libconfuse?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/confuse-3.2.1.tar.xz b/confuse-3.2.1.tar.xz new file mode 100644 index 0000000..7f373f2 --- /dev/null +++ b/confuse-3.2.1.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:23c63272baf2ef4e2cbbafad2cf57de7eb81f006ec347c00b954819824add25e +size 470260 diff --git a/libconfuse.changes b/libconfuse.changes new file mode 100644 index 0000000..e797d89 --- /dev/null +++ b/libconfuse.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Aug 2 09:36:08 UTC 2018 - kbabioch@suse.com + +- Initial packaging of version 3.2.1: diff --git a/libconfuse.spec b/libconfuse.spec new file mode 100644 index 0000000..9e23bc0 --- /dev/null +++ b/libconfuse.spec @@ -0,0 +1,128 @@ +# +# spec file for package libconfuse +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%define library_name libconfuse2 +Name: libconfuse +Version: 3.2.1 +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 +BuildRequires: check-devel +BuildRequires: gcc-c++ +BuildRequires: gettext-devel +BuildRequires: libtool +BuildRequires: pkgconfig +BuildRequires: xz +Recommends: %{name}-lang + +%description +libConfuse is a configuration file parser library, licensed under the +terms of the LGPL, 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 -n %{library_name} +Summary: A configuration file parser library +Group: Development/Libraries/C and C++ + +%description -n %{library_name} +libConfuse is a configuration file parser library, licensed under the +terms of the LGPL, 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 +Summary: The development files for libconfuse +Group: Development/Libraries/C and C++ +Requires: %{library_name} = %{version} + +%description devel +libConfuse is a configuration file parser library, licensed under the +terms of the LGPL, 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 holds the development files for libconfuse. + +%lang_package + +%prep +%setup -q -n confuse-%{version} + +%build +%configure --enable-shared --disable-static +make %{?_smp_mflags} + +%install +%make_install +rm -rf %{buildroot}%{_datadir}/doc +%find_lang confuse +install -Dd %{buildroot}%{_mandir} +cp -Rv doc/man/man3/ %{buildroot}%{_mandir} +# clean up unneeded files +make -C examples clean +rm -rf examples/.deps/ examples/Makefile* +rm %{buildroot}%{_libdir}/libconfuse.la + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig +%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} + +%files lang -f confuse.lang + +%changelog