]>
Commit | Line | Data |
---|---|---|
817a4a8d | 1 | Summary: Configuration file parser library |
2e2f21e3 | 2 | Summary(pl.UTF-8): Biblioteka analizująca pliki konfiguracyjne |
817a4a8d | 3 | Name: dotconf |
a8b40b5c | 4 | Version: 1.3 |
2e0a9e07 | 5 | Release: 2 |
5d8a085a | 6 | License: LGPL v2.1 |
817a4a8d | 7 | Group: Libraries |
5cfd0b5b | 8 | Source0: https://github.com/williamh/dotconf/tarball/v%{version}?/%{name}-%{version}.tar.gz |
a8b40b5c | 9 | # Source0-md5: 36bfdde245072fc2f4f5766b7db97c45 |
2e2f21e3 | 10 | URL: http://www.azzit.de/dotconf/ |
a8b40b5c | 11 | BuildRequires: autoconf >= 2.63 |
817a4a8d | 12 | BuildRequires: automake |
a8b40b5c | 13 | BuildRequires: libtool >= 2:2.2 |
817a4a8d | 14 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
15 | ||
16 | %description | |
17 | dot.conf is a simple-to-use and powerful configuration-file parser | |
18 | library written in C. The configuration files created for dot.conf | |
19 | look very similar to those used by the Apache Webserver. Even | |
20 | Container-Directives known from httpd.conf can easily be used in the | |
21 | exact same manner as for Apache-Modules. It supports various types of | |
22 | arguments, dynamically loadable modules that create their own | |
23 | configuration options on-the-fly, a here-documents feature to pass | |
24 | very long ARG_STR data to your app, and on-the-fly inclusion of | |
25 | additional config files. | |
26 | ||
2e2f21e3 JB |
27 | %description -l pl.UTF-8 |
28 | dot.conf to prosta w użyciu i mająca duże możliwości, napisana w C | |
29 | biblioteka analizująca pliki konfiguracyjne. Pliki tworzone dla | |
30 | dot.conf wyglądają podobnie do używanych przez serwer WWW Apache. | |
31 | Nawet dyrektywy kontenerowe znane z httpd.conf mogą być z łatwością | |
32 | używane w taki sam sposób, jak dla modułów Apache'a. Biblioteka | |
33 | obsługuje różne typy argumentów, dynamicznie ładowane moduły | |
34 | tworzące w locie własne opcje konfiguracyjne, tekst wklejany | |
35 | (here-document) do przekazywania bardzo długich danych ARG_STR do | |
36 | aplikacji oraz włączanie w locie dodatkowych plików konfiguracyjnych. | |
817a4a8d | 37 | |
38 | %package devel | |
39 | Summary: Header files for dot.conf library | |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dot.conf | |
41 | Group: Development/Libraries | |
42 | Requires: %{name} = %{version}-%{release} | |
43 | ||
44 | %description devel | |
45 | Header files for dot.conf library. | |
46 | ||
47 | %description devel -l pl.UTF-8 | |
48 | Pliki nagłówkowe biblioteki dot.conf. | |
49 | ||
50 | %package static | |
51 | Summary: Static dot.conf library | |
52 | Summary(pl.UTF-8): Statyczna biblioteka dot.conf | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-devel = %{version}-%{release} | |
55 | ||
56 | %description static | |
57 | Static dot.conf library. | |
58 | ||
59 | %description static -l pl.UTF-8 | |
60 | Statyczna biblioteka dot.conf. | |
61 | ||
62 | %prep | |
a8b40b5c | 63 | %setup -q -n williamh-dotconf-4cd7b3a |
817a4a8d | 64 | |
65 | %build | |
817a4a8d | 66 | %{__libtoolize} |
67 | %{__aclocal} | |
68 | %{__autoconf} | |
69 | %{__autoheader} | |
70 | %{__automake} | |
71 | %configure | |
72 | %{__make} | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | ||
77 | %{__make} install \ | |
78 | DESTDIR=$RPM_BUILD_ROOT | |
79 | ||
a8b40b5c JB |
80 | install -d $RPM_BUILD_ROOT%{_examplesdir} |
81 | mv $RPM_BUILD_ROOT%{_docdir}/dotconf/examples $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
82 | # packaged as %doc | |
83 | %{__rm} $RPM_BUILD_ROOT%{_docdir}/dotconf/dotconf*.txt | |
84 | ||
817a4a8d | 85 | %clean |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %post -p /sbin/ldconfig | |
89 | %postun -p /sbin/ldconfig | |
90 | ||
91 | %files | |
92 | %defattr(644,root,root,755) | |
a8b40b5c JB |
93 | %doc AUTHORS README |
94 | %attr(755,root,root) %{_libdir}/libdotconf.so.*.*.* | |
95 | %attr(755,root,root) %ghost %{_libdir}/libdotconf.so.0 | |
817a4a8d | 96 | |
97 | %files devel | |
98 | %defattr(644,root,root,755) | |
a8b40b5c | 99 | %doc doc/dotconf*.txt |
0d93da81 JB |
100 | %attr(755,root,root) %{_libdir}/libdotconf.so |
101 | %{_libdir}/libdotconf.la | |
0d93da81 | 102 | %{_includedir}/dotconf.h |
0d93da81 | 103 | %{_pkgconfigdir}/dotconf.pc |
a8b40b5c | 104 | %{_examplesdir}/%{name}-%{version} |
817a4a8d | 105 | |
106 | %files static | |
107 | %defattr(644,root,root,755) | |
0d93da81 | 108 | %{_libdir}/libdotconf.a |