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
This commit is contained in:
Dave Plater 2012-02-26 12:15:29 +00:00 committed by Git OBS Bridge
commit 1ecfe2e330
6 changed files with 305 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

3
libconfig-1.4.8.tar.bz2 Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b536a51f822507026d5e0fa278a8aac6b282c2685bf2f375dc48c4ae4da7c0b1
size 531972

10
libconfig-rpmlintrc Normal file
View File

@ -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")

72
libconfig.changes Normal file
View File

@ -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 <toni@links2linux.de> - 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 <toni@links2linux.de> - 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 <toni@links2linux.de> - 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 <toni@links2linux.de> - 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 <toni@links2linux.de> - 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 <toni@links2linux.de> - 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 <toni@links2linux.de> - 1.3.2-0.pm.1
- initial release 1.3.2

196
libconfig.spec Normal file
View File

@ -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