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