Fixed include path (again).
[platform/upstream/libconfig.git] / libconfig.spec.in
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 processing 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. The library includes bindings for both
21 the C and C++ languages. It works on POSIX-compliant UNIX systems.
22
23 %package devel
24 Summary:        %{name} development package
25 Group:          Development/Libraries
26 Requires:       %{name} = %{version}
27
28 %description devel
29 Development files for %{name}.
30
31 %prep
32 %setup -q
33
34 %build
35 %configure
36 make %{?_smp_mflags}
37 make html
38
39 %install
40 rm -rf $RPM_BUILD_ROOT
41 make install DESTDIR=$RPM_BUILD_ROOT
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 ldconfig
48
49 %postun
50 ldconfig
51
52 %files
53 %defattr(-,root,root,-)
54 %doc AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README
55 %{_libdir}/%{name}.so*
56 %{_libdir}/%{name}++.so*
57
58 %files devel
59 %defattr(-,root,root,-)
60 %doc AUTHORS COPYING.LIB ChangeLog INSTALL NEWS README
61 %doc doc/%{name}.html
62 %doc test.cfg
63 %doc examples/c/*.c
64 %doc examples/c++/*.cpp
65 %{_infodir}
66 %{_includedir}
67 %{_libdir}/pkgconfig
68 %{_libdir}/%{name}.a
69 %{_libdir}/%{name}.la
70 %{_libdir}/%{name}++.a
71 %{_libdir}/%{name}++.la
72
73 %changelog
74 * Wed Aug 19 2007  Deneys S. Maartens  <dsm@tlabs.ac.za>  1.1.3-1
75 - create spec file
76
77 # -fin-