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