File libconfig.spec of Package libconfig
#
# spec file for package libconfig
#
# Copyright (c) 2017 SUSE LINUX 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
Name: libconfig
Version: 0.3.3
Release: 0
Summary: Configuration File Parsing Library
Source: http://www.rkeene.org/files/oss/libconfig/devel/libconfig-%{version}.tar.gz
Url: http://www.rkeene.org/oss/libconfig/
Group: System/Libraries
License: MIT
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libopennet-devel
BuildRequires: gcc glibc-devel make
BuildRequires: autoconf automake libtool
BuildRequires: pkg-config
%description
Libconfig is a configuration file processing library that saves you from
having to write your own configuration parsers and routines.
It supports callback functions, automatic variable assignment, and many
different configuration file types such as Apache-like, Windows INI-like, and
whitespace separated.
Configuration is processed in a logical manner: global configuration files,
local configuration files, environment variables, and finally command line
options.
%package -n libconfig0
Summary: Configuration File Parsing Library
Group: System/Libraries
Provides: %{name} = %{version}
%description -n libconfig0
Libconfig is a configuration file processing library that saves you from
having to write your own configuration parsers and routines.
It supports callback functions, automatic variable assignment, and many
different configuration file types such as Apache-like, Windows INI-like, and
whitespace separated.
Configuration is processed in a logical manner: global configuration files,
local configuration files, environment variables, and finally command line
options.
%package devel
Summary: Configuration File Parsing Library
Group: Development/Libraries/C and C++
Requires: libconfig0 = %{version}
Requires: libopennet-devel
%description devel
Libconfig is a configuration file processing library that saves you from
having to write your own configuration parsers and routines.
It supports callback functions, automatic variable assignment, and many
different configuration file types such as Apache-like, Windows INI-like, and
whitespace separated.
Configuration is processed in a logical manner: global configuration files,
local configuration files, environment variables, and finally command line
options.
This package contains the file required for development.
%prep
%setup -q
%build
autoreconf
%configure \
--with-libopennet
# don't use -j, breaks build
%__make
%install
%makeinstall
%post -n libconfig0 -p /sbin/ldconfig
%postun -n libconfig0 -p /sbin/ldconfig
%clean
%__rm -rf "%{buildroot}"
%files -n libconfig0
%defattr(-,root,root)
%doc AUTHORS LICENSE README TODO
%{_libdir}/libconfig.so.0*
%files devel
%defattr(-,root,root)
%{_includedir}/libconfig.h
%{_libdir}/libconfig.so
%{_libdir}/libconfig.a
%doc %{_mandir}/man3/*.3*
%changelog