Группа :: Система/Библиотеки
Пакет: libconfig
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%def_enable static
Name: libconfig
Version: 1.5
Release: alt2
Summary: C/C++ Configuration File Library
License: LGPLv2.1+
Group: System/Libraries
Url: http://www.hyperrealm.com/main.php?s=libconfig
Source: %name-%version.tar
# Automatically added by buildreq on Sat Oct 08 2011
# optimized out: libstdc++-devel
BuildRequires: flex gcc-c++
# explicitly added texinfo for info files
BuildRequires: texinfo
%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 thus 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 devel
Summary: Header files for %name
Group: Development/Other
Requires: %name = %version-%release
%description devel
Header files for %name library.
%package c++
Summary: C++ Configuration File Library
Group: System/Libraries
# doesn't require base, common code included in library
%description c++
libconfig++ is the C++ binding for libconfig library.
%package c++-devel
Summary: Header files for libconfig++ library
Group: Development/Other
Requires: %name-c++ = %version-%release
Requires: %name-devel = %version-%release
Requires: libstdc++-devel
%description c++-devel
Header files for libconfig++ library.
%if_enabled static
%package devel-static
Summary: Static library files for %name
Group: Development/Other
Requires: %name-devel = %version-%release
Requires: glibc-devel-static
%description devel-static
Static library files for %name.
%package c++-devel-static
Summary: Static library files for libconfig++
Group: Development/Other
Requires: %name-c++-devel = %version-%release
Requires: libstdc++-devel-static
%description c++-devel-static
Static library files for libconfig++.
%endif
%prep
%setup
rm -rf examples/Makefile*
rm -rf examples/*/Makefile*
rm -rf examples/*/*.vcproj
sed -i '/examples.*Makefile/d' configure.ac
%autoreconf
%build
%configure \
%{subst_enable static} \
--disable-examples
%make_build
%install
%makeinstall_std
%files
%doc AUTHORS ChangeLog README NEWS TODO
%_libdir/libconfig.so.*
#_bindir/libconfig_tests
%files devel
%doc examples/
%_libdir/libconfig.so
%_includedir/libconfig.h
%_pkgconfigdir/libconfig.pc
%_infodir/libconfig.info*
%files c++
%_libdir/libconfig++.so.*
%files c++-devel
%_libdir/libconfig++.so
%_includedir/libconfig.h++
%_pkgconfigdir/libconfig++.pc
%if_enabled static
%files devel-static
%_libdir/libconfig.a
%files c++-devel-static
%_libdir/libconfig++.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
Name: libconfig
Version: 1.5
Release: alt2
Summary: C/C++ Configuration File Library
License: LGPLv2.1+
Group: System/Libraries
Url: http://www.hyperrealm.com/main.php?s=libconfig
Source: %name-%version.tar
# Automatically added by buildreq on Sat Oct 08 2011
# optimized out: libstdc++-devel
BuildRequires: flex gcc-c++
# explicitly added texinfo for info files
BuildRequires: texinfo
%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 thus 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 devel
Summary: Header files for %name
Group: Development/Other
Requires: %name = %version-%release
%description devel
Header files for %name library.
%package c++
Summary: C++ Configuration File Library
Group: System/Libraries
# doesn't require base, common code included in library
%description c++
libconfig++ is the C++ binding for libconfig library.
%package c++-devel
Summary: Header files for libconfig++ library
Group: Development/Other
Requires: %name-c++ = %version-%release
Requires: %name-devel = %version-%release
Requires: libstdc++-devel
%description c++-devel
Header files for libconfig++ library.
%if_enabled static
%package devel-static
Summary: Static library files for %name
Group: Development/Other
Requires: %name-devel = %version-%release
Requires: glibc-devel-static
%description devel-static
Static library files for %name.
%package c++-devel-static
Summary: Static library files for libconfig++
Group: Development/Other
Requires: %name-c++-devel = %version-%release
Requires: libstdc++-devel-static
%description c++-devel-static
Static library files for libconfig++.
%endif
%prep
%setup
rm -rf examples/Makefile*
rm -rf examples/*/Makefile*
rm -rf examples/*/*.vcproj
sed -i '/examples.*Makefile/d' configure.ac
%autoreconf
%build
%configure \
%{subst_enable static} \
--disable-examples
%make_build
%install
%makeinstall_std
%files
%doc AUTHORS ChangeLog README NEWS TODO
%_libdir/libconfig.so.*
#_bindir/libconfig_tests
%files devel
%doc examples/
%_libdir/libconfig.so
%_includedir/libconfig.h
%_pkgconfigdir/libconfig.pc
%_infodir/libconfig.info*
%files c++
%_libdir/libconfig++.so.*
%files c++-devel
%_libdir/libconfig++.so
%_includedir/libconfig.h++
%_pkgconfigdir/libconfig++.pc
%if_enabled static
%files devel-static
%_libdir/libconfig.a
%files c++-devel-static
%_libdir/libconfig++.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь