X-Git-Url: http://git.pld-linux.org/?p=packages%2Fgdbm.git;a=blobdiff_plain;f=gdbm.spec;h=b97ffb1364bf170c16533cedc062bf0503a80eec;hp=005d565f00fafe0befb3157445ca5cd2d2ddfa3e;hb=ade3666e7bbbd094b103066d776f1854fca6b0ee;hpb=d05a675c332829bf295efa487b2d4f218080a623 diff --git a/gdbm.spec b/gdbm.spec index 005d565..b97ffb1 100644 --- a/gdbm.spec +++ b/gdbm.spec @@ -1,182 +1,205 @@ +# +# Conditional build: +%bcond_without tests # unit tests + Summary: GNU database library for C -Summary(de): GNU-Datenbank-Library für C -Summary(fr): La librairie GNU de bases de données pout le langage C. -Summary(pl): GNU biblioteka bazy danych la jêzyka C +Summary(de.UTF-8): GNU-Datenbank-Library für C +Summary(fr.UTF-8): La librairie GNU de bases de données pout le langage C +Summary(pl.UTF-8): Biblioteka GNU bazy danych dla języka C +Summary(ru.UTF-8): Библиотека базы данных GNU для C +Summary(uk.UTF-8): Бібліотека бази даних GNU для C Name: gdbm -Version: 1.7.3 -Release: 21 -Copyright: GPL +Version: 1.17 +Release: 1 +License: GPL v3+ Group: Libraries -Group(pl): Biblioteki -Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz -Patch0: gdbm-shlib.patch -Patch1: gdbm-info.patch -Buildroot: /tmp/%{name}-%{version}-root +Source0: http://ftp.gnu.org/gnu/gdbm/%{name}-%{version}.tar.gz +# Source0-md5: f20ce117abc6f302ecf62c34d41c1ecf +Patch0: %{name}-info.patch +Patch1: %{name}-link-compat.patch +Patch2: %{name}-link.patch +URL: http://www.gnu.org/software/gdbm/ +BuildRequires: autoconf >= 2.69 +BuildRequires: automake >= 1:1.11 +BuildRequires: gettext-tools >= 0.18 +BuildRequires: libtool +BuildRequires: readline-devel +BuildRequires: texinfo +Obsoletes: libgdbm2 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description -This is a database indexing library. It is useful for those who need -to write C applications and need access to a simple and efficient -database or build C applications which use it. - -%description -l de -Dies ist eine Datenbank-Index-Library für Programmierer, die -C-Anwendungen schreiben und eine einfache und leistungsfähige -Datenbank benötigen oder diese in C-Anwendungen einsetzen möchten. - -%description -l fr -Une librairie d'indexation de bases de données. Elle est utile pour ceux -qui désirent écrivent des applications en C et ont besion d'accéder à -une base de données simple et efficace ou de construire une application -en C qui l'utilise. - -%description -l pl -W pakiecie znajduje siê biblioteka indeksowania bazy danych. Biblioteka -ta jest szczególnie uzyteczna dla ludzi, którzy pisz± oprogramowanie w C -i potrzebuj± prostej i szybkiej bazy danych, lub dla tych którzy pisz± -programy w C z wykorzystaniem tej biblioteki. - -%description -l tr -gdbm bir veri tabaný dizinleme kitaplýðýdýr. C uygulamalarý yazýp basit ve -etkin bir þekilde veri tabanýna ulaþmak isteyenler için yararlý olacaktýr. +gdbm is a GNU database indexing library, including routines which use +extensible hashing. gdbm works in a similar way to standard UNIX dbm +routines. gdbm is useful for developers who write C applications and +need access to a simple and efficient database or who are building C +applications which will use such a database. + +%description -l de.UTF-8 +Dies ist eine Datenbank-Index-Library für Programmierer, die +C-Anwendungen schreiben und eine einfache und leistungsfähige +Datenbank benötigen oder diese in C-Anwendungen einsetzen möchten. + +%description -l fr.UTF-8 +Une librairie d'indexation de bases de données. Elle est utile pour +ceux qui désirent écrivent des applications en C et ont besion +d'accéder à une base de données simple et efficace ou de construire +une application en C qui l'utilise. + +%description -l pl.UTF-8 +W pakiecie znajduje się biblioteka indeksowania bazy danych. +Biblioteka ta jest szczególnie użyteczna dla ludzi, którzy piszą +oprogramowanie w C i potrzebują prostej i szybkiej bazy danych, lub +dla tych którzy piszą programy w C z wykorzystaniem tej biblioteki. + +%description -l tr.UTF-8 +gdbm bir veri tabanı dizinleme kitaplığıdır. C uygulamaları yazıp +basit ve etkin bir şekilde veri tabanına ulaşmak isteyenler için +yararlı olacaktır. + +%description -l ru.UTF-8 +Это библиотека для работы с индексированной базой данных. Полезна для +тех, кто разрабатывает программы на C и кому нужен доступ к простой и +эффективной базе данных либо требуется написать программу, которая ее +использует. + +%description -l uk.UTF-8 +Це бібліотека для роботи з індексованою базою даних. Корисна для тих, +хто розробляє програми на C і кому потрібен доступ до простої та +ефективної бази даних або потрібно написати програму, що її +використовує. %package devel Summary: development libraries and header files for gdbm -Summary(de): Entwicklungs-Libraries und Header-Dateien für gdbm -Summary(fr): Bibliothèques de développement et en-têtes pour gdbm -Summary(pl): Biblioteki i pliki nag³ówkowe dla gdbm -Summary(tr): gdbm için baþlýk dosyalarý ve geliþtirme kitaplýklarý +Summary(de.UTF-8): Entwicklungs-Libraries und Header-Dateien für gdbm +Summary(fr.UTF-8): Bibliothèques de développement et en-têtes pour gdbm +Summary(pl.UTF-8): Biblioteki i pliki nagłówkowe dla gdbm +Summary(ru.UTF-8): Библиотека и хедеры gdbm для разработчиков +Summary(tr.UTF-8): gdbm için başlık dosyaları ve geliştirme kitaplıkları +Summary(uk.UTF-8): Бібліотека та хедери gdbm для програмістів Group: Development/Libraries -Group(pl): Programowanie/Biblioteki -Requires: %{name} = %{version} -Prereq: /sbin/install-info +Requires: %{name} = %{version}-%{release} +Obsoletes: libgdbm2-devel %description devel -These are the development libraries and header files for gdbm, the -GNU database system. These are required if you plan to do -development using the gdbm database. +These are the development libraries and header files for gdbm, the GNU +database system. These are required if you plan to do development +using the gdbm database. -%description -l de devel -Dies sind die Entwicklungs-Libraries und Header-Dateien für gdbm, das +%description devel -l de.UTF-8 +Dies sind die Entwicklungs-Libraries und Header-Dateien für gdbm, das GNU-Datenbanksystem. Sie sind darauf angewiesen, wenn Sie vorhaben, -die gdbm-Datenbank für Entwicklungsarbeiten zu benutzen. +die gdbm-Datenbank für Entwicklungsarbeiten zu benutzen. + +%description devel -l fr.UTF-8 +Ce sont les librairies de développement et les fichiers d'en-tête pour +gdbm, le système de base de données GNU. Ceci est nécessaire si vous +désirez développer en utilisant la base de données gdbm. -%description -l fr devel -Ce sont les librairies de développement et les fichiers d'en-tête pour gdbm, -le système de base de données GNU. Ceci est nécessaire si vous désirez -développer en utilisant la base de données gdbm. +%description devel -l pl.UTF-8 +W pakiecie tym znajdują się pliki nagłówkowe i biblioteki dla systemu +bazy danych GNU. -%description -l pl devel -W pakiecie tym znajduj± siê pliki nag³ówkowe i biblioteki dla GNU -systemu bazy danych. +%description devel -l tr.UTF-8 +GNU veri tabanı sistemi gdbm ile program geliştirmek için gereken +başlık dosyaları ve kitaplıklar. -%description -l tr devel -GNU veri tabaný sistemi gdbm ile program geliþtirmek için gereken baþlýk -dosyalarý ve kitaplýklar. +%description devel -l ru.UTF-8 +Это библиотека для разработчиков и хедеры gdbm, базы данных GNU. Они +нужны, если вы собираетесь разрабатывать программы с использованием +gdbm. + +%description devel -l uk.UTF-8 +Це бібліотека для програмістів та хедери gdbm, бази даних GNU. Вони +потрібні, якщо ви збираєтесь розробляти програми з використанням gdbm. %package static Summary: Static gdbm library -Summary(pl): Biblioteki statyczne gdbm +Summary(pl.UTF-8): Biblioteki statyczne gdbm +Summary(ru.UTF-8): Статическая библиотека gdbm +Summary(uk.UTF-8): Статична бібліотека gdbm Group: Development/Libraries -Group(pl): Programowanie/Biblioteki -Requires: %{name}-devel = %{version} +Requires: %{name}-devel = %{version}-%{release} %description static Static gdbm library. +%description static -l pl.UTF-8 +Biblioteka statyczna gdbm. + +%description static -l ru.UTF-8 +Это статическая библиотека gdbm, базы данных GNU. + +%description static -l uk.UTF-8 +Це статична бібліотека gdbm, бази даних GNU. + %prep %setup -q %patch0 -p1 %patch1 -p1 -mkdir shared +%patch2 -p1 %build -./configure --prefix=/usr -make -make shared -makeinfo gdbm.texinfo +%{__libtoolize} +%{__aclocal} +%{__autoheader} +%{__autoconf} +%{__automake} +%configure \ + --enable-libgdbm-compat \ + --disable-silent-rules + +%{__make} + +%{?with_tests:%{__make} check} %install rm -rf $RPM_BUILD_ROOT -install -d $RPM_BUILD_ROOT/usr/{lib,include,info,man/man3} -make install prefix=$RPM_BUILD_ROOT/usr -ln -sf libgdbm.so.2.0.0 $RPM_BUILD_ROOT/usr/lib/libgdbm.so -strip --strip-unneeded $RPM_BUILD_ROOT/usr/lib/lib*.so.*.* +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT -gzip -fn9 $RPM_BUILD_ROOT/usr/{info/gdbm*info*,man/man3/*} +%find_lang %{name} -%post -p /sbin/ldconfig - -%post devel -/sbin/install-info /usr/info/gdbm.info.gz /etc/info-dir +%clean +rm -rf $RPM_BUILD_ROOT +%post -p /sbin/ldconfig %postun -p /sbin/ldconfig -%preun devel -if [ "$1" = "0" ]; then - /sbin/install-info --delete /usr/info/gdbm.info.gz /etc/info-dir -fi +%post devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%clean -rm -rf $RPM_BUILD_ROOT +%postun devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} -%files -%attr(755,root,root) /usr/lib/lib*.so.*.* +%files -f %{name}.lang +%defattr(644,root,root,755) +%doc AUTHORS ChangeLog NEWS NOTE-WARNING README +%attr(755,root,root) %{_bindir}/gdbm_dump +%attr(755,root,root) %{_bindir}/gdbm_load +%attr(755,root,root) %{_bindir}/gdbmtool +%attr(755,root,root) %{_libdir}/libgdbm.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libgdbm.so.6 +%attr(755,root,root) %{_libdir}/libgdbm_compat.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libgdbm_compat.so.4 +%{_mandir}/man1/gdbm_dump.1* +%{_mandir}/man1/gdbm_load.1* +%{_mandir}/man1/gdbmtool.1* %files devel %defattr(644,root,root,755) -%attr(755,root,root) /usr/lib/lib*.so -/usr/man/man3/* -/usr/include/* -/usr/info/gdbm* +%attr(755,root,root) %{_libdir}/libgdbm.so +%attr(755,root,root) %{_libdir}/libgdbm_compat.so +%{_libdir}/libgdbm.la +%{_libdir}/libgdbm_compat.la +%{_includedir}/dbm.h +%{_includedir}/gdbm.h +%{_includedir}/ndbm.h +%{_mandir}/man3/gdbm.3* +%{_infodir}/gdbm.info* %files static -%attr(644,root,root) /usr/lib/lib*.a - -%changelog -* Sun Mar 14 1999 Tomasz K³oczko - [1.7.3-21] -- added --strip-unneeded parameter on striping shared libraries, -- removed man group from man pages. - -* Wed Sep 30 1998 Wojtek ¦lusarczyk -- build against glibc-2.1, -- translation modified for pl. - -* Mon Jan 04 1999 Tomasz K³oczko - [1.7.3-20] -- standarized {un}registering info pages (added gdbm-info.patch), -- added gzipping man pages. - -* Sun Nov 22 1998 Tomasz K³oczko - [1.7.3-19] -- removed "Prereq: /sbin/install-info" from static, -- fixed --entry text on {un}registering info page for ed in %post - %preun in devel. - -* Sun Aug 30 1998 Tomasz K³oczko - [1.7.3-18] -- added -q %setup parameter, -- changed Buildroot to /tmp/%%{name}-%%{version}-root, -- added using %%{name} and %%{version} in Source, -- added static subpackage, -- changed dependencies to "Requires: %%{name} = %%{version}" in devel - subpackage, -- added stripping shared libraries, -- added %attr and %defattr macros in %files (allows build package from - non-root account). - -* Thu May 07 1998 Prospector System -- translations modified for de, fr, tr - -* Thu Apr 30 1998 Cristian Gafton -- gdbm-devel moved to Development/Libraries - -* Wed Apr 08 1998 Cristian Gafton -- buildroot and built for Manhattan - -* Tue Oct 14 1997 Donnie Barnes -- spec file cleanups - -* Thu Jun 12 1997 Erik Troan -- built against glibc +%defattr(644,root,root,755) +%{_libdir}/libgdbm.a +%{_libdir}/libgdbm_compat.a