]>
Commit | Line | Data |
---|---|---|
94eb7489 JR |
1 | Summary: configuration file library |
2 | Summary(de): Library zum Lesen von Konfigurationsdateien | |
3 | Name: conflib | |
4 | Version: 0.4.5 | |
5 | Release: 1 | |
6 | Copyright: GPL | |
7 | Group: Libraries | |
8 | Source: ftp://ftp.ohse.de/uwe/releases/conflib-0.4.5.tar.gz | |
9 | Buildroot: /tmp/%{name}-%{version}-root | |
10 | Prereq: /sbin/install-info /sbin/ldconfig | |
26319edc | 11 | |
12 | %description | |
13 | A C language library for reading configuration files. | |
14 | ||
15 | %package devel | |
419e4204 JR |
16 | Summary: file for developing programs that use the conflib library |
17 | Summary(de): Dateien zum Entwickeln von Programmen mit der conflib-Library | |
a34a5dcf | 18 | Group: Development/Libraries |
419e4204 | 19 | Requires: %{name} = %{version} |
26319edc | 20 | |
21 | %description devel | |
22 | This library makes it relativly easy to read configuration files (one or | |
23 | more), or parts of them. It supports a lot of different data types and | |
24 | some types of text interpretations, including \-escapes, ~user, $HOME | |
25 | and conditional expansions. | |
26 | ||
419e4204 JR |
27 | %package static |
28 | Summary: file for developing programs that use the conflib library | |
29 | Summary(de): Dateien zum Entwickeln von Programmen mit der conflib-Library | |
30 | Group: Development/Libraries | |
31 | Requires: %{name}-devel = %{version} | |
32 | ||
33 | %description static | |
34 | This library makes it relativly easy to read configuration files (one or | |
35 | more), or parts of them. It supports a lot of different data types and | |
36 | some types of text interpretations, including \-escapes, ~user, $HOME | |
37 | and conditional expansions. | |
38 | ||
26319edc | 39 | %prep |
94eb7489 | 40 | %setup -q |
26319edc | 41 | |
42 | %build | |
94eb7489 | 43 | %GNUconfigure |
26319edc | 44 | make |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
94eb7489 | 48 | make install DESTDIR=$RPM_BUILD_ROOT |
26319edc | 49 | |
94eb7489 JR |
50 | gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*info* \ |
51 | README NEWS ChangeLog | |
52 | ||
53 | # $RPM_BUILD_ROOT%{_mandir}/man*/* \ | |
26319edc | 54 | |
55 | %post | |
56 | /sbin/ldconfig | |
94eb7489 | 57 | /sbin/install-info %{_infodir}/conflib.info.gz %{_infodir}/dir --entry="* Conflib: (conflib.info). Configuration File Handling." |
26319edc | 58 | |
59 | %postun -p /sbin/ldconfig | |
60 | ||
61 | %preun | |
62 | if [ $1 = 0 ]; then | |
94eb7489 | 63 | /sbin/install-info --delete %{_infodir}/history.info.gz %{_infodir}/dir --entry="* Conflib: (conflib.info). Configuration File Handling." |
26319edc | 64 | readline." |
65 | fi | |
66 | ||
67 | %clean | |
68 | rm -rf $RPM_BUILD_ROOT | |
69 | ||
70 | %files | |
94eb7489 JR |
71 | %defattr(644,root,root,755) |
72 | #%{_mandir}/*/* | |
73 | %{_infodir}/*info* | |
74 | %attr(755,root,root) %{_libdir}/lib*.so.* | |
26319edc | 75 | |
76 | %files devel | |
94eb7489 JR |
77 | %defattr(644,root,root,755) |
78 | %doc README.gz NEWS.gz ChangeLog.gz | |
79 | %{_includedir}/*.h | |
94eb7489 | 80 | %{_libdir}/lib*.so |
419e4204 JR |
81 | |
82 | %files static | |
83 | %defattr(644,root,root,755) | |
84 | %{_libdir}/lib*.a |