]> git.pld-linux.org Git - packages/gdbm.git/blobdiff - gdbm.spec
- massive attack: no need for 755 for *.la
[packages/gdbm.git] / gdbm.spec
index 8d8346b08fd0d6ebc40639f74612b93219a52a1d..c6f1aba930ab7a5d8bee727485878fb011e04619 100644 (file)
--- a/gdbm.spec
+++ b/gdbm.spec
@@ -1,21 +1,24 @@
 Summary:       GNU database library for C
 Summary(de):   GNU-Datenbank-Library für C
 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(fr):   La librairie GNU de bases de données pout le langage C
+Summary(pl):   Biblioteka GNU bazy danych dla jêzyka C
+Summary(ru):   âÉÂÌÉÏÔÅËÁ ÂÁÚÙ ÄÁÎÎÙÈ GNU ÄÌÑ C
+Summary(uk):   â¦Â̦ÏÔÅËÁ ÂÁÚÉ ÄÁÎÉÈ GNU ÄÌÑ C
 Name:          gdbm
 Version:       1.8.0
 Name:          gdbm
 Version:       1.8.0
-Release:       4
+Release:       16
 License:       GPL
 Group:         Libraries
 License:       GPL
 Group:         Libraries
-Group(fr):     Librairies
-Group(pl):     Biblioteki
 Source0:       ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
 Source0:       ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Patch0:                gdbm-info.patch
-Patch1:                gdbm-DESTDIR.patch
-Patch2:                gdbm-jbj.patch
-BuildRequires: libtool
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-DESTDIR.patch
+Patch2:                %{name}-jbj.patch
 BuildRequires: autoconf
 BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: libtool
+BuildRequires: texinfo
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+Obsoletes:     libgdbm2
 
 %description
 Gdbm is a GNU database indexing library, including routines which use
 
 %description
 Gdbm is a GNU database indexing library, including routines which use
@@ -37,7 +40,7 @@ une application en C qui l'utilise.
 
 %description -l pl
 W pakiecie znajduje siê biblioteka indeksowania bazy danych.
 
 %description -l pl
 W pakiecie znajduje siê biblioteka indeksowania bazy danych.
-Biblioteka ta jest szczególnie uzyteczna dla ludzi, którzy pisz±
+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.
 
 oprogramowanie w C i potrzebuj± prostej i szybkiej bazy danych, lub
 dla tych którzy pisz± programy w C z wykorzystaniem tej biblioteki.
 
@@ -46,51 +49,82 @@ gdbm bir veri taban
 basit ve etkin bir þekilde veri tabanýna ulaþmak isteyenler için
 yararlý olacaktýr.
 
 basit ve etkin bir þekilde veri tabanýna ulaþmak isteyenler için
 yararlý olacaktýr.
 
+%description -l ru
+üÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÒÁÂÏÔÙ Ó ÉÎÄÅËÓÉÒÏ×ÁÎÎÏÊ ÂÁÚÏÊ ÄÁÎÎÙÈ. ðÏÌÅÚÎÁ ÄÌÑ
+ÔÅÈ, ËÔÏ ÒÁÚÒÁÂÁÔÙ×ÁÅÔ ÐÒÏÇÒÁÍÍÙ ÎÁ C É ËÏÍÕ ÎÕÖÅΠÄÏÓÔÕРˠÐÒÏÓÔÏÊ É
+ÜÆÆÅËÔÉ×ÎÏÊ ÂÁÚÅ ÄÁÎÎÙÈ ÌÉÂÏ ÔÒÅÂÕÅÔÓÑ ÎÁÐÉÓÁÔØ ÐÒÏÇÒÁÍÍÕ, ËÏÔÏÒÁÑ ÅÅ
+ÉÓÐÏÌØÚÕÅÔ.
+
+%description -l uk
+㊦Â̦ÏÔÅËÁ ÄÌÑ ÒÏÂÏÔÉ Ú ¦ÎÄÅËÓÏ×ÁÎÏÀ ÂÁÚÏÀ ÄÁÎÉÈ. ëÏÒÉÓÎÁ ÄÌÑ ÔÉÈ,
+ÈÔÏ ÒÏÚÒÏÂÌѤ ÐÒÏÇÒÁÍÉ ÎÁ C ¦ ËÏÍÕ ÐÏÔÒ¦ÂÅΠÄÏÓÔÕРÄÏ ÐÒÏÓÔϧ ÔÁ
+ÅÆÅËÔÉ×Îϧ ÂÁÚÉ ÄÁÎÉÈ ÁÂÏ ÐÏÔÒ¦ÂÎÏ ÎÁÐÉÓÁÔÉ ÐÒÏÇÒÁÍÕ, ÝÏ §§
+×ÉËÏÒÉÓÔÏ×Õ¤.
+
 %package devel
 Summary:       development libraries and header files for gdbm
 %package devel
 Summary:       development libraries and header files for gdbm
