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