Jeongik Cha | 1199caa | 2021-07-20 12:32:58 +0900 | [diff] [blame] | 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}/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- |