Blame SPECS/gdbm.spec

368524
%bcond_with largefile
368524
Summary: A GNU set of database routines which use extensible hashing
368524
Name: gdbm
368524
Version: 1.10
368524
Release: 6%{?dist}
368524
Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
368524
# Prevent gdbm from storing uninitialized memory content
368524
# to database files.
368524
# The change allows Valgrind users to debug their packages without
368524
# dealing with gdbm-related noise. It also improves security, as 
368524
# the uninitialized memory might contain sensitive informations 
368524
# from other applications. The patch is taken from Debian.
368524
# See https://bugzilla.redhat.com/show_bug.cgi?id=4457
368524
# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=208927
368524
Patch0: gdbm-1.10-zeroheaders.patch
368524
Patch1: gdbm-1.10-fedora.patch
368524
Patch2: gdbm-sa1.patch
368524
Patch3: gdbm-aarch64.patch
368524
License: GPLv3+
368524
URL: http://www.gnu.org/software/gdbm/
368524
Group: System Environment/Libraries
368524
BuildRequires: libtool
368524
BuildRequires: gettext
368524
368524
%description
368524
Gdbm is a GNU database indexing library, including routines which use
368524
extensible hashing.  Gdbm works in a similar way to standard UNIX dbm
368524
routines.  Gdbm is useful for developers who write C applications and
368524
need access to a simple and efficient database or who are building C
368524
applications which will use such a database.
368524
368524
If you're a C developer and your programs need access to simple
368524
database routines, you should install gdbm.  You'll also need to
368524
install gdbm-devel.
368524
368524
%package devel
368524
Summary: Development libraries and header files for the gdbm library
368524
Group: Development/Libraries
368524
Requires: %{name} = %{version}-%{release}
368524
Requires(post): info
368524
Requires(preun): info
368524
368524
%description devel
368524
Gdbm-devel contains the development libraries and header files for
368524
gdbm, the GNU database system.  These libraries and header files are
368524
necessary if you plan to do development using the gdbm database.
368524
368524
Install gdbm-devel if you are developing C programs which will use the
368524
gdbm database library.  You'll also need to install the gdbm package.
368524
368524
%prep
368524
%setup -q
368524
%patch0 -p1 -b .zeroheaders
368524
%patch1 -p1 -b .fedora
368524
%patch2 -p1 -b .sa1
368524
%patch3 -p1 -b .aarch64
368524
368524
%build
368524
%configure \
368524
    --disable-static \
368524
%{!?with_largefile: --disable-largefile} \
368524
    --enable-libgdbm-compat
368524
368524
make %{?_smp_mflags}
368524
368524
%install
368524
make DESTDIR=$RPM_BUILD_ROOT install
368524
368524
%find_lang %{name}
368524
368524
# create symlinks for compatibility
368524
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/gdbm 
368524
ln -sf ../gdbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/gdbm.h
368524
ln -sf ../ndbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/ndbm.h
368524
ln -sf ../dbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/dbm.h
368524
368524
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm.la
368524
rm -f $RPM_BUILD_ROOT/%{_libdir}/libgdbm_compat.la
368524
368524
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
368524
368524
%check
368524
make check
368524
368524
%post -p /sbin/ldconfig
368524
368524
%postun -p /sbin/ldconfig
368524
368524
%post devel
368524
/sbin/install-info %{_infodir}/gdbm.info.gz %{_infodir}/dir \
368524
      --entry="* gdbm: (gdbm).                   The GNU Database." || :
368524
368524
%preun devel
368524
if [ $1 = 0 ]; then
368524
    /sbin/install-info --delete %{_infodir}/gdbm.info.gz %{_infodir}/dir \
368524
        --entry="* gdbm: (gdbm).                   The GNU Database." || :
