blob: b67f6a1ed55c5c74c6f51c27c9c8e0d2d3d3294d [file] [log] [blame]
Jeongik Cha1199caa2021-07-20 12:32:58 +09001Name: @PACKAGE@
2Version: @VERSION@
3Release: 1
4Summary: C/C++ Configuration File Library
5
6Group: System Environment/Libraries
7License: LGPL
8URL: http://hyperrealm.com/main.php?s=libconfig
9Source0: %{name}-%{version}.tar.gz
10BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id} -u -n)
11
12Packager: Deneys S. Maartens <dsm@tlabs.ac.za>
13
14BuildRequires: texinfo
15
16%description
17%{name} is a simple library for processing structured configuration
18files. The file format is more compact and more readable than XML. And
19unlike XML, it is type-aware, so it is not necessary to do string
20parsing in application code. The library includes bindings for both
21the C and C++ languages. It works on POSIX-compliant UNIX systems.
22
23%package devel
24Summary: %{name} development package
25Group: Development/Libraries
26Requires: %{name} = %{version}
27
28%description devel
29Development files for %{name}.
30
31%prep
32%setup -q
33
34%build
35%configure
36make %{?_smp_mflags}
37make html
38
39%install
40rm -rf $RPM_BUILD_ROOT
41make install DESTDIR=$RPM_BUILD_ROOT
42
43%clean
44rm -rf $RPM_BUILD_ROOT
45
46%post
47ldconfig
48
49%postun
50ldconfig
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}/cmake/libconfig
69%{_libdir}/cmake/libconfig++
70%{_libdir}/%{name}.a
71%{_libdir}/%{name}.la
72%{_libdir}/%{name}++.a
73%{_libdir}/%{name}++.la
74
75%changelog
76* Wed Oct 14 2015 Thomas Fischer <fischer@unix-ag.uni-kl.de> 1.5
77- added library directory cmake/libconfig and cmake/libconfig++
78* Wed Aug 19 2007 Deneys S. Maartens <dsm@tlabs.ac.za> 1.1.3-1
79- create spec file
80
81# -fin-