]> git.pld-linux.org Git - packages/conflib.git/blob - conflib.spec
d77dfb8bae8039b296b1a584739df16bb6b74ba2
[packages/conflib.git] / conflib.spec
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/%{name}-%{version}.tar.gz
9 Patch:          conflib-info.patch
10 Buildroot:      /tmp/%{name}-%{version}-root
11
12 %description 
13 A C language library for reading configuration files.
14
15 %package devel
16 Summary:        file for developing programs that use the conflib library
17 Summary(de):    Dateien zum Entwickeln von Programmen mit der conflib-Library
18 Group:          Development/Libraries
19 Requires:       %{name} = %{version}
20 Prereq:         /sbin/install-info
21
22 %description devel
23 This library makes it relativly easy to read configuration files (one or
24 more), or parts of them. It supports a lot of different data types and
25 some types of text interpretations, including \-escapes, ~user, $HOME
26 and conditional expansions.
27
28 %package static
29 Summary:        file for developing programs that use the conflib library
30 Summary(de):    Dateien zum Entwickeln von Programmen mit der conflib-Library
31 Group:          Development/Libraries
32 Requires:       %{name}-devel = %{version}
33
34 %description static
35 This library makes it relativly easy to read configuration files (one or
36 more), or parts of them. It supports a lot of different data types and
37 some types of text interpretations, including \-escapes, ~user, $HOME
38 and conditional expansions.
39
40 %prep
41 %setup -q
42 %patch -p1
43
44 %build
45 LDFLAGS="-s"; export LDFLAGS
46 %configure
47 make
48
49 %install
50 rm -rf $RPM_BUILD_ROOT
51 make install DESTDIR=$RPM_BUILD_ROOT
52
53 strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
54
55 gzip -9nf $RPM_BUILD_ROOT%{_infodir}/*info* \
56         README NEWS ChangeLog
57
58 %post   -p /sbin/ldconfig
59 %postun -p /sbin/ldconfig
60
61 %post devel
62 /sbin/install-info %{_infodir}/conflib.info.gz /etc/info-dir
63
64
65 %preun devel
66 if [ "$1" = "0" ]; then
67         /sbin/install-info --delete %{_infodir}/conflib.info.gz /etc/info-dir
68 fi
69
70 %clean
71 rm -rf $RPM_BUILD_ROOT
72
73 %files
74 %defattr(644,root,root,755)
75 %attr(755,root,root) %{_libdir}/lib*.so.*.*
76
77 %files devel
78 %defattr(644,root,root,755)
79 %doc README.gz NEWS.gz ChangeLog.gz
80 %{_includedir}/*.h
81 %attr(755,root,root) %{_libdir}/lib*.so
82 %attr(755,root,root) %{_libdir}/lib*.la
83 %{_infodir}/*info*
84
85 %files static
86 %defattr(644,root,root,755)
87 %{_libdir}/lib*.a
This page took 0.038069 seconds and 2 git commands to generate.