2012-02-26 13:15:29 +01:00
|
|
|
#
|
2012-03-11 15:47:35 +01:00
|
|
|
# spec file for package libconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
#
|
2018-02-08 06:57:37 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX 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-03-11 15:47:35 +01:00
|
|
|
|
2017-11-12 06:49:32 +01:00
|
|
|
%define _soversion 11
|
2012-03-11 15:47:35 +01:00
|
|
|
Name: libconfig
|
2017-11-12 06:49:32 +01:00
|
|
|
Version: 1.7
|
2012-03-11 15:47:35 +01:00
|
|
|
Release: 0
|
2018-02-08 06:57:37 +01:00
|
|
|
Summary: A library for manipulating structured configuration files
|
2012-03-11 15:47:35 +01:00
|
|
|
License: LGPL-2.1+
|
2014-10-06 05:01:27 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2017-11-12 06:49:32 +01:00
|
|
|
Url: https://hyperrealm.github.io/libconfig
|
2017-07-13 14:27:30 +02:00
|
|
|
Source0: https://github.com/hyperrealm/libconfig/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2012-05-19 14:14:59 +02:00
|
|
|
Source1: baselibs.conf
|
2017-07-13 14:27:30 +02:00
|
|
|
BuildRequires: autoconf
|
|
|
|
BuildRequires: automake
|
2012-03-11 15:47:35 +01:00
|
|
|
BuildRequires: bison
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: flex
|
|
|
|
BuildRequires: gcc-c++
|
2017-07-13 14:27:30 +02:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: makeinfo
|
|
|
|
BuildRequires: pkgconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%description
|
2018-02-08 06:57:37 +01:00
|
|
|
libconfig is a library for manipulating structured configuration
|
|
|
|
files. The supported file format is more compact and more readable
|
|
|
|
than XML. Unlike XML, it is type-aware, so it is not necessary to do
|
|
|
|
string parsing in application code.
|
2012-05-19 14:14:59 +02:00
|
|
|
|
|
|
|
The library includes bindings for both the C and C++ languages.
|
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%package -n libconfig%{_soversion}
|
2018-02-08 06:57:37 +01:00
|
|
|
Summary: C API of libconfig
|
2012-03-11 15:47:35 +01:00
|
|
|
Group: System/Libraries
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%description -n libconfig%{_soversion}
|
2018-02-08 06:57:37 +01:00
|
|
|
libconfig is a library for manipulating structured configuration
|
|
|
|
files. The supported file format is more compact and more readable
|
|
|
|
than XML. Unlike XML, it is type-aware, so it is not necessary to do
|
|
|
|
string parsing in application code.
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
This package contains the shared libraries for libconfig.
|
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%package devel
|
2018-02-08 06:57:37 +01:00
|
|
|
Summary: C bindings development files for libconfig
|
2012-03-11 15:47:35 +01:00
|
|
|
Group: Development/Languages/C and C++
|
|
|
|
Requires: libconfig%{_soversion} = %{version}
|
|
|
|
Recommends: libconfig-doc = %{version}
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%description devel
|
2018-02-08 06:57:37 +01:00
|
|
|
libconfig is a library for manipulating structured configuration
|
|
|
|
files. The supported file format is more compact and more readable
|
|
|
|
than XML. Unlike XML, it is type-aware, so it is not necessary to do
|
|
|
|
string parsing in application code.
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2018-02-08 06:57:37 +01:00
|
|
|
This package contains the C bindings development files.
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%package -n libconfig++%{_soversion}
|
2018-02-08 06:57:37 +01:00
|
|
|
Summary: C++ API of libconfig
|
2012-03-11 15:47:35 +01:00
|
|
|
Group: System/Libraries
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%description -n libconfig++%{_soversion}
|
2018-02-08 06:57:37 +01:00
|
|
|
libconfig is a library for manipulating structured configuration
|
|
|
|
files. The supported file format is more compact and more readable
|
|
|
|
than XML. Unlike XML, it is type-aware, so it is not necessary to do
|
|
|
|
string parsing in application code.
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
This package contains the shared libraries for libconfig.
|
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%package -n libconfig++-devel
|
2018-02-08 06:57:37 +01:00
|
|
|
Summary: C++ bindings development files for libconfig
|
2012-03-11 15:47:35 +01:00
|
|
|
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-03-11 15:47:35 +01:00
|
|
|
%description -n libconfig++-devel
|
2018-02-08 06:57:37 +01:00
|
|
|
libconfig is a library for manipulating structured configuration
|
|
|
|
files. The supported file format is more compact and more readable
|
|
|
|
than XML. Unlike XML, it is type-aware, so it is not necessary to do
|
|
|
|
string parsing in application code.
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2018-02-08 06:57:37 +01:00
|
|
|
This package contains the C++ bindings development files.
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
2017-07-13 14:27:30 +02:00
|
|
|
# remove autogenerated files
|
|
|
|
pushd lib > /dev/null
|
|
|
|
rm scanner.c scanner.h grammar.c grammar.h
|
|
|
|
popd > /dev/null
|
|
|
|
|
2012-02-26 13:15:29 +01:00
|
|
|
%build
|
2017-07-13 14:27:30 +02:00
|
|
|
autoreconf -fvi
|
|
|
|
%configure \
|
|
|
|
--disable-silent-rules \
|
|
|
|
--disable-static
|
|
|
|
make -j1
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%install
|
2012-03-11 15:47:35 +01:00
|
|
|
%make_install
|
2017-07-13 14:27:30 +02:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
%fdupes -s %{buildroot}%{_docdir}
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2017-07-13 14:27:30 +02:00
|
|
|
%check
|
|
|
|
./tests/libconfig_tests
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2017-07-13 14:27:30 +02:00
|
|
|
%post -n libconfig%{_soversion} -p /sbin/ldconfig
|
2012-03-11 15:47:35 +01:00
|
|
|
%postun -n libconfig%{_soversion} -p /sbin/ldconfig
|
|
|
|
%post -n libconfig++%{_soversion} -p /sbin/ldconfig
|
|
|
|
%postun -n libconfig++%{_soversion} -p /sbin/ldconfig
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%files -n libconfig%{_soversion}
|
|
|
|
%doc AUTHORS COPYING* README
|
2012-02-26 13:15:29 +01:00
|
|
|
%{_libdir}/libconfig.so.*
|
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%files -n libconfig++%{_soversion}
|
|
|
|
%doc AUTHORS COPYING* README
|
2012-02-26 13:15:29 +01:00
|
|
|
%{_libdir}/libconfig++.so.*
|
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%files devel
|
|
|
|
%doc ChangeLog TODO
|
|
|
|
%{_includedir}/libconfig.h
|
|
|
|
%{_libdir}/libconfig.so
|
|
|
|
%{_libdir}/pkgconfig/libconfig.pc
|
2012-02-26 13:15:29 +01:00
|
|
|
|
2012-05-19 14:14:59 +02:00
|
|
|
%post -n libconfig++-devel
|
2017-07-13 14:27:30 +02:00
|
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/libconfig.info%{ext_info}
|
2012-05-19 14:14:59 +02:00
|
|
|
|
|
|
|
%postun -n libconfig++-devel
|
2017-07-13 14:27:30 +02:00
|
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/libconfig.info%{ext_info}
|
2012-05-19 14:14:59 +02:00
|
|
|
|
2012-03-11 15:47:35 +01:00
|
|
|
%files -n libconfig++-devel
|
|
|
|
%doc ChangeLog TODO
|
|
|
|
%{_includedir}/libconfig.h++
|
|
|
|
%{_libdir}/libconfig++.so
|
|
|
|
%{_libdir}/pkgconfig/libconfig++.pc
|
2017-07-13 14:27:30 +02:00
|
|
|
%{_infodir}/libconfig.info%{ext_info}
|
|
|
|
%dir %{_libdir}/cmake
|
|
|
|
%dir %{_libdir}/cmake/libconfig
|
|
|
|
%dir %{_libdir}/cmake/libconfig++
|
|
|
|
%{_libdir}/cmake/libconfig++/libconfig++Config.cmake
|
|
|
|
%{_libdir}/cmake/libconfig/libconfigConfig.cmake
|
2012-02-26 13:15:29 +01:00
|
|
|
|
|
|
|
%changelog
|