fa3d5a
%bcond_with largefile
fa3d5a
fa3d5a
Summary: A GNU set of database routines which use extensible hashing
fa3d5a
Name: gdbm
fa3d5a
Version: 1.18
4509d4
Release: 2%{?dist}
fa3d5a
Epoch: 1
fa3d5a
License: GPLv3+
fa3d5a
URL: http://www.gnu.org/software/gdbm/
fa3d5a
fa3d5a
Source: http://ftp.gnu.org/gnu/gdbm/gdbm-%{version}.tar.gz
fa3d5a
4509d4
Patch1: gdbm-1.17-coverity-fixes.patch
4509d4
# Backport of upstream commit: 00ba17479ff31c6825f0e6f28b965f11525e83f6
4509d4
Patch2: gdbm-1.18-backward-compatibility.patch
fa3d5a
fa3d5a
BuildRequires: gcc
fa3d5a
BuildRequires: libtool
fa3d5a
BuildRequires: gettext
fa3d5a
BuildRequires: readline-devel
fa3d5a
Requires: %{name}-libs%{?_isa} = %{epoch}:%{version}-%{release}
fa3d5a
fa3d5a
%description
fa3d5a
Gdbm is a GNU database indexing library, including routines which use
fa3d5a
extensible hashing.  Gdbm works in a similar way to standard UNIX dbm
fa3d5a
routines.  Gdbm is useful for developers who write C applications and
fa3d5a
need access to a simple and efficient database or who are building C
fa3d5a
applications which will use such a database.
fa3d5a
fa3d5a
If you're a C developer and your programs need access to simple
fa3d5a
database routines, you should install gdbm.  You'll also need to
fa3d5a
install gdbm-devel.
fa3d5a
fa3d5a
%package libs
fa3d5a
Summary: Libraries files for gdbm
fa3d5a
fa3d5a
%description libs
fa3d5a
Libraries for the Gdbm GNU database indexing library
fa3d5a
fa3d5a
%package devel
fa3d5a
Summary: Development libraries and header files for the gdbm library
fa3d5a
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
fa3d5a
Requires(post): info
fa3d5a
Requires(preun): info
fa3d5a
fa3d5a
%description devel
fa3d5a
Gdbm-devel contains the development libraries and header files for
fa3d5a
gdbm, the GNU database system.  These libraries and header files are
fa3d5a
necessary if you plan to do development using the gdbm database.
fa3d5a
fa3d5a
Install gdbm-devel if you are developing C programs which will use the
fa3d5a
gdbm database library.  You'll also need to install the gdbm package.
fa3d5a
fa3d5a
%prep
fa3d5a
%setup -q
4509d4
%patch1 -p1
fa3d5a
%patch2 -p1
fa3d5a
fa3d5a
%build
fa3d5a
%configure \
fa3d5a
    --disable-static \
fa3d5a
%{!?with_largefile: --disable-largefile} \
fa3d5a
    --disable-rpath \
fa3d5a
    --enable-libgdbm-compat
fa3d5a
fa3d5a
# get rid of rpath (as per https://fedoraproject.org/wiki/Packaging:Guidelines#Beware_of_Rpath)
fa3d5a
# currently --disable-rpath doesn't work for gdbm_dump|load, gdbmtool and libgdbm_compat.so.4
fa3d5a
# https://puszcza.gnu.org.ua/bugs/index.php?359
fa3d5a
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
fa3d5a
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
fa3d5a
fa3d5a
make %{?_smp_mflags}
fa3d5a
fa3d5a
%install
fa3d5a
make DESTDIR=$RPM_BUILD_ROOT install
fa3d5a
fa3d5a
%find_lang %{name}
fa3d5a
fa3d5a
# create symlinks for compatibility
fa3d5a
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/gdbm 
fa3d5a
ln -sf ../gdbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/gdbm.h
fa3d5a
ln -sf ../ndbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/ndbm.h
fa3d5a
ln -sf ../dbm.h $RPM_BUILD_ROOT/%{_includedir}/gdbm/dbm.h
fa3d5a
fa3d5a
# Remove libtool archives
fa3d5a
find %{buildroot} -type f -name "*.la" -delete
fa3d5a
fa3d5a
rm -f $RPM_BUILD_ROOT/%{_infodir}/dir
fa3d5a
fa3d5a
%check
fa3d5a
export LD_LIBRARY_PATH=`pwd`/src/.libs/:`pwd`/compat/.libs/
fa3d5a
make check
fa3d5a
fa3d5a
%ldconfig_scriptlets libs
fa3d5a
fa3d5a
%post devel
fa3d5a
/sbin/install-info %{_infodir}/gdbm.info.gz %{_infodir}/dir \
fa3d5a
      --entry="* gdbm: (gdbm).                   The GNU Database." || :
