]> git.pld-linux.org Git - packages/cfg.git/blob - cfg.spec
- pl, Epoch 0 (used in deps)
[packages/cfg.git] / cfg.spec
1 # TODO: resolve conflict with libcfg+-devel - header files
2 #       has the same name.
3 # NOTE: API is NOT documented
4 Summary:        OSSP cfg - Configuration Parsing
5 Summary(pl):    OSSP cfg - parsowanie konfiguracji
6 Name:           cfg
7 Version:        0.9.4
8 Release:        0.1
9 Epoch:          0
10 License:        distributable (see README)
11 Group:          Libraries
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
17 BuildRequires:  bison
18 BuildRequires:  flex    
19 BuildRequires:  libtool
20 Requires(post,postun):  /sbin/ldconfig
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
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.
30
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.
37
38 %description -l pl
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.
45
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.
53
54 %package devel
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}
59
60 %description devel
61 OSSP cfg - Configuration Parsing - header files and development
62 libraries.
63
64 %description devel -l pl
65 OSSP cfg - parsowanie konfiguracji - pliki nag³ówkowe i biblioteki dla
66 deweloperów.
67
68 %package static
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}
73
74 %description static
75 OSSP cfg - Configuration Parsing - static libraries.
76
77 %description static -l pl
78 OSSP cfg - parsowanie konfiguracji - biblioteki statyczne.
79
80 %prep
81 %setup -q
82
83 %build
84 mv -f aclocal.m4 acinclude.m4
85 %{__libtoolize}
86 %{__aclocal}
87 %{__autoconf}
88 %configure
89 %{__make}
90
91 %install
92 rm -rf $RPM_BUILD_ROOT
93
94 %{__make} install \
95         DESTDIR=$RPM_BUILD_ROOT
96
97 %clean
98 rm -rf $RPM_BUILD_ROOT
99
100 %post   -p /sbin/ldconfig
101 %postun -p /sbin/ldconfig
102
103 %files
104 %defattr(644,root,root,755)
105 %doc AUTHORS ChangeLog HACKING README THANKS TODO
106 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_bindir}/*
111 %attr(755,root,root) %{_libdir}/lib*.so
112 %{_libdir}/lib*.la
113 %{_includedir}/*
114 %{_mandir}/man3/*
115
116 %files static
117 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.a
This page took 0.051141 seconds and 3 git commands to generate.