368524
fi
368524
368524
%files -f %{name}.lang
368524
%doc COPYING NEWS README THANKS AUTHORS NOTE-WARNING 
368524
%{_libdir}/libgdbm.so.4*
368524
%{_libdir}/libgdbm_compat.so.4*
368524
%{_bindir}/testgdbm
368524
368524
%files devel
368524
%{_libdir}/libgdbm.so
368524
%{_libdir}/libgdbm_compat.so
368524
%{_includedir}/*
368524
%{_infodir}/*.info*
368524
%{_mandir}/man3/* 
368524
368524
%changelog
368524
* Mon Mar 25 2013 Honza Horak <hhorak@redhat.com> - 1.10-6
368524
- Fixed some issues found by Coverity
368524
- Add support of aarch64
368524
368524
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-5
368524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
368524
368524
* Mon Aug 27 2012 Honza Horak <hhorak@redhat.com> - 1.10-4
368524
- Spec file cleanup
368524
- Use make DESTDIR=... install instead of %%make_install
368524
368524
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
368524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
368524
368524
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
368524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
368524
368524
* Mon Nov 14 2011 Honza Horak <hhorak@redhat.com> - 1.10-1
368524
- Updated to new upstream release 1.10
368524
- Dropped -shortread patch, which has been already applied by upstream
368524
- Disable large file support, that is enabled by default since 1.9, 
368524
  but not compatible with db files created using gdbm-1.8.3 and lower
368524
- License change to GPLv3+
368524
- Add doc files THANKS AUTHORS NOTE-WARNING
368524
- Changed text in NOTE-WARNING to correspond with build settings
368524
368524
* Tue Sep 20 2011 Honza Horak <hhorak@redhat.com> - 1.9.1-1
368524
- Updated to new upstream release 1.9.1
368524
- Dropped -filestruct, -ndbmlock and -fhs patches, they are not 
368524
  needed anymore and GDBM_NOLOCK is used always
368524
- Run testsuite
368524
368524
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-9
368524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
368524
368524
* Thu Jan 13 2011 Jan Horak <hhorak@redhat.com> - 1.8.3-8
368524
- Added filestruct patch (#668178)
368524
368524
* Mon Jan 03 2011 Karel Klic <kklic@redhat.com> - 1.8.3-7
368524
- Removed BuildRoot tag
368524
- Removed %%clean section
368524
- Added ndbmlock patch (#663932)
368524
368524
* Mon Apr 12 2010 Karel Klic <kklic@redhat.com> - 1.8.3-6
368524
- Use fcntl instead of flock for locking to make nfs safe (#477300)
368524
368524
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-5
368524
- Removed fake Provides: libgdbm.so.2 and corresponding symlinks
368524
- Moved autoconf, libtoolize from %%build to %%prep section
368524
- Remove static builds from the devel package (#556050)
368524
368524
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-4
368524
- Provides: libgdbm.so.2()(64bit) for x86_64 architecture
368524
368524
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-3
368524
- Added temporary symlinks to retain compatibility with gdbm 1.8.0
368524
368524
* Wed Mar 10 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.8.3-2
368524
- %%files: track shlib sonames, so abi breaks are less of a surprise
368524
368524
* Tue Mar 09 2010 Karel Klic <kklic@redhat.com> - 1.8.3-1
368524
- Newer upstream release
368524
- Removed gdbm-1.8.0-64offset.patch, because it was merged by the upstream
368524
- `jbj' patch extended and renamed to `zeroheaders'
368524
- Added shortread patch from Debian
368524
368524
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-33
368524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
368524
368524
* Fri Apr 17 2009 Stepan Kasal <skasal@redhat.com> - 1.8.0-32
368524
- Clean up the spec, for merge review.
368524
368524
* Fri Feb 27 2009 Stepan Kasal <skasal@redhat.com> - 1.8.0-31
368524
- drop *-cflags.patch, move all makefile fixes to *-fhs.patch
368524
- propagate libdir to Makefile; no need to set it on cmdline
368524
368524
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-30
368524
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
368524
368524
* Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.8.0-29
368524
- fix license tag
368524
368524
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.8.0-28
368524
- Autorebuild for GCC 4.3
368524
368524
* Tue Apr 3 2007 Ondrej Dvoracek <odvorace@redhat.com> - 1.8.0-27
368524
- made install-info use in scriptlets safe (#223688)
368524
368524
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.8.0-26.2.1
368524
- rebuild
368524
368524
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.8.0-26.2
368524
- bump again for double-long bug on ppc(64)
368524
368524
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.8.0-26.1
368524
- rebuilt for new gcc4.1 snapshot and glibc changes
368524
368524
* Tue Jan 24 2006 Warren Togami <wtogami@redhat.com> 1.8.0-26
368524
- remove .la (#171535)
368524
368524
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
368524
- rebuilt
368524
368524
* Sat Apr 09 2005 Florian La Roche <laroche@redhat.com>
368524
- rebuild
368524
368524
* Sun Aug  8 2004 Alan Cox <alan@redhat.com> 1.8.0-24
368524
- Close bug #125319
368524
368524
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
368524
- rebuilt
368524
368524
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
368524
- rebuilt
368524
368524
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
368524
- rebuilt
368524
368524
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
368524
- rebuilt
368524
368524
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
368524
- rebuilt
368524
368524
* Fri Oct  4 2002 Nalin Dahyabhai <nalin@redhat.com> 1.8.0-19
368524
- rebuild
368524
368524
* Fri Sep 13 2002 Nalin Dahyabhai <nalin@redhat.com> 1.8.0-18.1
368524
- run make with libdir overridden so that it has the value passed to configure
368524
  instead of $(prefix)/lib
368524
368524
* Wed Jul 24 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-18
368524
- Remove cflags for large database support - not compatible 
368524
  with databases without it
368524
368524
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
368524
- automated rebuild
368524
368524
* Thu May 23 2002 Tim Powers <timp@redhat.com>
368524
- automated rebuild
368524
368524
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-15
368524
- Use 64bit offset
368524
- Patch to make the above not break from downsj@downsj.com (#63980) 
368524
368524
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-14
368524
- Rebuild
368524
368524
* Fri Jan 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-13
368524
- Update location
368524
- auto* changes to make it build
368524
368524
* Wed Oct 17 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-11
368524
- Add URL (# 54607)
368524
368524
* Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
368524
- s/Copyright:/License:/g
368524
- include text docs in binary package
368524
368524
* Tue Jun 12 2001 Than Ngo <than@redhat.com>
368524
- fix to build against new libtool
368524
368524
* Mon Mar 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
368524
- Make it respect RPM_OPT_FLAGS/CFLAGS - #32242. 
368524
  Patch from dan@D00M.cmc.msu.ru
368524
368524
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
368524
- automatic rebuild
368524
368524
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
368524
- FHS packaging.
368524
368524
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
368524
- handle compressed manpages
368524
368524
* Tue Aug 10 1999 Jeff Johnson <jbj@redhat.com>
368524
- make sure created database header is initialized (#4457).
368524
368524
* Tue Jun  1 1999 Jeff Johnson <jbj@redhat.com>
368524
- update to 1.8.0.
368524
- repackage to include /usr/include/gdbm/*dbm.h compatibility includes.
368524
368524
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
368524
- auto rebuild in the new build environment (release 19)
368524
368524
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
368524
- build against glibc 2.1
368524
368524
* Thu May 07 1998 Prospector System <bugs@redhat.com>
368524
- translations modified for de, fr, tr
368524
368524
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
368524
- gdbm-devel moved to Development/Libraries
368524
368524
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
368524
- buildroot and built for Manhattan
368524
368524
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
368524
- spec file cleanups
368524
368524
* Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
368524
- built against glibc