Sophie

Sophie

distrib > Mandriva > 8.2 > i586 > media > main-src > by-pkgid > 4fcc88eef766853b93cb5df47052e6e1 > files > 5

gdbm-1.8.0-18mdk.src.rpm

%define name gdbm
%define version 1.8.0 
%define release 18mdk
%define lib_name libgdbm
%define lib_major 2

Summary: A GNU set of database routines which use extensible hashing.
Name: %{name}
Version: %{version}
Release: %{release}
Source: ftp://ftp.gnu.org/pub/gnu/%{name}-%{version}.tar.bz2
# (deush comment) coming soon.. 
Patch0: gdbm-1.8.0-jbj.patch.bz2
# (deush) regenerate patch to apply with -p1
Patch1: gdbm-1.8.0-asnonroot.patch.bz2
# (deush comment) coming soon ..
Patch2: gdbm-1.8.0-fixinfo.patch.bz2
License: GPL
Packager: Daouda Lo <daouda@mandrakesoft.com>
Group: System/Libraries
Prefix: %{_prefix}
Buildroot: %{_tmppath}/%{name}-root
Buildrequires: texinfo

%description
Gdbm is a GNU database indexing library, including routines
which use extensible hashing.  Gdbm works in a similar way to standard UNIX
dbm routines.  Gdbm is useful for developers who write C applications and
need access to a simple and efficient database or who are building C
applications which will use such a database.

If you're a C developer and your programs need access to simple database
routines, you should install gdbm.  You'll also need to install gdbm-devel.

%package -n %{lib_name}%{lib_major}
Summary: Main library for gdbm
Group: System/Libraries
Obsoletes: %{name}, %{lib_name}1
Provides: %{lib_name}1
Provides: %{name} = %{version}-%{release}
%description -n %{lib_name}%{lib_major}
This package provides library needed to run programs dynamically linked
with gdbm.

%package -n %{lib_name}%{lib_major}-devel
Summary: Development libraries and header files for the gdbm library.
Group: Development/Databases
Requires: %{lib_name}%{lib_major} = %{version}
Obsoletes: %{name}-devel, %{lib_name}1-devel
Prereq: /sbin/install-info
Provides: %{lib_name}-devel %{name}-devel %{lib_name}1-devel

%description -n %{lib_name}%{lib_major}-devel
Gdbm-devel contains the development libraries and header files
for gdbm, the GNU database system.  These libraries and header files are
necessary if you plan to do development using the gdbm database.

Install gdbm-devel if you are developing C programs which will use the
gdbm database library.  You'll also need to install the gdbm package.

%prep
%setup -q
%patch0 -p1 -b .jbj
%patch1 -p1
%patch2 -p1

libtoolize -f
aclocal
autoconf
autoheader

%build

# XXX --includedir dinna work
%configure

# the above %%configure macro doesn't set CFLAGS for some reason -jgarzik
%make "CFLAGS=$RPM_OPT_FLAGS" includedir=%{_includedir}/gdbm
makeinfo %name.texinfo

%install
rm -rf $RPM_BUILD_ROOT

# XXX --includedir dinna work
%makeinstall \
	install-compat \
	man3dir=$RPM_BUILD_ROOT%{_mandir}/man3 \
	prefix=${RPM_BUILD_ROOT}%{_prefix} \
	includedir=${RPM_BUILD_ROOT}%{_includedir}/gdbm

( cd $RPM_BUILD_ROOT
  ln -sf gdbm/gdbm.h .%{_includedir}/gdbm.h
  ln -sf libgdbm.so.2.0.0 .%{_libdir}/libgdbm.so.2
  ln -sf libgdbm.so.2 .%{_libdir}/libgdbm.so
)

chmod 644  COPYING INSTALL NEWS README

%post -n %{lib_name}%{lib_major} -p /sbin/ldconfig

%post -n %{lib_name}%{lib_major}-devel
%_install_info gdbm.info
#--entry="* gdbm: (gdbm).                   The GNU Database."

%postun -n %{lib_name}%{lib_major} -p /sbin/ldconfig

%preun -n %{lib_name}%{lib_major}-devel
%_remove_install_info gdbm.info

