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