]> git.pld-linux.org Git - packages/gdbm18.git/blob - gdbm18.spec
- x32 rebuild
[packages/gdbm18.git] / gdbm18.spec
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
8 Version:        1.8.3
9 Release:        2
10 License:        GPL v2+
11 Group:          Libraries
12 Source0:        http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
13 # Source0-md5:  1d1b1d5c0245b1c00aff92da751e9aa1
14 Patch0:         %{name}-info.patch
15 Patch1:         %{name}-jbj.patch
16 Patch2:         %{name}-linking.patch
17 Patch3:         %{name}-link-compat.patch
18 Patch4:         %{name}-make-jN.patch
19 BuildRequires:  autoconf
20 BuildRequires:  automake
21 BuildRequires:  libtool
22 BuildRequires:  texinfo
23 Obsoletes:      libgdbm2
24 Obsoletes:      gdbm < 1.9
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
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
31 need access to a simple and efficient database or who are building C
32 applications which will use such a database.
33
34 This package contains gdbm 1.8.x libraries for compatibility.
35
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
42 Ten pakiet zawiera biblioteki gdbm w wersji 1.8.x dla zachowania
43 kompatybilności.
44
45 %package devel
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 для програмістів
53 Group:          Development/Libraries
54 Requires:       %{name} = %{version}-%{release}
55 Obsoletes:      libgdbm2-devel
56
57 %description devel
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.
61
62 %description devel -l pl.UTF-8
63 W pakiecie tym znajdują się pliki nagłówkowe dla systemu bazy danych
64 GNU w wersji 1.8.
65
66 %package static
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
71 Group:          Development/Libraries
72 Requires:       %{name}-devel = %{version}-%{release}
73
74 %description static
75 Static gdbm 1.8 libraries.
76
77 %description static -l pl.UTF-8
78 Biblioteki statyczne gdbm 1.8.
79
80 %description static -l ru.UTF-8
81 Это статическая библиотека gdbm 1.8, базы данных GNU.
82
83 %description static -l uk.UTF-8
84 Це статична бібліотека gdbm 1.8, бази даних GNU.
85
86 %prep
87 %setup -q -n gdbm-%{version}
88 %patch0 -p1
89 %patch1 -p1
90 %patch2 -p1
91 %patch3 -p1
92 %patch4 -p1
93
94 %build
95 %{__libtoolize}
96 %{__aclocal}
97 %{__autoheader}
98 %{__autoconf}
99 %configure
100
101 %{__make}
102
103 %install
104 rm -rf $RPM_BUILD_ROOT
105
106 %{__make} -j1 install install-compat \
107         INSTALL_ROOT=$RPM_BUILD_ROOT \
108         BINOWN=`id -u` BINGRP=`id -g`
109
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
121 %clean
122 rm -rf $RPM_BUILD_ROOT
123
124 %post   -p /sbin/ldconfig
125 %postun -p /sbin/ldconfig
126
127 %post   devel -p /sbin/postshell
128 -/usr/sbin/fix-info-dir -c %{_infodir}
129
130 %postun devel -p /sbin/postshell
131 -/usr/sbin/fix-info-dir -c %{_infodir}
132
133 %files
134 %defattr(644,root,root,755)
135 %doc ChangeLog NEWS README
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
140
141 %files devel
142 %defattr(644,root,root,755)
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
146
147 %files static
148 %defattr(644,root,root,755)
149 %{_libdir}/libgdbm-1.8.a
150 %{_libdir}/libgdbm_compat-1.8.a
This page took 0.117341 seconds and 3 git commands to generate.