%files -n %{lib_name}%{lib_major}
%defattr(-,root,root)
%{_libdir}/libgdbm.so.*
%doc COPYING INSTALL NEWS README

%files -n %{lib_name}%{lib_major}-devel
%defattr(-,root,root)
%{_libdir}/libgdbm.so
%{_libdir}/libgdbm.la
%{_libdir}/libgdbm.a
%{_includedir}/*
%{_infodir}/gdbm*
%{_mandir}/man3/*

%clean
rm -rf $RPM_BUILD_ROOT

%changelog
* Wed Sep 19 2001 Frederic Lepied <flepied@mandrakesoft.com> 1.8.0-18mdk
- fix access rights of the doc files
- provides libgdm1 and libdbm1-devel to allow upgrade.

* Wed Aug  1 2001 Daouda LO <daouda@mandrakesoft.com> 1.8.0 -17mdk
- fix the major lib number (thanx to thomas)

* Mon Jul  9 2001  Daouda Lo <daouda@mandrakesoft.com> 1.8.0 -16mdk
- rebuild
- s|Copyright|License|

* Sat Jun 23 2001 Jeff Garzik <jgarzik@mandrakesoft.com> 1.8.0-15mdk
- run libtoolize/aclocal/autoconf/autoheader to fix build
- use RPM_OPT_FLAGS

* Fri Dec  8 2000 Frederic Lepied <flepied@mandrakesoft.com> 1.8.0-14mdk
- libgdbm1-devel provides gdbm-devel for backward compatibility.

* Wed Dec  6 2000  Daouda Lo<daouda@mandrakesoft.com> 1.8.0-13mdk
- fix again (i have no brain)

* Wed Dec  6 2000  Daouda Lo <daouda@mandrakesoft.com> 1.8.0-12mdk
- fix typos (install-info ) 

* Wed Dec  6 2000  Daouda<daouda@mandrakesoft.com> 1.8.0-11mdk
- fix Provides typo

* Tue Nov 28 2000 Daouda Lo <daouda@mandrakesoft.com> 1.8.0-10mdk
- obsoleted gdbm-devel 

* Tue Nov 28 2000 Daouda Lo <daouda@mandrakesoft.com> 1.8.0-9mdk
- add a BuildRequires tag (texinfo) 
- Use Opt (-O3)
- New lib naming schema
- macroz
- add doc section

* Mon Sep  4 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.8.0-8mdk
- Fix info files installation.

* Sun Aug 06 2000 Stefan van der Eijk <s.vandereijk@chello.nl> 1.8.0-7mdk
- some more macroszifications
- BM

* Wed May 24 2000 Chmouel Boudjnah <chmouel@mandrakesoft.com> 1.8.0-6mdk
- Use tmpppath macros.

* Fri May 19 2000 Pixel <pixel@mandrakesoft.com> 1.8.0-5mdk
- add soname

* Mon Apr  3 2000 Adam Lebsack <adam@mandrakesoft.com> 1.8.0-4mdk
- Release build.

* Wed Oct 20 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- Fix building as non root.
- Merge with redhat patchs.
- make sure created database header is initialized (r).
- repackage to include /usr/include/gdbm/*dbm.h compatibility includes(r)
- make sure created database header is initialized (r).

* Wed Jun 30 1999 Chmouel Boudjnah <chmouel@mandrakesoft.com>

- 1.8.0

* Sat Apr 10 1999 Bernhard Rosenkraenzer <bero@linux-mandrake.com>
- Mandrake adaptions
- bzip2 man/info pages
- add de locale

* Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com>
- build against glibc 2.1

* Thu May 07 1998 Prospector System <bugs@redhat.com>
- translations modified for de, fr, tr

* Thu Apr 30 1998 Cristian Gafton <gafton@redhat.com>
- gdbm-devel moved to Development/Libraries

* Wed Apr 08 1998 Cristian Gafton <gafton@redhat.com>
- buildroot and built for Manhattan

* Tue Oct 14 1997 Donnie Barnes <djb@redhat.com>
- spec file cleanups

* Thu Jun 12 1997 Erik Troan <ewt@redhat.com>
- built against glibc