-Summary(de):   Entwicklungs-Libraries und Header-Dateien für 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(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(ru):   âÉÂÌÉÏÔÅËÁ É ÈÅÄÅÒÙ gdbm ÄÌÑ ÒÁÚÒÁÂÏÔÞÉËÏ×
+Summary(uk):   â¦Â̦ÏÔÅËÁ ÔÁ ÈÅÄÅÒÉ gdbm ÄÌÑ ÐÒÏÇÒÁͦÓÔ¦×
 Group:         Development/Libraries
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
 Requires:      %{name} = %{version}
+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.
 
 
 %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.
 
-%description -l de devel
+%description devel -l de
 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.
 
 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.
 
-%description -l fr devel
+%description devel -l fr
 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.
 
 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 pl devel
-W pakiecie tym znajduj± siê pliki nag³ówkowe i biblioteki dla GNU
-systemu bazy danych.
+%description devel -l pl
+W pakiecie tym znajduj± siê pliki nag³ówkowe i biblioteki dla systemu
+bazy danych GNU.
 
 
-%description -l tr devel
+%description devel -l tr
 GNU veri tabaný sistemi gdbm ile program geliþtirmek için gereken
 baþlýk dosyalarý ve kitaplýklar.
 
 GNU veri tabaný sistemi gdbm ile program geliþtirmek için gereken
 baþlýk dosyalarý ve kitaplýklar.
 
+%description devel -l ru
+üÔÏ ÂÉÂÌÉÏÔÅËÁ ÄÌÑ ÒÁÚÒÁÂÏÔÞÉËÏ× É ÈÅÄÅÒÙ gdbm, ÂÁÚÙ ÄÁÎÎÙÈ GNU. ïÎÉ
+ÎÕÖÎÙ, ÅÓÌÉ ×Ù ÓÏÂÉÒÁÅÔÅÓØ ÒÁÚÒÁÂÁÔÙ×ÁÔØ ÐÒÏÇÒÁÍÍÙ Ó ÉÓÐÏÌØÚÏ×ÁÎÉÅÍ
+gdbm.
+
+%description devel -l uk
+㊦Â̦ÏÔÅËÁ ÄÌÑ ÐÒÏÇÒÁͦÓԦנÔÁ ÈÅÄÅÒÉ gdbm, ÂÁÚÉ ÄÁÎÉÈ GNU. ÷ÏÎÉ
+ÐÏÔÒ¦ÂΦ, ÑËÝÏ ×É ÚÂÉÒÁ¤ÔÅÓØ ÒÏÚÒÏÂÌÑÔÉ ÐÒÏÇÒÁÍÉ Ú ×ÉËÏÒÉÓÔÁÎÎÑÍ gdbm.
+
 %package static
 Summary:       Static gdbm library
 Summary(pl):   Biblioteki statyczne gdbm
 %package static
 Summary:       Static gdbm library
 Summary(pl):   Biblioteki statyczne gdbm
+Summary(uk):   óÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ gdbm
+Summary(ru):   óÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ gdbm
 Group:         Development/Libraries
 Group:         Development/Libraries
-Group(fr):     Development/Librairies
-Group(pl):     Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
 
 %description static
 Static gdbm library.
 
 Requires:      %{name}-devel = %{version}
 
 %description static
 Static gdbm library.
 
+%description static -l pl
+Biblioteka statyczna gdbm.
+
+%description static -l ru
+üÔÏ ÓÔÁÔÉÞÅÓËÁÑ ÂÉÂÌÉÏÔÅËÁ gdbm, ÂÁÚÙ ÄÁÎÎÙÈ GNU.
+
+%description static -l uk
+ãÅ ÓÔÁÔÉÞÎÁ Â¦Â̦ÏÔÅËÁ gdbm, ÂÁÚÉ ÄÁÎÉÈ GNU.
+
 %prep
 %setup  -q
 %patch0 -p1
 %prep
 %setup  -q
 %patch0 -p1
@@ -98,22 +132,25 @@ Static gdbm library.
 %patch2 -p1
 
 %build
 %patch2 -p1
 
 %build
-libtoolize --copy --force
-aclocal
-autoheader
-autoconf
+%{__libtoolize}
+%{__aclocal}
+%{__autoheader}
+%{__autoconf}
 %configure
 
 %configure
 
-make CFLAGS="$RPM_OPT_FLAGS"
+%{__make} CFLAGS="%{rpmcflags}"
 
 makeinfo gdbm.texinfo
 
 
 makeinfo gdbm.texinfo
 
+cat .libs/libgdbm.lai|sed -e 's/\/usr\/local\/lib/\/usr\/lib/'>libgdbm.lai.tmp
+mv libgdbm.lai.tmp .libs/libgdbm.lai
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} \
           $RPM_BUILD_ROOT{%{_mandir}/man3,%{_infodir}}
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}} \
           $RPM_BUILD_ROOT{%{_mandir}/man3,%{_infodir}}
 
