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