]> git.pld-linux.org Git - packages/gdbm.git/blobdiff - gdbm.spec
Massive attack. We use -O0 instead -O flags while debug enabled.
[packages/gdbm.git] / gdbm.spec
index d482c4b3e4bf86fcd704ade9069e24a7f09bfd4d..73dc11c7079f2f0ea30285342b48cace0b40d2d9 100644 (file)
--- a/gdbm.spec
+++ b/gdbm.spec
@@ -1,18 +1,19 @@
 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(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:       4
+Release:       7
 License:       GPL
 Group:         Libraries
+Group(de):     Libraries
 Group(fr):     Librairies
 Group(pl):     Biblioteki
 Source0:       ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.gz
-Patch0:                gdbm-info.patch
-Patch1:                gdbm-DESTDIR.patch
-Patch2:                gdbm-jbj.patch
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-DESTDIR.patch
+Patch2:                %{name}-jbj.patch
 BuildRequires: libtool
 BuildRequires: autoconf
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +54,7 @@ Summary(fr):  Biblioth
 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(de):     Entwicklung/Libraries
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name} = %{version}
@@ -84,6 +86,7 @@ ba
 Summary:       Static gdbm library
 Summary(pl):   Biblioteki statyczne gdbm
 Group:         Development/Libraries
+Group(de):     Entwicklung/Libraries
 Group(fr):     Development/Librairies
 Group(pl):     Programowanie/Biblioteki
 Requires:      %{name}-devel = %{version}
@@ -104,7 +107,7 @@ autoheader
 autoconf
 %configure
 
-make CFLAGS="$RPM_OPT_FLAGS"
+%{__make} CFLAGS="%{?debug:-O0 -g}%{!?debug:$RPM_OPT_FLAGS}"
 
 makeinfo gdbm.texinfo
 
@@ -113,7 +116,7 @@ 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} \
@@ -124,17 +127,12 @@ make install \
        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/*}
-
-%post -p /sbin/ldconfig
+%post   -p /sbin/ldconfig
+%postun -p /sbin/ldconfig
 
 %post devel
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
-%postun -p /sbin/ldconfig
-
 %postun devel
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
This page took 0.058938 seconds and 4 git commands to generate.