Blame SPECS/gdbm.spec

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