]>
Commit | Line | Data |
---|---|---|
b8a757f9 JB |
1 | Summary: GNU database library for C - version 1.8 |
2 | Summary(de.UTF-8): GNU-Datenbank-Library für C v1.8 | |
3 | Summary(fr.UTF-8): La librairie GNU de bases de données pout le langage C v1.8 | |
4 | Summary(pl.UTF-8): Biblioteka GNU bazy danych dla języka C - wersja 1.8 | |
5 | Summary(ru.UTF-8): Библиотека базы данных GNU для C v1.8 | |
6 | Summary(uk.UTF-8): Бібліотека бази даних GNU для C v1.8 | |
7 | Name: gdbm18 | |
835d3328 | 8 | Version: 1.8.3 |
8c43ddb7 | 9 | Release: 2 |
b8a757f9 | 10 | License: GPL v2+ |
03da4d9a | 11 | Group: Libraries |
b8a757f9 | 12 | Source0: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz |
7a19abbe | 13 | # Source0-md5: 1d1b1d5c0245b1c00aff92da751e9aa1 |
9fc1e73d | 14 | Patch0: %{name}-info.patch |
835d3328 | 15 | Patch1: %{name}-jbj.patch |
ca8625ff | 16 | Patch2: %{name}-linking.patch |
4d6575f1 | 17 | Patch3: %{name}-link-compat.patch |
9b76f2a0 | 18 | Patch4: %{name}-make-jN.patch |
bf56f9e0 | 19 | BuildRequires: autoconf |
c92eb432 | 20 | BuildRequires: automake |
86c00787 | 21 | BuildRequires: libtool |
22 | BuildRequires: texinfo | |
0d734a88 | 23 | Obsoletes: libgdbm2 |
b8a757f9 | 24 | Obsoletes: gdbm < 1.9 |
bf9d2c3d | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
4ecee86d | 26 | |
27 | %description | |
82a0b01e | 28 | gdbm is a GNU database indexing library, including routines which use |
29 | extensible hashing. gdbm works in a similar way to standard UNIX dbm | |
30 | routines. gdbm is useful for developers who write C applications and | |
88034fdf | 31 | need access to a simple and efficient database or who are building C |
751347f1 | 32 | applications which will use such a database. |
4ecee86d | 33 | |
b8a757f9 | 34 | This package contains gdbm 1.8.x libraries for compatibility. |
03da4d9a | 35 | |
64436380 JR |
36 | %description -l pl.UTF-8 |
37 | W pakiecie znajduje się biblioteka indeksowania bazy danych. | |
38 | Biblioteka ta jest szczególnie użyteczna dla ludzi, którzy piszą | |
39 | oprogramowanie w C i potrzebują prostej i szybkiej bazy danych, lub | |
40 | dla tych którzy piszą programy w C z wykorzystaniem tej biblioteki. | |
41 | ||
b8a757f9 JB |
42 | Ten pakiet zawiera biblioteki gdbm w wersji 1.8.x dla zachowania |
43 | kompatybilności. | |
0d734a88 | 44 | |
4ecee86d | 45 | %package devel |
b8a757f9 JB |
46 | Summary: Header files for gdbm 1.8 |
47 | Summary(de.UTF-8): Header-Dateien für gdbm 1.8 | |
48 | Summary(fr.UTF-8): Bibliothèques de développement et en-têtes pour gdbm 1.8 | |
49 | Summary(pl.UTF-8): Pliki nagłówkowe dla gdbm 1.8 | |
50 | Summary(ru.UTF-8): Библиотека и хедеры gdbm 1.8 для разработчиков | |
51 | Summary(tr.UTF-8): gdbm 1.8 için başlık dosyaları ve geliştirme kitaplıkları | |
52 | Summary(uk.UTF-8): Бібліотека та хедери gdbm 1.8 для програмістів | |
03da4d9a | 53 | Group: Development/Libraries |
bf9d2c3d | 54 | Requires: %{name} = %{version}-%{release} |
0d734a88 | 55 | Obsoletes: libgdbm2-devel |
4ecee86d | 56 | |
57 | %description devel | |
b8a757f9 JB |
58 | These are the header files for gdbm 1.8, the GNU database system. |
59 | These are required if you plan to do development using the gdbm | |
60 | database. | |
4ecee86d | 61 | |
64436380 | 62 | %description devel -l pl.UTF-8 |
b8a757f9 JB |
63 | W pakiecie tym znajdują się pliki nagłówkowe dla systemu bazy danych |
64 | GNU w wersji 1.8. | |
0d734a88 | 65 | |
4ecee86d | 66 | %package static |
b8a757f9 JB |
67 | Summary: Static gdbm 1.8 libraries |
68 | Summary(pl.UTF-8): Biblioteki statyczne gdbm 1.8 | |
69 | Summary(ru.UTF-8): Статическая библиотека gdbm 1.8 | |
70 | Summary(uk.UTF-8): Статична бібліотека gdbm 1.8 | |
03da4d9a | 71 | Group: Development/Libraries |
bf9d2c3d | 72 | Requires: %{name}-devel = %{version}-%{release} |
4ecee86d | 73 | |
74 | %description static | |
b8a757f9 | 75 | Static gdbm 1.8 libraries. |
4ecee86d | 76 | |
64436380 | 77 | %description static -l pl.UTF-8 |
b8a757f9 | 78 | Biblioteki statyczne gdbm 1.8. |
c92eb432 | 79 | |
64436380 | 80 | %description static -l ru.UTF-8 |
b8a757f9 | 81 | Это статическая библиотека gdbm 1.8, базы данных GNU. |
0d734a88 | 82 | |
64436380 | 83 | %description static -l uk.UTF-8 |
b8a757f9 | 84 | Це статична бібліотека gdbm 1.8, бази даних GNU. |
0d734a88 | 85 | |
4ecee86d | 86 | %prep |
b8a757f9 | 87 | %setup -q -n gdbm-%{version} |
96581fd9 | 88 | %patch0 -p1 |
89 | %patch1 -p1 | |
ca8625ff | 90 | %patch2 -p1 |
4d6575f1 | 91 | %patch3 -p1 |
9b76f2a0 | 92 | %patch4 -p1 |
4ecee86d | 93 | |
94 | %build | |
dfeebbec | 95 | %{__libtoolize} |
35c9db21 | 96 | %{__aclocal} |
97 | %{__autoheader} | |
ba392457 | 98 | %{__autoconf} |
7007fff1 | 99 | %configure |
92b3abff | 100 | |
9b76f2a0 | 101 | %{__make} |
6d5f426e | 102 | |
4ecee86d | 103 | %install |
104 | rm -rf $RPM_BUILD_ROOT | |
301106c6 | 105 | |
1dda94fb | 106 | %{__make} -j1 install install-compat \ |
835d3328 JB |
107 | INSTALL_ROOT=$RPM_BUILD_ROOT \ |
108 | BINOWN=`id -u` BINGRP=`id -g` | |
92b3abff | 109 | |
b8a757f9 JB |
110 | install -d $RPM_BUILD_ROOT%{_includedir}/gdbm-1.8 |
111 | mv $RPM_BUILD_ROOT%{_includedir}/*.h $RPM_BUILD_ROOT%{_includedir}/gdbm-1.8 | |
112 | for ext in so a ; do | |
113 | mv $RPM_BUILD_ROOT%{_libdir}/libgdbm.${ext} $RPM_BUILD_ROOT%{_libdir}/libgdbm-1.8.${ext} | |
114 | mv $RPM_BUILD_ROOT%{_libdir}/libgdbm_compat.${ext} $RPM_BUILD_ROOT%{_libdir}/libgdbm_compat-1.8.${ext} | |
115 | done | |
116 | # don't mess with library name different from .so/.la, just drop libtool files | |
117 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libgdbm*.la | |
118 | # provided by main gdbm | |
119 | %{__rm} $RPM_BUILD_ROOT{%{_mandir}/man3/gdbm.3,%{_infodir}/gdbm.info*} | |
120 | ||
c92eb432 JB |
121 | %clean |
122 | rm -rf $RPM_BUILD_ROOT | |
123 | ||
9fc1e73d | 124 | %post -p /sbin/ldconfig |
125 | %postun -p /sbin/ldconfig | |
4ecee86d | 126 | |
b8a757f9 | 127 | %post devel -p /sbin/postshell |
9c1f3413 | 128 | -/usr/sbin/fix-info-dir -c %{_infodir} |
4ecee86d | 129 | |
b8a757f9 | 130 | %postun devel -p /sbin/postshell |
9c1f3413 | 131 | -/usr/sbin/fix-info-dir -c %{_infodir} |
4ecee86d | 132 | |
4ecee86d | 133 | %files |
de9837f8 | 134 | %defattr(644,root,root,755) |
835d3328 | 135 | %doc ChangeLog NEWS README |
b8a757f9 JB |
136 | %attr(755,root,root) %{_libdir}/libgdbm.so.*.*.* |
137 | %attr(755,root,root) %ghost %{_libdir}/libgdbm.so.3 | |
138 | %attr(755,root,root) %{_libdir}/libgdbm_compat.so.*.*.* | |
139 | %attr(755,root,root) %ghost %{_libdir}/libgdbm_compat.so.3 | |
4ecee86d | 140 | |
141 | %files devel | |
03da4d9a | 142 | %defattr(644,root,root,755) |
b8a757f9 JB |
143 | %attr(755,root,root) %{_libdir}/libgdbm-1.8.so |
144 | %attr(755,root,root) %{_libdir}/libgdbm_compat-1.8.so | |
145 | %{_includedir}/gdbm-1.8 | |
4ecee86d | 146 | |
147 | %files static | |
de9837f8 | 148 | %defattr(644,root,root,755) |
b8a757f9 JB |
149 | %{_libdir}/libgdbm-1.8.a |
150 | %{_libdir}/libgdbm_compat-1.8.a |