]> git.pld-linux.org Git - packages/gdbm.git/blob - gdbm.spec
- updated to 1.14.1 (note: new libgdbm soname)
[packages/gdbm.git] / gdbm.spec
1 #
2 # Conditional build:
3 %bcond_without  gdbmexport      # gdbmexport compatibility tool
4 #
5 Summary:        GNU database library for C
6 Summary(de.UTF-8):      GNU-Datenbank-Library für C
7 Summary(fr.UTF-8):      La librairie GNU de bases de données pout le langage C
8 Summary(pl.UTF-8):      Biblioteka GNU bazy danych dla języka C
9 Summary(ru.UTF-8):      Библиотека базы данных GNU для C
10 Summary(uk.UTF-8):      Бібліотека бази даних GNU для C
11 Name:           gdbm
12 Version:        1.14.1
13 Release:        1
14 License:        GPL v3+
15 Group:          Libraries
16 Source0:        http://ftp.gnu.org/gnu/gdbm/%{name}-%{version}.tar.gz
17 # Source0-md5:  c2ddcb3897efa0f57484af2bd4f4f848
18 Patch0:         %{name}-info.patch
19 Patch1:         %{name}-link-compat.patch
20 Patch2:         %{name}-link.patch
21 URL:            http://www.gnu.org/software/gdbm/
22 BuildRequires:  autoconf >= 2.69
23 BuildRequires:  automake >= 1:1.11
24 %{?with_gdbmexport:BuildRequires:       gdbm18-devel >= 1.8.3}
25 BuildRequires:  gettext-tools >= 0.18
26 BuildRequires:  libtool
27 BuildRequires:  readline-devel
28 BuildRequires:  texinfo
29 Obsoletes:      libgdbm2
30 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31
32 %description
33 gdbm is a GNU database indexing library, including routines which use
34 extensible hashing. gdbm works in a similar way to standard UNIX dbm
35 routines. gdbm is useful for developers who write C applications and
36 need access to a simple and efficient database or who are building C
37 applications which will use such a database.
38
39 %description -l de.UTF-8
40 Dies ist eine Datenbank-Index-Library für Programmierer, die
41 C-Anwendungen schreiben und eine einfache und leistungsfähige
42 Datenbank benötigen oder diese in C-Anwendungen einsetzen möchten.
43
44 %description -l fr.UTF-8
45 Une librairie d'indexation de bases de données. Elle est utile pour
46 ceux qui désirent écrivent des applications en C et ont besion
47 d'accéder à une base de données simple et efficace ou de construire
48 une application en C qui l'utilise.
49
50 %description -l pl.UTF-8
51 W pakiecie znajduje się biblioteka indeksowania bazy danych.
52 Biblioteka ta jest szczególnie użyteczna dla ludzi, którzy piszą
53 oprogramowanie w C i potrzebują prostej i szybkiej bazy danych, lub
54 dla tych którzy piszą programy w C z wykorzystaniem tej biblioteki.
55
56 %description -l tr.UTF-8
57 gdbm bir veri tabanı dizinleme kitaplığıdır. C uygulamaları yazıp
58 basit ve etkin bir şekilde veri tabanına ulaşmak isteyenler için
59 yararlı olacaktır.
60
61 %description -l ru.UTF-8
62 Это библиотека для работы с индексированной базой данных. Полезна для
63 тех, кто разрабатывает программы на C и кому нужен доступ к простой и
64 эффективной базе данных либо требуется написать программу, которая ее
65 использует.
66
67 %description -l uk.UTF-8
68 Це бібліотека для роботи з індексованою базою даних. Корисна для тих,
69 хто розробляє програми на C і кому потрібен доступ до простої та
70 ефективної бази даних або потрібно написати програму, що її
71 використовує.
72
73 %package devel
74 Summary:        development libraries and header files for gdbm
75 Summary(de.UTF-8):      Entwicklungs-Libraries und Header-Dateien für gdbm
76 Summary(fr.UTF-8):      Bibliothèques de développement et en-têtes pour gdbm
77 Summary(pl.UTF-8):      Biblioteki i pliki nagłówkowe dla gdbm
78 Summary(ru.UTF-8):      Библиотека и хедеры gdbm для разработчиков
79 Summary(tr.UTF-8):      gdbm için başlık dosyaları ve geliştirme kitaplıkları
80 Summary(uk.UTF-8):      Бібліотека та хедери gdbm для програмістів
81 Group:          Development/Libraries
82 Requires:       %{name} = %{version}-%{release}
83 Obsoletes:      libgdbm2-devel
84
85 %description devel
86 These are the development libraries and header files for gdbm, the GNU
87 database system. These are required if you plan to do development
88 using the gdbm database.
89
90 %description devel -l de.UTF-8
91 Dies sind die Entwicklungs-Libraries und Header-Dateien für gdbm, das
92 GNU-Datenbanksystem. Sie sind darauf angewiesen, wenn Sie vorhaben,
93 die gdbm-Datenbank für Entwicklungsarbeiten zu benutzen.
94
95 %description devel -l fr.UTF-8
96 Ce sont les librairies de développement et les fichiers d'en-tête pour
97 gdbm, le système de base de données GNU. Ceci est nécessaire si vous
98 désirez développer en utilisant la base de données gdbm.
99
100 %description devel -l pl.UTF-8
101 W pakiecie tym znajdują się pliki nagłówkowe i biblioteki dla systemu
102 bazy danych GNU.
103
104 %description devel -l tr.UTF-8
105 GNU veri tabanı sistemi gdbm ile program geliştirmek için gereken
106 başlık dosyaları ve kitaplıklar.
107
108 %description devel -l ru.UTF-8
109 Это библиотека для разработчиков и хедеры gdbm, базы данных GNU. Они
110 нужны, если вы собираетесь разрабатывать программы с использованием
111 gdbm.
112
113 %description devel -l uk.UTF-8
114 Це бібліотека для програмістів та хедери gdbm, бази даних GNU. Вони
115 потрібні, якщо ви збираєтесь розробляти програми з використанням gdbm.
116
117 %package static
118 Summary:        Static gdbm library
119 Summary(pl.UTF-8):      Biblioteki statyczne gdbm
120 Summary(ru.UTF-8):      Статическая библиотека gdbm
121 Summary(uk.UTF-8):      Статична бібліотека gdbm
122 Group:          Development/Libraries
123 Requires:       %{name}-devel = %{version}-%{release}
124
125 %description static
126 Static gdbm library.
127
128 %description static -l pl.UTF-8
129 Biblioteka statyczna gdbm.
130
131 %description static -l ru.UTF-8
132 Это статическая библиотека gdbm, базы данных GNU.
133
134 %description static -l uk.UTF-8
135 Це статична бібліотека gdbm, бази даних GNU.
136
137 %package export
138 Summary:        gdbmexport utility to export old GDBM 1.8.x databases
139 Summary(pl.UTF-8):      Narzędzie gdbmexport pozwalające wyeksportować stare bazy GDBM 1.8.x
140 Group:          Applications/File
141 Requires:       gdbm18 >= 1.8.3
142
143 %description export
144 gdbmexport utility to export old GDBM 1.8.x databases in order to load
145 them in new GDBM format.
146
147 %description export -l pl.UTF-8
148 Narzędzie gdbmexport pozwalające wyeksportować stare bazy GDBM 1.8.x w
149 celu wczytania do nowego formatu GDBM.
150
151 %prep
152 %setup -q
153 %patch0 -p1
154 %patch1 -p1
155 %patch2 -p1
156
157 %build
158 %{__libtoolize}
159 %{__aclocal}
160 %{__autoheader}
161 %{__autoconf}
162 %{__automake}
163 %configure \
164         --enable-libgdbm-compat \
165         --disable-silent-rules \
166 %if %{with gdbmexport}
167         --enable-gdbm-export \
168         --with-gdbm183-includedir=%{_includedir}/gdbm-1.8 \
169         --with-gdbm183-library="-lgdbm-1.8"
170 %endif
171
172 %{__make}
173
174 %install
175 rm -rf $RPM_BUILD_ROOT
176
177 %{__make} install \
178         DESTDIR=$RPM_BUILD_ROOT
179
180 %find_lang %{name}
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %post   -p /sbin/ldconfig
186 %postun -p /sbin/ldconfig
187
188 %post   devel -p /sbin/postshell
189 -/usr/sbin/fix-info-dir -c %{_infodir}
190
191 %postun devel -p /sbin/postshell
192 -/usr/sbin/fix-info-dir -c %{_infodir}
193
194 %files -f %{name}.lang
195 %defattr(644,root,root,755)
196 %doc AUTHORS ChangeLog NEWS NOTE-WARNING README
197 %attr(755,root,root) %{_bindir}/gdbm_dump
198 %attr(755,root,root) %{_bindir}/gdbm_load
199 %attr(755,root,root) %{_bindir}/gdbmtool
200 %attr(755,root,root) %{_libdir}/libgdbm.so.*.*.*
201 %attr(755,root,root) %ghost %{_libdir}/libgdbm.so.5
202 %attr(755,root,root) %{_libdir}/libgdbm_compat.so.*.*.*
203 %attr(755,root,root) %ghost %{_libdir}/libgdbm_compat.so.4
204 %{_mandir}/man1/gdbm_dump.1*
205 %{_mandir}/man1/gdbm_load.1*
206 %{_mandir}/man1/gdbmtool.1*
207
208 %files devel
209 %defattr(644,root,root,755)
210 %attr(755,root,root) %{_libdir}/libgdbm.so
211 %attr(755,root,root) %{_libdir}/libgdbm_compat.so
212 %{_libdir}/libgdbm.la
213 %{_libdir}/libgdbm_compat.la
214 %{_includedir}/dbm.h
215 %{_includedir}/gdbm.h
216 %{_includedir}/ndbm.h
217 %{_mandir}/man3/gdbm.3*
218 %{_infodir}/gdbm.info*
219
220 %files static
221 %defattr(644,root,root,755)
222 %{_libdir}/libgdbm.a
223 %{_libdir}/libgdbm_compat.a
224
225 %if %{with gdbmexport}
226 %files export
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_bindir}/gdbmexport
229 %endif
This page took 0.053365 seconds and 4 git commands to generate.