Updated to new upstream release 1.9.1
Dropped -filestruct, -ndbmlock and -fhs patches, they are not needed anymore and GDBM_NOLOCK is used always Run testsuite
This commit is contained in:
parent
0d802a4d79
commit
a02bb8e4da
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
gdbm-1.8.3.tar.gz
|
gdbm-1.8.3.tar.gz
|
||||||
|
/gdbm-1.9.1.tar.gz
|
||||||
|
58
gdbm.spec
58
gdbm.spec
@ -1,7 +1,7 @@
|
|||||||
Summary: A GNU set of database routines which use extensible hashing
|
Summary: A GNU set of database routines which use extensible hashing
|
||||||
Name: gdbm
|
Name: gdbm
|
||||||
Version: 1.8.3
|
Version: 1.9.1
|
||||||
Release: 9%{?dist}
|
Release: 1%{?dist}
|
||||||
Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
|
Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
|
||||||
# Prevent gdbm from storing uninitialized memory content
|
# Prevent gdbm from storing uninitialized memory content
|
||||||
# to database files.
|
# to database files.
|
||||||
@ -11,21 +11,10 @@ Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
|
|||||||
# from other applications. The patch is taken from Debian.
|
# from other applications. The patch is taken from Debian.
|
||||||
# See https://bugzilla.redhat.com/show_bug.cgi?id=4457
|
# See https://bugzilla.redhat.com/show_bug.cgi?id=4457
|
||||||
# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
|
# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
|
||||||
Patch0: gdbm-1.8.3-zeroheaders.patch
|
Patch0: gdbm-1.9.1-zeroheaders.patch
|
||||||
# Make gdbm buildable.
|
|
||||||
Patch1: gdbm-1.8.3-fhs.patch
|
|
||||||
# Make gdbm handle read(2) returning less data than it was asked for.
|
# Make gdbm handle read(2) returning less data than it was asked for.
|
||||||
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=274417
|
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=274417
|
||||||
Patch2: gdbm-1.8.3-shortread.patch
|
Patch1: gdbm-1.9.1-shortread.patch
|
||||||
# dbm_open compatibility function will not lock the database if
|
|
||||||
# NDBM_LOCK environment variable is set to false. This is useful:
|
|
||||||
# * old applications handle locks themselves (POSIX man page says that
|
|
||||||
# ndbm did not use to lock files, see dbm_clearerr(3p))
|
|
||||||
# * locks are degrading performance a lot on NFS shares
|
|
||||||
Patch3: gdbm-1.8.3-ndbmlock.patch
|
|
||||||
# Prevent compilation of c++ files that use gdbm from warnings.
|
|
||||||
# g++ compilator complained about the use of anonymous class
|
|
||||||
Patch4: gdbm-1.8.3-filestruct.patch
|
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
URL: http://www.gnu.org/software/gdbm/
|
URL: http://www.gnu.org/software/gdbm/
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -60,35 +49,25 @@ gdbm database library. You'll also need to install the gdbm package.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .zeroheaders
|
%patch0 -p1 -b .zeroheaders
|
||||||
%patch1 -p1 -b .fhs
|
%patch1 -p1 -b .shortread
|
||||||
%patch2 -p1 -b .shortread
|
|
||||||
%patch3 -p1 -b .ndbmlock
|
|
||||||
%patch4 -p1 -b .filestruct
|
|
||||||
|
|
||||||
libtoolize --force --copy
|
|
||||||
aclocal
|
|
||||||
autoconf
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%configure --disable-static
|
%configure --disable-static --enable-libgdbm-compat
|
||||||
|
|
||||||
# flock does not work on nfs
|
|
||||||
# fcntl should be used instead of it
|
|
||||||
# see `man 2 flock`
|
|
||||||
# rhbz#477300
|
|
||||||
echo "/* We use fcntl locking (POSIX) instead of flock (BSD) */" >> autoconf.h
|
|
||||||
echo "#undef HAVE_FLOCK" >> autoconf.h
|
|
||||||
|
|
||||||
make
|
make
|
||||||
|
|
||||||
%install
|
%install
|
||||||
rm -rf ${RPM_BUILD_ROOT}
|
rm -rf ${RPM_BUILD_ROOT}
|
||||||
%makeinstall install-compat
|
%makeinstall
|
||||||
ln -sf gdbm/gdbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm.h
|
|
||||||
|
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm.la
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm_compat.la
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm_compat.la
|
||||||
|
|
||||||
|
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
|
||||||
|
|
||||||
|
%check
|
||||||
|
make check
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -106,18 +85,27 @@ fi
|
|||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc COPYING NEWS README
|
%doc COPYING NEWS README
|
||||||
%{_libdir}/libgdbm.so.3*
|
%{_libdir}/libgdbm.so.4*
|
||||||
%{_libdir}/libgdbm_compat.so.3*
|
%{_libdir}/libgdbm_compat.so.4*
|
||||||
|
%{_bindir}/testgdbm
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%{_libdir}/libgdbm.so
|
%{_libdir}/libgdbm.so
|
||||||
%{_libdir}/libgdbm_compat.so
|
%{_libdir}/libgdbm_compat.so
|
||||||
%{_includedir}/gdbm*
|
%{_includedir}/gdbm*
|
||||||
|
%{_includedir}/dbm*
|
||||||
|
%{_includedir}/ndbm*
|
||||||
%{_infodir}/*.info*
|
%{_infodir}/*.info*
|
||||||
%{_mandir}/man3/*
|
%{_mandir}/man3/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 20 2011 Honza Horak <hhorak@redhat.com> - 1.9.1-1
|
||||||
|
- Updated to new upstream release 1.9.1
|
||||||
|
- Dropped -filestruct, -ndbmlock and -fhs patches, they are not
|
||||||
|
needed anymore and GDBM_NOLOCK is used always
|
||||||
|
- Run testsuite
|
||||||
|
|
||||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-9
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user