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