Name: libcfg+ Version: 0.6.2 Release: 6mamba Summary: A C library that features multi- command line and configuration file parsing Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://platon.sk/projects/libcfg+ Source: http://platon.sk/upload/_projects/00003/%{name}-%{version}.tar.gz License: GPL BuildRequires: docbook >= 4.1.2 BuildRoot: %{_tmppath}/%{name}-%{version}-root %description libcfg+ is a C library that features multi- command line and configuration file parsing. It is possible to set up various special properties such as quoting characters, deliminator strings, file comment prefixes, multi-line postfixes, and more. It supports many data types such as booleans, integers, decimal numbers, strings with many additional data type flags (such as multiple values for a single option). %package devel Group: Development/Libraries Summary: Static libraries and headers for %{name} Requires: %{name} = %{version} %description devel libcfg+ is a C library that features multi- command line and configuration file parsing. It is possible to set up various special properties such as quoting characters, deliminator strings, file comment prefixes, multi-line postfixes, and more. It supports many data types such as booleans, integers, decimal numbers, strings with many additional data type flags (such as multiple values for a single option). This package contains static libraries and header files need for development. %prep %setup -q %build %configure %make \ CFLAGS="%{optflags} -fpic -fPIC" \ LDFLAGS="-soname libcfg+.so.0" \ CC="%{_host}-gcc" \ AR="%{_host}-ar" \ LD="%{_host}-ld" %install [ "%{buildroot}" != / ] && rm -rf %{buildroot} %makeinstall # fixup strange shared library permissions chmod 755 %{buildroot}%{_libdir}/*.so* ln -s libcfg+.so.%{version} %{buildroot}%{_libdir}/libcfg+.so.0 %clean [ "%{buildroot}" != / ] && rm -rf %{buildroot} %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %{_libdir}/*.so.* %doc AUTHORS COPYING %files devel %defattr(-,root,root) %{_includedir}/*.h %{_includedir}/platon/*.h %{_libdir}/*.a %{_libdir}/*.so %{_mandir}/man3/* %doc ChangeLog README TODO %changelog * Mon Apr 16 2012 Silvan Calarco 0.6.2-6mamba - set soname to prevent from linking to libcfg+.so * Sat Jul 26 2008 Silvan Calarco 0.6.2-5mamba - specfile updated * Wed May 10 2006 Stefano Cotta Ramusino 0.6.2-4qilnx - fixed strange shared library permissions * Wed Feb 15 2006 Davide Madrisan 0.6.2-3qilnx - build libraries in PIC mode * Tue Sep 14 2004 Davide Madrisan 0.6.2-2qilnx - moved libcfg+.so library from devel package to main package * Mon Sep 13 2004 Silvan Calarco 0.6.2-1qilnx - package created by autospec