-make install \
+%{__make} install install-compat \
        prefix=%{_prefix} \
        exec_prefix=%{_exec_prefix} \
        binprefix=%{_exec_prefix} \
        prefix=%{_prefix} \
        exec_prefix=%{_exec_prefix} \
        binprefix=%{_exec_prefix} \
@@ -124,22 +161,17 @@ make install \
        man3dir=%{_mandir}/man3 \
        DESTDIR=$RPM_BUILD_ROOT
 
        man3dir=%{_mandir}/man3 \
        DESTDIR=$RPM_BUILD_ROOT
 
-strip --strip-unneeded $RPM_BUILD_ROOT%{_libdir}/lib*.so.*.*
-
-gzip -9nf $RPM_BUILD_ROOT{%{_infodir}/gdbm*info*,%{_mandir}/man3/*}
+%clean
+rm -rf $RPM_BUILD_ROOT
 
 
-%post -p /sbin/ldconfig
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %post devel
 
 %post devel
-[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%postun -p /sbin/ldconfig
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %postun devel
 
 %postun devel
-[ -x /usr/sbin/fix-info-dir ] && /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-
-%clean
-rm -rf $RPM_BUILD_ROOT
+[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
 %files
 %defattr(644,root,root,755)
 
 %files
 %defattr(644,root,root,755)
@@ -148,7 +180,7 @@ rm -rf $RPM_BUILD_ROOT
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
 %files devel
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/lib*.so
-%attr(755,root,root) %{_libdir}/lib*.la
+%{_libdir}/lib*.la
 %{_mandir}/man3/*
 %{_includedir}/*
 %{_infodir}/gdbm*
 %{_mandir}/man3/*
 %{_includedir}/*
 %{_infodir}/gdbm*
This page took 0.064134 seconds and 4 git commands to generate.