fa3d5a
fa3d5a
%preun devel
fa3d5a
if [ $1 = 0 ]; then
fa3d5a
    /sbin/install-info --delete %{_infodir}/gdbm.info.gz %{_infodir}/dir \
fa3d5a
        --entry="* gdbm: (gdbm).                   The GNU Database." || :
fa3d5a
fi
fa3d5a
fa3d5a
%files -f %{name}.lang
fa3d5a
%doc NEWS README THANKS AUTHORS NOTE-WARNING
fa3d5a
%{_bindir}/gdbm*
fa3d5a
%{_mandir}/man1/gdbm*
fa3d5a
fa3d5a
%files libs
fa3d5a
%license COPYING
fa3d5a
%{_libdir}/libgdbm.so.6*
fa3d5a
%{_libdir}/libgdbm_compat.so.4*
fa3d5a
fa3d5a
%files devel
fa3d5a
%{_libdir}/libgdbm.so
fa3d5a
%{_libdir}/libgdbm_compat.so
fa3d5a
%{_includedir}/*
fa3d5a
%{_infodir}/*.info*
fa3d5a
%{_mandir}/man3/* 
fa3d5a
fa3d5a
%changelog
4509d4
* Fri Jul 01 2022 <fjanus@redhat.com> - 1.18-2
4509d4
- Add backward compatibility patch
4509d4
- Resolves: #2097704
4509d4
- Backport from upstream commit: 00ba17479ff31c6825f0e6f28b965f11525e83f6
4509d4
fa3d5a
* Mon Sep 03 2018 mskalick@redhat.com - 1:1.18-1
fa3d5a
- Rebase to latest release 1.18
fa3d5a
- Fix issues found by coverity
fa3d5a
  Resolves: RHBZ#1606956
fa3d5a
fa3d5a
* Tue Aug 07 2018 mskalick@redhat.com - 1:1.17-1
fa3d5a
- Rebase to upstream release 1.17
fa3d5a
fa3d5a
* Thu Jun 28 2018 mskalick@redhat.com - 1:1.16-1
fa3d5a
- Rebase to latest release 1.16
fa3d5a
fa3d5a
* Wed Jun 20 2018 mskalick@redhat.com - 1:1.15-1
fa3d5a
- Rebase to latest upstream relase 1.15
fa3d5a
fa3d5a
* Mon Mar 12 2018 Peter Robinson <pbrobinson@fedoraproject.org>a 1:1.14.1-4
fa3d5a
- Split libraries out to separate libs subpackage
fa3d5a
- Minor spec cleanups
fa3d5a
fa3d5a
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.14.1-3
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
fa3d5a
fa3d5a
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:1.14.1-2
fa3d5a
- Switch to %%ldconfig_scriptlets
fa3d5a
fa3d5a
* Mon Jan 29 2018 Marek Skalický <mskalick@redhat.com> - 1:1.14.1-1
fa3d5a
- Rebase to latest upstream release
fa3d5a
  (soname bump for ABI breakage in 1.14)
fa3d5a
fa3d5a
* Tue Jan 16 2018 Marek Skalický <mskalick@redhat.com> - 1:1.14-3
fa3d5a
- Fix -devel require to include also epoch
fa3d5a
fa3d5a
* Tue Jan 16 2018 Marek Skalický <mskalick@redhat.com> - 1:1.14-2
fa3d5a
- Introduce epoch to not to break upgrade path from F27
fa3d5a
fa3d5a
* Wed Jan 03 2018 Petr Kubat <pkubat@redhat.com> - 1.14-1
fa3d5a
- Upgrade to gdbm 1.14
fa3d5a
- Resolves #1467431
fa3d5a
fa3d5a
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-3
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
fa3d5a
fa3d5a
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.13-2
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
fa3d5a
fa3d5a
* Thu Mar 23 2017 Marek Skalický <mskalick@redhat.com> - 1.13-1
fa3d5a
- Upgrade to gdbm 1.13
fa3d5a
fa3d5a
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-2
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
fa3d5a
fa3d5a
* Thu Mar 17 2016 Marek Skalicky <mskalick@redhat.com> - 1.12-1
fa3d5a
- Upgrade to gdbm-1.12 (#1336604)
fa3d5a
fa3d5a
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11-7
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fa3d5a
fa3d5a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-6
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
fa3d5a
fa3d5a
* Sat Feb 21 2015 Till Maas <opensource@till.name> - 1.11-5
fa3d5a
- Rebuilt for Fedora 23 Change
fa3d5a
  https://fedoraproject.org/wiki/Changes/Harden_all_packages_with_position-independent_code
fa3d5a
fa3d5a
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-4
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
fa3d5a
fa3d5a
* Sat Jul 12 2014 Tom Callaway <spot@fedoraproject.org> - 1.11-3
fa3d5a
- fix license handling
fa3d5a
fa3d5a
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11-2
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
fa3d5a
fa3d5a
* Wed Mar 05 2014 Honza Horak <hhorak@redhat.com> - 1.11-1
fa3d5a
- Upgrade to gdbm-1.11
fa3d5a
  Resolves: #1046643
fa3d5a
fa3d5a
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-7
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
fa3d5a
fa3d5a
* Mon Mar 25 2013 Honza Horak <hhorak@redhat.com> - 1.10-6
fa3d5a
- Fixed some issues found by Coverity
fa3d5a
- Add support of aarch64
fa3d5a
fa3d5a
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-5
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fa3d5a
fa3d5a
* Mon Aug 27 2012 Honza Horak <hhorak@redhat.com> - 1.10-4
fa3d5a
- Spec file cleanup
fa3d5a
- Use make DESTDIR=... install instead of %%make_install
fa3d5a
fa3d5a
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-3
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
fa3d5a
fa3d5a
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.10-2
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
fa3d5a
fa3d5a
* Mon Nov 14 2011 Honza Horak <hhorak@redhat.com> - 1.10-1
fa3d5a
- Updated to new upstream release 1.10
fa3d5a
- Dropped -shortread patch, which has been already applied by upstream
fa3d5a
- Disable large file support, that is enabled by default since 1.9, 
fa3d5a
  but not compatible with db files created using gdbm-1.8.3 and lower
fa3d5a
- License change to GPLv3+
fa3d5a
- Add doc files THANKS AUTHORS NOTE-WARNING
fa3d5a
- Changed text in NOTE-WARNING to correspond with build settings
fa3d5a
fa3d5a
* Tue Sep 20 2011 Honza Horak <hhorak@redhat.com> - 1.9.1-1
fa3d5a
- Updated to new upstream release 1.9.1
fa3d5a
- Dropped -filestruct, -ndbmlock and -fhs patches, they are not 
fa3d5a
  needed anymore and GDBM_NOLOCK is used always
fa3d5a
- Run testsuite
fa3d5a
fa3d5a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.3-9
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
fa3d5a
fa3d5a
* Thu Jan 13 2011 Jan Horak <hhorak@redhat.com> - 1.8.3-8
fa3d5a
- Added filestruct patch (#668178)
fa3d5a
fa3d5a
* Mon Jan 03 2011 Karel Klic <kklic@redhat.com> - 1.8.3-7
fa3d5a
- Removed BuildRoot tag
fa3d5a
- Removed %%clean section
fa3d5a
- Added ndbmlock patch (#663932)
fa3d5a
fa3d5a
* Mon Apr 12 2010 Karel Klic <kklic@redhat.com> - 1.8.3-6
fa3d5a
- Use fcntl instead of flock for locking to make nfs safe (#477300)
fa3d5a
fa3d5a
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-5
fa3d5a
- Removed fake Provides: libgdbm.so.2 and corresponding symlinks
fa3d5a
- Moved autoconf, libtoolize from %%build to %%prep section
fa3d5a
- Remove static builds from the devel package (#556050)
fa3d5a
fa3d5a
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-4
fa3d5a
- Provides: libgdbm.so.2()(64bit) for x86_64 architecture
fa3d5a
fa3d5a
* Thu Mar 11 2010 Karel Klic <kklic@redhat.com> - 1.8.3-3
fa3d5a
- Added temporary symlinks to retain compatibility with gdbm 1.8.0
fa3d5a
fa3d5a
* Wed Mar 10 2010 Rex Dieter <rdieter@fedoraproject.org> - 1.8.3-2
fa3d5a
- %%files: track shlib sonames, so abi breaks are less of a surprise
fa3d5a
fa3d5a
* Tue Mar 09 2010 Karel Klic <kklic@redhat.com> - 1.8.3-1
fa3d5a
- Newer upstream release
fa3d5a
- Removed gdbm-1.8.0-64offset.patch, because it was merged by the upstream
fa3d5a
- `jbj' patch extended and renamed to `zeroheaders'
fa3d5a
- Added shortread patch from Debian
fa3d5a
fa3d5a
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-33
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
fa3d5a
fa3d5a
* Fri Apr 17 2009 Stepan Kasal <skasal@redhat.com> - 1.8.0-32
fa3d5a
- Clean up the spec, for merge review.
fa3d5a
fa3d5a
* Fri Feb 27 2009 Stepan Kasal <skasal@redhat.com> - 1.8.0-31
fa3d5a
- drop *-cflags.patch, move all makefile fixes to *-fhs.patch
fa3d5a
- propagate libdir to Makefile; no need to set it on cmdline
fa3d5a
fa3d5a
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.8.0-30
fa3d5a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
fa3d5a
fa3d5a
* Mon Jul 21 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.8.0-29
fa3d5a
- fix license tag
fa3d5a
fa3d5a
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.8.0-28
fa3d5a
- Autorebuild for GCC 4.3
fa3d5a
fa3d5a
* Tue Apr 3 2007 Ondrej Dvoracek <odvorace@redhat.com> - 1.8.0-27
fa3d5a
- made install-info use in scriptlets safe (#223688)
fa3d5a
fa3d5a
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.8.0-26.2.1
fa3d5a
- rebuild
fa3d5a
fa3d5a
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.8.0-26.2
fa3d5a
- bump again for double-long bug on ppc(64)
fa3d5a
fa3d5a
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.8.0-26.1
fa3d5a
- rebuilt for new gcc4.1 snapshot and glibc changes
fa3d5a
fa3d5a
* Tue Jan 24 2006 Warren Togami <wtogami@redhat.com> 1.8.0-26
fa3d5a
- remove .la (#171535)
fa3d5a
fa3d5a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
fa3d5a
- rebuilt
fa3d5a
fa3d5a
* Sat Apr 09 2005 Florian La Roche <laroche@redhat.com>
fa3d5a
- rebuild
fa3d5a
fa3d5a
* Sun Aug  8 2004 Alan Cox <alan@redhat.com> 1.8.0-24
fa3d5a
- Close bug #125319
fa3d5a
fa3d5a
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
fa3d5a
- rebuilt
fa3d5a
fa3d5a
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
fa3d5a
- rebuilt
fa3d5a
fa3d5a
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
fa3d5a
- rebuilt
fa3d5a
fa3d5a
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
fa3d5a
- rebuilt
fa3d5a
fa3d5a
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
fa3d5a
- rebuilt
fa3d5a
fa3d5a
* Fri Oct  4 2002 Nalin Dahyabhai <nalin@redhat.com> 1.8.0-19
fa3d5a
- rebuild
fa3d5a
fa3d5a
* Fri Sep 13 2002 Nalin Dahyabhai <nalin@redhat.com> 1.8.0-18.1
fa3d5a
- run make with libdir overridden so that it has the value passed to configure
fa3d5a
  instead of $(prefix)/lib
fa3d5a
fa3d5a
* Wed Jul 24 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-18
fa3d5a
- Remove cflags for large database support - not compatible 
fa3d5a
  with databases without it
fa3d5a
fa3d5a
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
fa3d5a
- automated rebuild
fa3d5a
fa3d5a
* Thu May 23 2002 Tim Powers <timp@redhat.com>
fa3d5a
- automated rebuild
fa3d5a
fa3d5a
* Thu Apr 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-15
fa3d5a
- Use 64bit offset
fa3d5a
- Patch to make the above not break from downsj@downsj.com (#63980) 
fa3d5a
fa3d5a
* Tue Feb 26 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-14
fa3d5a
- Rebuild
fa3d5a
fa3d5a
* Fri Jan 25 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-13
fa3d5a
- Update location
fa3d5a
- auto* changes to make it build
fa3d5a
fa3d5a
* Wed Oct 17 2001 Trond Eivind Glomsrød <teg@redhat.com> 1.8.0-11
fa3d5a
- Add URL (# 54607)
fa3d5a
fa3d5a
* Mon Jun 25 2001 Nalin Dahyabhai <nalin@redhat.com>
fa3d5a
- s/Copyright:/License:/g
fa3d5a
- include text docs in binary package
fa3d5a
fa3d5a
* Tue Jun 12 2001 Than Ngo <than@redhat.com>
fa3d5a
- fix to build against new libtool
fa3d5a
fa3d5a
* Mon Mar 19 2001 Trond Eivind Glomsrød <teg@redhat.com>
fa3d5a
- Make it respect RPM_OPT_FLAGS/CFLAGS - #32242. 
fa3d5a
  Patch from dan@D00M.cmc.msu.ru
fa3d5a
fa3d5a
* Thu Jul 13 2000 Prospector <bugzilla@redhat.com>
fa3d5a
- automatic rebuild
fa3d5a
fa3d5a
* Mon Jun  5 2000 Jeff Johnson <jbj@redhat.com>
fa3d5a
- FHS packaging.
fa3d5a
fa3d5a
* Mon Feb  7 2000 Bill Nottingham <notting@redhat.com>
fa3d5a
- handle compressed manpages
fa3d5a
fa3d5a
* Tue Aug 10 1999 Jeff Johnson <jbj@redhat.com>
fa3d5a
- make sure created database header is initialized (#4457).
fa3d5a
fa3d5a
* Tue Jun  1 1999 Jeff Johnson <jbj@redhat.com>
fa3d5a
- update to 1.8.0.
fa3d5a
- repackage to include /usr/include/gdbm/*dbm.h compatibility includes.
fa3d5a
fa3d5a
* Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> 
fa3d5a
- auto rebuild in the new build environment (release 19)
fa3d5a
fa3d5a
* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
fa3d5a
- build against glibc 2.1
fa3d5a
fa3d5a
* Thu May 07 1998 Prospector System <bugs@redhat.com>
fa3d5a
- translations modified for de, fr, tr
fa3d5a
fa3d5a
* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
fa3d5a
- gdbm-devel moved to Development/Libraries
fa3d5a
fa3d5a
* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
fa3d5a
- buildroot and built for Manhattan
fa3d5a
fa3d5a
* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
fa3d5a
- spec file cleanups
fa3d5a
fa3d5a
* Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
fa3d5a
- built against glibc