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