1 | Name: @PACKAGE@ |
---|
2 | Version: @VERSION@ |
---|
3 | Release: 1 |
---|
4 | Summary: C/C++ Configuration File Library |
---|
5 | |
---|
6 | Group: System Environment/Libraries |
---|
7 | License: LGPL |
---|
8 | URL: http://hyperrealm.com/main.php?s=libconfig |
---|
9 | Source0: %{name}-%{version}.tar.gz |
---|
10 | BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n) |
---|
11 | |
---|
12 | Packager: Deneys S. Maartens <dsm@tlabs.ac.za> |
---|
13 | |
---|
14 | BuildRequires: texinfo |
---|
15 | |
---|
16 | %description |
---|
17 | %{name} is a simple library for manipulating structured configuration |
---|
18 | files. The file format is more compact and more readable than XML. And |
---|
19 | unlike XML, it is type-aware, so it is not necessary to do string |
---|
20 | parsing in application code. |
---|
21 | |
---|
22 | %{name} is very compact -- just 25K for the stripped C shared library |
---|
23 | (one-fifth the size of the expat XML parser library) and 39K for the |
---|
24 | stripped C++ shared library. This makes it well-suited for |
---|
25 | memory-constrained systems like handheld devices. |
---|
26 | |
---|
27 | The library includes bindings for both the C and C++ languages. It works |
---|
28 | on POSIX-compliant UNIX systems. |
---|
29 | |
---|
30 | %package devel |
---|
31 | Summary: %{name} development package |
---|
32 | Group: Development/Libraries |
---|
33 | Requires: %{name} = %{version} |
---|
34 | |
---|
35 | %description devel |
---|
36 | Development files for %{name}. |
---|
37 | |
---|
38 | %prep |
---|
39 | %setup -q |
---|
40 | |
---|
41 | %build |
---|
42 | %configure |
---|
43 | make %{?_smp_mflags} |
---|
44 | make html |
---|
45 | |
---|
46 | %install |
---|
47 | rm -rf $RPM_BUILD_ROOT |
---|
48 | make install DESTDIR=$RPM_BUILD_ROOT |
---|
49 | |
---|
50 | %clean |
---|
51 | rm -rf $RPM_BUILD_ROOT |
---|
52 | |
---|
53 | %post |
---|
54 | ldconfig |
---|
55 | |
---|
56 | %postun |
---|
57 | ldconfig |
---|
58 | |
---|
59 | %files |
---|
60 | %defattr(-,root,root,-) |
---|
61 | %doc AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README |
---|
62 | %{_libdir}/%{name}.so* |
---|
63 | %{_libdir}/%{name}++.so* |
---|
64 | |
---|
65 | %files devel |
---|
66 | %defattr(-,root,root,-) |
---|
67 | %doc AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README |
---|
68 | %doc doc/%{name}.html |
---|
69 | %doc test.cfg |
---|
70 | %doc samples/c/*.c |
---|
71 | %doc samples/c++/*.cpp |
---|
72 | %{_infodir} |
---|
73 | %{_includedir} |
---|
74 | %{_libdir}/pkgconfig |
---|
75 | %{_libdir}/%{name}.a |
---|
76 | %{_libdir}/%{name}.la |
---|
77 | %{_libdir}/%{name}++.a |
---|
78 | %{_libdir}/%{name}++.la |
---|
79 | |
---|
80 | %changelog |
---|
81 | * Wed Aug 19 2007 Deneys S. Maartens <dsm@tlabs.ac.za> 1.1.3-1 |
---|
82 | - create spec file |
---|
83 | |
---|
84 | # -fin- |
---|