X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=gdbm18.spec;h=3e78af8b6f0eaf2ca27ce707f6f1dd4f4c9382f4;hb=1a65557e2bf59b48a3905d5a28611b93a0085033;hp=022909ffff19ec15f1956139cac084c03f6d5199;hpb=336018c667ee25cf2dd1983518ec488fc56ca17a;p=packages%2Fgdbm18.git diff --git a/gdbm18.spec b/gdbm18.spec index 022909f..3e78af8 100644 --- a/gdbm18.spec +++ b/gdbm18.spec @@ -1,28 +1,56 @@ -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. -Name: gdbm -Version: 1.7.3 -Release: 18 -Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz -Patch: gdbm-1.7.3-shlib.patch -Copyright: GPL -Group: Libraries -Buildroot: /tmp/%{name}-%{version}-root +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 +Name: gdbm +Version: 1.8.0 +Release: 2 +Copyright: GPL +Group: Libraries +Group(pl): Biblioteki +Source: ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz +Patch0: gdbm-info.patch +Patch1: gdbm-DESTDIR.patch +BuildRequires: libtool +BuildRequires: autoconf +Buildroot: /tmp/%{name}-%{version}-root %description -This is a database indexing library. It is useful for those who need +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. + %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(tr): gdbm için baþlýk dosyalarý ve geliþtirme kitaplýklarý -Group: Development/Libraries -Requires: %{name} = %{version} -Prereq: /sbin/install-info +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ý +Group: Development/Libraries +Group(pl): Programowanie/Biblioteki +Requires: %{name} = %{version} +Prereq: /sbin/install-info %description devel These are the development libraries and header files for gdbm, the @@ -34,110 +62,92 @@ Dies sind die Entwicklungs-Libraries und Header-Dateien f GNU-Datenbanksystem. Sie sind darauf angewiesen, wenn Sie vorhaben, die gdbm-Datenbank für Entwicklungsarbeiten zu benutzen. -%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 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 -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 devel +W pakiecie tym znajduj± siê pliki nag³ówkowe i biblioteki dla GNU +systemu bazy danych. %description -l tr devel GNU veri tabaný sistemi gdbm ile program geliþtirmek için gereken baþlýk dosyalarý ve kitaplýklar. -%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. - %package static -Summary: static gdbm library -Group: Development/Libraries -Requires: %{name}-devel = %{version} -Prereq: /sbin/install-info +Summary: Static gdbm library +Summary(pl): Biblioteki statyczne gdbm +Group: Development/Libraries +Group(pl): Programowanie/Biblioteki +Requires: %{name}-devel = %{version} %description static Static gdbm library. %prep -%setup -q -%patch -p1 -b .shared -mkdir shared +%setup -q +%patch0 -p1 +%patch1 -p1 %build -./configure --prefix=/usr -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" -make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" shared +libtoolize --copy --force +aclocal +autoheader +autoconf +%configure + +make CFLAGS="$RPM_OPT_FLAGS" + +makeinfo gdbm.texinfo %install rm -rf $RPM_BUILD_ROOT -mkdir -p $RPM_BUILD_ROOT/usr/{lib,include,info,man/man3} -make install prefix=$RPM_BUILD_ROOT/usr -gzip -fn9 $RPM_BUILD_ROOT/usr/info/gdbm*info* -ln -sf libgdbm.so.2.0.0 $RPM_BUILD_ROOT/usr/lib/libgdbm.so +install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} \ + $RPM_BUILD_ROOT{%{_mandir}/man3,%{_infodir}} + +make install \ + prefix=%{_prefix} \ + exec_prefix=%{_exec_prefix} \ + binprefix=%{_exec_prefix} \ + manprefix=%{_prefix} \ + libdir=%{_libdir} \ + includedir=%{_includedir} \ + infodir=%{_infodir} \ + man3dir=%{_mandir}/man3 \ + DESTDIR=$RPM_BUILD_ROOT + +strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.* -strip $RPM_BUILD_ROOT/usr/lib/lib*.so.*.* +gzip -fn9 $RPM_BUILD_ROOT{%{_infodir}/gdbm*info*,%{_mandir}/man3/*} %post -p /sbin/ldconfig %post devel -/sbin/install-info /usr/info/gdbm.info.gz /usr/info/dir --entry="* gdbm: (gdbm). The GNU Database." +/sbin/install-info %{_infodir}/gdbm.info.gz /etc/info-dir %postun -p /sbin/ldconfig %preun devel -if [ $1 = 0 ]; then - /sbin/install-info --delete /usr/info/gdbm.info.gz /usr/info/dir --entry="* gdbm: (gdbm). The GNU Database." +if [ "$1" = "0" ]; then + /sbin/install-info --delete %{_infodir}/gdbm.info.gz /etc/info-dir fi %clean rm -rf $RPM_BUILD_ROOT %files -%attr(755, root, root) /usr/lib/lib*.so.*.* +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so.*.* %files devel -%defattr(644, root, root, 755) -/usr/lib/lib*.so -%attr(644, root, man) /usr/man/man3/* -/usr/include/* -/usr/info/gdbm* +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/lib*.so +%attr(755,root,root) %{_libdir}/lib*.la +%{_mandir}/man3/* +%{_includedir}/* +%{_infodir}/gdbm* %files static -%attr(644, root, root) /usr/lib/lib*.a - -%changelog -* 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, -- changeded dependences to "Requires: %%{name} = %%{version}" in devel - subpackage, -- added striping shared libraries, -- added %attr and %defattr macros in %files (allow 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}/lib*.a