2012-02-26 13:15:29 +01:00
|
|
|
#
|
2012-02-27 16:50:50 +01:00
|
|
|
# spec file for package libconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
#
|
2012-02-27 16:50:50 +01:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-02-26 13:15:29 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
|
|
|
|
Name: libconfig
|
|
|
|
Version: 1.4.8
|
|
|
|
Release: 0
|
|
|
|
%define _soversion 9
|
|
|
|
Summary: A simple library for manipulating structured configuration files
|
|
|
|
License: LGPL-2.1+
|
|
|
|
Group: System/Libraries
|
|
|
|
Url: http://www.hyperrealm.com/main.php?s=libconfig
|
|
|
|
Source: http://www.hyperrealm.com/libconfig/libconfig-%{version}.tar.gz
|
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
BuildRequires: texinfo
|
|
|
|
BuildRequires: texlive
|
|
|
|
BuildRequires: texlive-latex
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
Requires(pre): info
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%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).
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%package -n libconfig%{_soversion}
|
|
|
|
Summary: Shared libraries for libconfig
|
|
|
|
Group: System/Libraries
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%description -n libconfig%{_soversion}
|
2012-02-26 13:15:29 +01:00
|
|
|
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.
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%package devel
|
|
|
|
Summary: C-Bindings development files for libconfig
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libconfig%{_soversion} = %{version}
|
|
|
|
Recommends: libconfig-doc = %{version}
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%description devel
|
2012-02-26 13:15:29 +01:00
|
|
|
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.
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%package -n libconfig++%{_soversion}
|
|
|
|
Summary: Shared libraries for libconfig
|
|
|
|
Group: System/Libraries
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%description -n libconfig++%{_soversion}
|
2012-02-26 13:15:29 +01:00
|
|
|
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.
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%package -n libconfig++-devel
|
|
|
|
Summary: C++-Bindings development files for libconfig
|
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libconfig++%{_soversion} = %{version}
|
|
|
|
Requires: libconfig-devel = %{version}
|
|
|
|
Recommends: libconfig-doc = %{version}
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%description -n libconfig++-devel
|
2012-02-26 13:15:29 +01:00
|
|
|
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
|
2012-02-27 16:50:50 +01:00
|
|
|
Summary: Documentation files for libconfig
|
|
|
|
Group: Documentation/Other
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation files for package libconfig.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
make pdf
|
|
|
|
make html
|
2012-02-26 13:15:29 +01:00
|
|
|
make %{?_smp_flags}
|
|
|
|
|
|
|
|
%install
|
2012-02-27 16:50:50 +01:00
|
|
|
%make_install
|
2012-02-26 13:15:29 +01:00
|
|
|
# clean up
|
|
|
|
pushd examples
|
2012-02-27 16:50:50 +01:00
|
|
|
make clean
|
|
|
|
find . -name '*.vcproj' -o -name '.deps' |xargs rm -r
|
2012-02-26 13:15:29 +01:00
|
|
|
popd
|
2012-02-27 16:50:50 +01:00
|
|
|
rm %{buildroot}%{_libdir}/*.{l,}a
|
|
|
|
%fdupes -s examples %{buildroot}%{_docdir}
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%post -n libconfig%{_soversion} -p /sbin/ldconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%postun -n libconfig%{_soversion} -p /sbin/ldconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%post -n libconfig++%{_soversion} -p /sbin/ldconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%postun -n libconfig++%{_soversion} -p /sbin/ldconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%post doc
|
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libconfig.info.gz
|
|
|
|
|
|
|
|
%postun doc
|
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libconfig.info.gz
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%defattr(-,root,root)
|
2012-02-27 16:50:50 +01:00
|
|
|
%doc doc/*.html doc/*.pdf examples
|
|
|
|
%{_infodir}/libconfig.info.gz
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%files -n libconfig%{_soversion}
|
2012-02-26 13:15:29 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-27 16:50:50 +01:00
|
|
|
%doc AUTHORS COPYING* README
|
2012-02-26 13:15:29 +01:00
|
|
|
%{_libdir}/libconfig.so.*
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%files -n libconfig++%{_soversion}
|
2012-02-26 13:15:29 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-27 16:50:50 +01:00
|
|
|
%doc AUTHORS COPYING* README
|
2012-02-26 13:15:29 +01:00
|
|
|
%{_libdir}/libconfig++.so.*
|
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%files devel
|
2012-02-26 13:15:29 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-27 16:50:50 +01:00
|
|
|
%doc ChangeLog TODO
|
|
|
|
%{_includedir}/libconfig.h
|
|
|
|
%{_libdir}/libconfig.so
|
|
|
|
%{_libdir}/pkgconfig/libconfig.pc
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-02-27 16:50:50 +01:00
|
|
|
%files -n libconfig++-devel
|
2012-02-26 13:15:29 +01:00
|
|
|
%defattr(-,root,root)
|
2012-02-27 16:50:50 +01:00
|
|
|
%doc ChangeLog TODO
|
|
|
|
%{_includedir}/libconfig.h++
|
|
|
|
%{_libdir}/libconfig++.so
|
|
|
|
%{_libdir}/pkgconfig/libconfig++.pc
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%changelog
|