From 1ecfe2e3300a0242b8441e24bfbc475456982d6dd74048a1b4a2b03f81adab93 Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Sun, 26 Feb 2012 12:15:29 +0000 Subject: [PATCH] Accepting request 106979 from home:plater New package libconfig is needed to build ffado svn which is needed to fix bnc#747391 and bnc#736115 OBS-URL: https://build.opensuse.org/request/show/106979 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libconfig?expand=0&rev=1 --- .gitattributes | 23 +++++ .gitignore | 1 + libconfig-1.4.8.tar.bz2 | 3 + libconfig-rpmlintrc | 10 ++ libconfig.changes | 72 +++++++++++++++ libconfig.spec | 196 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 305 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 libconfig-1.4.8.tar.bz2 create mode 100644 libconfig-rpmlintrc create mode 100644 libconfig.changes create mode 100644 libconfig.spec 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/libconfig-1.4.8.tar.bz2 b/libconfig-1.4.8.tar.bz2 new file mode 100644 index 0000000..a940dab --- /dev/null +++ b/libconfig-1.4.8.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b536a51f822507026d5e0fa278a8aac6b282c2685bf2f375dc48c4ae4da7c0b1 +size 531972 diff --git a/libconfig-rpmlintrc b/libconfig-rpmlintrc new file mode 100644 index 0000000..69abd0b --- /dev/null +++ b/libconfig-rpmlintrc @@ -0,0 +1,10 @@ +# This line is mandatory to access the configuration functions +from Config import * + +addFilter("source-or-patch-not-bzipped") +addFilter("shared-lib-calls-exit") + +# libconfigduo +#addFilter("no-binary") +addFilter("shlib-policy-missing-lib") +addFilter("shlib-policy-nonversioned-dir") \ No newline at end of file diff --git a/libconfig.changes b/libconfig.changes new file mode 100644 index 0000000..cb75a82 --- /dev/null +++ b/libconfig.changes @@ -0,0 +1,72 @@ +------------------------------------------------------------------- +Sat Feb 25 07:03:32 UTC 2012 - davejplater@gmail.com + +- Renamed package to libconfig and updated to 1.4.8 +- Upstream changes : + *tests/Makefile.am - marked 'libconfig_tests' as non-installable + *lib/scanner.l, lib/grammar.y - grammar changes to make trailing + semicolons optional (and to allow commas as an alternative) + *lib/libconfig.c - bugfixes for lack of auto-conversion handling in + the config_lookup*() functions (reported by Feng Yu), and some + fixes for compiler warnings + *lib/Makefile.am - bump .so version + *configure.ac - bump version, add '-Wno-unused-parameter' compiler + switch to disable "unused parameter" warnings + *doc/libconfig.texi - documentation updates; added a chapter that + calls attention to the bundled example programs + *lib/libconfig.h, lib/libconfig.h++ - bump versions + *doc/libconfig.texi - fixed typo; updated docs + *TODO - updated list + *lib/libconfig.c, lib/libconfig.h, lib/libconfigcpp.c++, + lib/libconfig.h++ - added config{get,set}_default_format(), + Config::{get,set}DefaultFormat() + *lib/libconfig.c - fixed memory leak when encountering a parse error + in an @include'd file + *lib/libconfig.h, lib/libconfig.h++, lib/Makefile.am, configure.ac, + doc/libconfig.texi - bump versions + *doc/libconfig.texi - documentation updates + *lib/libconfig.c, lib/libconfigcpp.c++, lib/libconfig.h, + lib/libconfig.h++, lib/wincompat.h, lib/scanctx.c - added support + for specifying an include directory + *m4/* - added local m4 directory + *contrib/* - added user-contributed files +- See /usr/share/doc/packages/libconfig/ChangeLog for more. + +------------------------------------------------------------------- +Fri Oct 1 21:10:11 UTC 2010 - davejplater@gmail.com + +- Created libconfig++ from the pacman source rpm and adapted the spec + file to openSUSE also transfered the changes to a changes file + +------------------------------------------------------------------- +* Wed May 05 2010 Toni Graffy - 1.4.5-0.pm.1 +- update to 1.4.5 +- This release includes a bugfix and some code cleanup to eliminate compiler warnings. +------------------------------------------------------------------- +* Tue Apr 13 2010 Toni Graffy - 1.4.4-0.pm.1 +- update to 1.4.4 +- new SO-name ==> libconfig9 and libconfig++9 +- This release fixes several build issues. +------------------------------------------------------------------- +* Tue Feb 15 2010 Toni Graffy - 1.4.3-0.pm.1 +- update to 1.4.3 +- This release fixes a problem with parsing indented '@include' directives. +------------------------------------------------------------------- +* Fri Jan 29 2010 Toni Graffy - 1.4.2-0.pm.1 +- update to 1.4.2 +- new SO-name ==> libconfig8 and libconfig++8 (!!!) +- removed static libs +- This release fixes some problems with the ParseException class. +------------------------------------------------------------------- +* Fri Jan 01 2010 Toni Graffy - 1.4.1-0.pm.1 +- update to 1.4.1 +- This release fixes a crash when reading a configuration from a string, + and includes a few minor build improvements. +------------------------------------------------------------------- +* Fri Nov 13 2009 Toni Graffy - 1.4-0.pm.1 +- update to 1.4 +- new SO-name ==> libconfig9 and libconfig++9 +- This release includes some minor bugfixes +------------------------------------------------------------------- +* Sat Feb 21 2009 Toni Graffy - 1.3.2-0.pm.1 +- initial release 1.3.2 diff --git a/libconfig.spec b/libconfig.spec new file mode 100644 index 0000000..613fb8a --- /dev/null +++ b/libconfig.spec @@ -0,0 +1,196 @@ +# +# spec file for package libconfig++ (Version 1.4.5) +# +# Copyright (c) 2010 SUSE LINUX Products 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/ +# + +# norootforbuild + +%define _prefix /usr +%define _libname libconfig +%define _SO_nr 9 + +Name: libconfig +Summary: A simple library for manipulating structured configuration files +Version: 1.4.8 +Release: 0 +License: LGPL-2.1+ +Group: System/Libraries +URL: http://www.hyperrealm.com/main.php?s=libconfig +# http://www.hyperrealm.com/libconfig/ +Source: %{name}-%{version}.tar.bz2 +Source90: %{name}-rpmlintrc +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Requires(pre): info +BuildRequires: bison +BuildRequires: flex +BuildRequires: gcc-c++ +BuildRequires: texinfo +BuildRequires: texlive-latex +BuildRequires: texlive +BuildRequires: pkg-config fdupes + +%description +Libconfig is a simple library for manipulating structured +configuration files, like this one: test.cfg. This file format +is more compact and more readable than XML. And unlike XML, it +is type-aware, so it is not necessary to do string parsing in +application code. + +Libconfig is very compact — just 38K for the stripped C shared +library (less than one-fourth the size of the expat XML parser +library) and 66K for the stripped C++ shared library. This makes +it well-suited for memory-constrained systems like handheld +devices. + +The library includes bindings for both the C and C++ languages. +It works on POSIX-compliant UNIX systems (GNU/Linux, Mac OS X, +Solaris, FreeBSD) and Windows (2000, XP and later). + +%package -n %{_libname}%{_SO_nr} +Summary: Shared libraries for libconfig +Group: System/Libraries + +%description -n %{_libname}%{_SO_nr} +Libconfig is a simple library for manipulating structured +configuration files, like this one: test.cfg. This file format +is more compact and more readable than XML. And unlike XML, it +is type-aware, so it is not necessary to do string parsing in +application code. + +This package contains the shared libraries for libconfig. + +%package -n %{_libname}-devel +Summary: C-Bindings development files for libconfig +Group: Development/Languages/C and C++ +Requires: %{_libname}%{_SO_nr} = %{version} + +%description -n %{_libname}-devel +Libconfig is a simple library for manipulating structured +configuration files, like this one: test.cfg. This file format +is more compact and more readable than XML. And unlike XML, it +is type-aware, so it is not necessary to do string parsing in +application code. + +This package contains the C-bindings development files. + +%package -n %{_libname}++%{_SO_nr} +Summary: Shared libraries for libconfig +Group: System/Libraries + +%description -n %{_libname}++%{_SO_nr} +Libconfig is a simple library for manipulating structured +configuration files, like this one: test.cfg. This file format +is more compact and more readable than XML. And unlike XML, it +is type-aware, so it is not necessary to do string parsing in +application code. + +This package contains the shared libraries for libconfig. + +%package -n %{_libname}++-devel +Summary: C++-Bindings development files for libconfig +Group: Development/Languages/C and C++ +Requires: %{_libname}++%{_SO_nr} = %{version} +Requires: %{_libname}-devel = %{version} + +%description -n %{_libname}++-devel +Libconfig is a simple library for manipulating structured +configuration files, like this one: test.cfg. This file format +is more compact and more readable than XML. And unlike XML, it +is type-aware, so it is not necessary to do string parsing in +application code. + +This package contains the C++-bindings development files. + +%package doc +Summary: Documentation files for libconfig +Group: Documentation/Other + +%description doc +Documentation files for package libconfig. + +%prep +%setup -q + +%build +%configure + +%__make pdf +%__make html +make %{?_smp_flags} + +%install +%makeinstall + +# clean up +pushd examples + %__make clean + find . -name '*.vcproj' | xargs %__rm +popd +%__rm %{buildroot}%{_libdir}/*.a +%__rm %{buildroot}%{_libdir}/*.la + +for i in `find . -name '.deps' -print`; do \ +rm -rfv ${i}; done + +%fdupes -s examples/ + +%fdupes -s %{buildroot}%{_docdir} + +%post -n %{_libname}%{_SO_nr} -p /sbin/ldconfig + +%postun -n %{_libname}%{_SO_nr} -p /sbin/ldconfig + +%post -n %{_libname}++%{_SO_nr} -p /sbin/ldconfig + +%postun -n %{_libname}++%{_SO_nr} -p /sbin/ldconfig + +%post doc +%install_info --info-dir=%{_infodir} %{_infodir}/libconfig.info.gz + +%postun doc +%install_info_delete --info-dir=%{_infodir} %{_infodir}/libconfig.info.gz + +%files +%defattr(-,root,root) +%doc AUTHORS ChangeLog COPYING* README TODO +%doc examples + +%files doc +%defattr(-,root,root) +%doc doc/*.html +%doc doc/*.pdf +%{_infodir}/%{_libname}.info.gz + +%files -n %{_libname}%{_SO_nr} +%defattr(-,root,root) +%{_libdir}/libconfig.so.* + +%files -n %{_libname}++%{_SO_nr} +%defattr(-,root,root) +%{_libdir}/libconfig++.so.* + +%files -n %{_libname}-devel +%defattr(-,root,root) +%{_includedir}/%{_libname}.h +%{_libdir}/%{_libname}.so +%{_libdir}/pkgconfig/%{_libname}.pc + +%files -n %{_libname}++-devel +%defattr(-,root,root) +%{_includedir}/%{_libname}.h++ +%{_libdir}/%{_libname}++.so +%{_libdir}/pkgconfig/%{_libname}++.pc + +%changelog