]> git.pld-linux.org Git - packages/cfg.git/blame - cfg.spec
- up to 0.9.9
[packages/cfg.git] / cfg.spec
CommitLineData
dff71bdc 1# TODO: 1. Resolve conflict with libcfg+-devel - header files
2# as the same name.
3# 2. Fix refreshing configure.
4# NOTE: Lack of C API documentation in manpage
5
6# Conditional builds:
7%bcond_with ex # build with external OSSP ex library
8%bcond_without perl # build Perl bindings to C API
9
f9c56c65 10Summary: OSSP cfg - Configuration Parsing
8d4ab9e0 11Summary(pl): OSSP cfg - parsowanie konfiguracji
f9c56c65 12Name: cfg
dff71bdc 13Version: 0.9.9
f9c56c65 14Release: 0.1
8d4ab9e0 15Epoch: 0
f9c56c65 16License: distributable (see README)
17Group: Libraries
18Source0: ftp://ftp.ossp.org/pkg/lib/cfg/%{name}-%{version}.tar.gz
dff71bdc 19# Source0-md5: 66576d4d4ee01b29666aa19aaa3faa71
f9c56c65 20URL: http://www.ossp.org/pkg/lib/cfg/
21BuildRequires: autoconf
2e487087 22BuildRequires: automake
f9c56c65 23BuildRequires: bison
24BuildRequires: flex
25BuildRequires: libtool
dff71bdc 26%{?with_ex:BuildRequires: ex-devel}
27%{?with_perl:BuildRequires: perl-devel}
f9c56c65 28BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29
30%description
31OSSP cfg is a ISO-C library for parsing arbitrary C/C++-style
32configuration files. A configuration is sequence of directives. Each
33directive consists of zero or more tokens. Each token can be either a
34string or again a complete sequence. This means the configuration
35syntax has a recursive structure and this way allows to create
36configurations with arbitrarily nested sections.
37
38Additionally the configuration syntax provides complex
39single/double/balanced quoting of tokens, hexadecimal/octal/decimal
40character encodings, character escaping, C/C++ and Shell-style
41comments, etc. The library API allows importing a configuration text
42into an Abstract Syntax Tree (AST), traversing the AST and optionally
43exporting the AST again as a configuration text.
44
8d4ab9e0
JB
45%description -l pl
46