]> git.pld-linux.org Git - packages/conflib.git/blob - conflib.spec
- use more macros, some cosmetics, added missing "rm -f missing" and use new %doc
[packages/conflib.git] / conflib.spec
1 Summary:        Configuration file library
2 Summary(pl):    Biblioteka plików konfiguracyjnych
3 Summary(de):    Library zum Lesen von Konfigurationsdateien
4 Name:           conflib
5 Version:        0.4.5
6 Release:        6
7 License:        GPL
8 Group:          Libraries
9 Source0:        ftp://ftp.ohse.de/uwe/releases/%{name}-%{version}.tar.gz
10 Patch0:         %{name}-info.patch
11 Patch1:         %{name}-cl_build_stanza_array-fix.patch
12 Patch2:         %{name}-ac25x.patch
13 Patch3:         %{name}-locale.patch
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A C language library for reading configuration files.
21
22 %description -l pl
23 Biblioteka C s³u¿±ca do odczytywania plików konfiguracyjnych.
24
25 %package devel
26 Summary:        Files for developing programs that use the conflib library
27 Summary(pl):    Pliki do tworzenia programów wykorzystuj±cych bibliotekê conflib
28 Summary(de):    Dateien zum Entwickeln von Programmen mit der conflib-Library
29 Group:          Development/Libraries
30 Requires:       %{name} = %{version}
31
32 %description devel
33 This library makes it relativly easy to read configuration files (one
34 or more), or parts of them. It supports a lot of different data types
35 and some types of text interpretations, including \-escapes, ~user,
36 $HOME and conditional expansions.
37
38 %description devel -l pl
39 Ta biblioteka pozwala na stosunkowo proste czytanie plików
40 konfiguracyjnych lub ich czê¶ci. Wspiera wiele ró¿nych typów danych
41 oraz niektóre typy interpretacji tekstu, np. \-escapes, ~user, $HOME
42 oraz warunkowe rozwijanie.
43
44 %package static
45 Summary:        Files for developing programs that use the conflib library
46 Summary(pl):    Statyczne pliki do tworzenia programów wykorzystuj±cych bibliotekê conflib
47 Summary(de):    Dateien zum Entwickeln von Programmen mit der conflib-Library
48 Group:          Development/Libraries
49 Requires:       %{name}-devel = %{version}
50
51 %description static
52 This library makes it relativly easy to read configuration files (one
53 or more), or parts of them. It supports a lot of different data types
54 and some types of text interpretations, including \-escapes, ~user,
55 $HOME and conditional expansions.
56
57 %description static -l pl
58 Ta biblioteka pozwala na stosunkowo proste czytanie plików
59 konfiguracyjnych lub ich czê¶ci. Wspiera wiele ró¿nych typów danych
60 oraz niektóre typy interpretacji tekstu, np. \-escapes, ~user, $HOME
61 oraz warunkowe rozwijanie. Ten pakiet zawiera pliki statyczne.
62
63 %prep
64 %setup -q
65 %patch0 -p1
66 %patch1 -p1
67 %patch2 -p1
68 %patch3 -p1
69
70 %build
71 rm -f missing
72 %{__libtoolize}
73 %{__aclocal}
74 %{__autoconf}
75 %{__automake}
76 %configure2_13
77 %{__make}
78
79 %install
80 rm -rf $RPM_BUILD_ROOT
81 %{__make} install DESTDIR=$RPM_BUILD_ROOT
82
83 gzip -9nf README NEWS ChangeLog
84
85 %post   -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
87
88 %post devel
89 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
90
91 %postun devel
92 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/lib*.so.*.*
100
101 %files devel
102 %defattr(644,root,root,755)
103 %doc README.gz NEWS.gz ChangeLog.gz
104 %{_includedir}/*.h
105 %attr(755,root,root) %{_libdir}/lib*.so
106 %attr(755,root,root) %{_libdir}/lib*.la
107 %{_infodir}/*info*
108
109 %files static
110 %defattr(644,root,root,755)
111 %{_libdir}/lib*.a
This page took 0.078193 seconds and 4 git commands to generate.