1 # TODO: resolve conflict with libcfg+-devel - header files
3 # NOTE: API is NOT documented
4 Summary: OSSP cfg - Configuration Parsing
5 Summary(pl): OSSP cfg - parsowanie konfiguracji
10 License: distributable (see README)
12 Source0: ftp://ftp.ossp.org/pkg/lib/cfg/%{name}-%{version}.tar.gz
13 # Source0-md5: a41ac64a92a55030f44e307cc5461657
14 URL: http://www.ossp.org/pkg/lib/cfg/
15 BuildRequires: autoconf
16 BuildRequires: automake
19 BuildRequires: libtool
20 Requires(post,postun): /sbin/ldconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 OSSP cfg is a ISO-C library for parsing arbitrary C/C++-style
25 configuration files. A configuration is sequence of directives. Each
26 directive consists of zero or more tokens. Each token can be either a
27 string or again a complete sequence. This means the configuration
28 syntax has a recursive structure and this way allows to create
29 configurations with arbitrarily nested sections.
31 Additionally the configuration syntax provides complex
32 single/double/balanced quoting of tokens, hexadecimal/octal/decimal
33 character encodings, character escaping, C/C++ and Shell-style
34 comments, etc. The library API allows importing a configuration text
35 into an Abstract Syntax Tree (AST), traversing the AST and optionally
36 exporting the AST again as a configuration text.
39 OSSP cfg to biblioteka ISO-C do parsowania dowolnych plików
40 konfiguracyjnych w stylu C/C++. Konfiguracja jest sekwencj± dyrektyw.
41 Ka¿da dyrektywa zawiera zero lub wiêcej tokenów. Ka¿dy token mo¿e byæ
42 ³añcuchem albo znowu ca³± sekwencj±. Oznacza to, ¿e sk³adnia
43 konfiguracji ma strukturê rekurencyjn±, co pozwala tworzyæ
44 konfiguracje z dowolnie zagnie¿d¿onymi sekcjami.
46 Sk³adnia konfiguracji udostêpnia dodatkowo z³o¿one
47 pojedyncze/podwójne/zrównowa¿one cytowanie tokenów,
48 szesnastkowe/ósemkowe/dziesiêtne kodowanie znaków, cytowanie znaków,
49 komentarze w stylu C/C++ i pow³oki itp. API biblioteki umo¿liwia
50 importowanie tekstu konfiguracji do abstrakcyjnych drzew sk³adniowych
51 (AST), przechodzenie po AST i opcjonalnie eksportowanie AST z powrotem
52 do tekstu konfiguracji.
55 Summary: OSSP cfg - Configuration Parsing - header files and development libraries
56 Summary(pl): OSSP cfg - parsowanie konfiguracji - pliki nag³ówkowe i biblioteki dla deweloperów
57 Group: Development/Libraries
58 Requires: %{name} = %{epoch}:%{version}-%{release}
61 OSSP cfg - Configuration Parsing - header files and development
64 %description devel -l pl
65 OSSP cfg - parsowanie konfiguracji - pliki nag³ówkowe i biblioteki dla
69 Summary: OSSP cfg - Configuration Parsing - static libraries
70 Summary(pl): OSSP cfg - parsowanie konfiguracji - biblioteki statyczne
71 Group: Development/Libraries
72 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
75 OSSP cfg - Configuration Parsing - static libraries.
77 %description static -l pl
78 OSSP cfg - parsowanie konfiguracji - biblioteki statyczne.
84 mv -f aclocal.m4 acinclude.m4
92 rm -rf $RPM_BUILD_ROOT
95 DESTDIR=$RPM_BUILD_ROOT
98 rm -rf $RPM_BUILD_ROOT
100 %post -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog HACKING README THANKS TODO
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.a