]> git.pld-linux.org Git - packages/gdbm18.git/blame - gdbm18.spec
- x32 rebuild
[packages/gdbm18.git] / gdbm18.spec
CommitLineData
b8a757f9
JB
1Summary: GNU database library for C - version 1.8
2Summary(de.UTF-8): GNU-Datenbank-Library für C v1.8
3Summary(fr.UTF-8): La librairie GNU de bases de données pout le langage C v1.8
4Summary(pl.UTF-8): Biblioteka GNU bazy danych dla języka C - wersja 1.8
5Summary(ru.UTF-8): Библиотека базы данных GNU для C v1.8
6Summary(uk.UTF-8): Бібліотека бази даних GNU для C v1.8
7Name: gdbm18
835d3328 8Version: 1.8.3
8c43ddb7 9Release: 2
b8a757f9 10License: GPL v2+
03da4d9a 11Group: Libraries
b8a757f9 12Source0: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
7a19abbe 13# Source0-md5: 1d1b1d5c0245b1c00aff92da751e9aa1
9fc1e73d 14Patch0: %{name}-info.patch
835d3328 15Patch1: %{name}-jbj.patch
ca8625ff 16Patch2: %{name}-linking.patch
4d6575f1 17Patch3: %{name}-link-compat.patch
9b76f2a0 18Patch4: %{name}-make-jN.patch
bf56f9e0 19BuildRequires: autoconf
c92eb432 20BuildRequires: automake
86c00787 21BuildRequires: libtool
22BuildRequires: texinfo
0d734a88 23Obsoletes: libgdbm2
b8a757f9 24Obsoletes: gdbm < 1.9
bf9d2c3d 25BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
4ecee86d 26
27%description
82a0b01e 28gdbm is a GNU database indexing library, including routines which use
29extensible hashing. gdbm works in a similar way to standard UNIX dbm
30routines. gdbm is useful for developers who write C applications and
88034fdf 31need access to a simple and efficient database or who are building C
751347f1 32applications which will use such a database.
4ecee86d 33
b8a757f9 34This package contains gdbm 1.8.x libraries for compatibility.
03da4d9a 35
64436380
JR
36%description -l pl.UTF-8
37W pakiecie znajduje się biblioteka indeksowania bazy danych.
38Biblioteka ta jest szczególnie użyteczna dla ludzi, którzy piszą
39oprogramowanie w C i potrzebują prostej i szybkiej bazy danych, lub
40dla tych którzy piszą programy w C z wykorzystaniem tej biblioteki.
41
b8a757f9
JB
42Ten pakiet zawiera biblioteki gdbm w wersji 1.8.x dla zachowania
43kompatybilności.
0d734a88 44
4ecee86d 45%package devel
b8a757f9
JB
46Summary: Header files for gdbm 1.8
47Summary(de.UTF-8): Header-Dateien für gdbm 1.8
48Summary(fr.UTF-8): Bibliothèques de développement et en-têtes pour gdbm 1.8
49Summary(pl.UTF-8): Pliki nagłówkowe dla gdbm 1.8
50Summary(ru.UTF-8): Библиотека и хедеры gdbm 1.8 для разработчиков
51Summary(tr.UTF-8): gdbm 1.8 için başlık dosyaları ve geliştirme kitaplıkları
52Summary(uk.UTF-8): Бібліотека та хедери gdbm 1.8 для програмістів
03da4d9a 53Group: Development/Libraries
bf9d2c3d 54Requires: %{name} = %{version}-%{release}
0d734a88 55Obsoletes: libgdbm2-devel
4ecee86d 56
57%description devel
b8a757f9
JB
58These are the header files for gdbm 1.8, the GNU database system.
59These are required if you plan to do development using the gdbm
60database.
4ecee86d 61
64436380 62%description devel -l pl.UTF-8
b8a757f9
JB
63W pakiecie tym znajdują się pliki nagłówkowe dla systemu bazy danych
64GNU w wersji 1.8.
0d734a88 65
4ecee86d 66%package static
b8a757f9
JB
67Summary: Static gdbm 1.8 libraries
68Summary(pl.UTF-8): Biblioteki statyczne gdbm 1.8
69Summary(ru.UTF-8): Статическая библиотека gdbm 1.8
70Summary(uk.UTF-8): Статична бібліотека gdbm 1.8
03da4d9a 71Group: Development/Libraries
bf9d2c3d 72Requires: %{name}-devel = %{version}-%{release}
4ecee86d 73
74%description static
b8a757f9 75Static gdbm 1.8 libraries.
4ecee86d 76
64436380 77%description static -l pl.UTF-8
b8a757f9 78Biblioteki 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
104rm -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
110install -d $RPM_BUILD_ROOT%{_includedir}/gdbm-1.8
111mv $RPM_BUILD_ROOT%{_includedir}/*.h $RPM_BUILD_ROOT%{_includedir}/gdbm-1.8
112for 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}
115done
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
122rm -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
This page took 0.143735 seconds and 4 git commands to generate.