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