File libdbi.spec of Package libdbi

%define pname	libdbi
%define version	0.8.3
%define release 3

Summary:	Database Independent Abstraction Layer for C
Name:		libdbi0
Version:	%{version}
Release:	%{release}
Group:		Development/Libraries
License:	LGPL
URL:		http://libdbi.sourceforge.net/
Source:		%{pname}-%{version}.tar.bz2
BuildRoot:	%{_tmppath}/%{pname}-root

Packager:       Matt Delves <m.delves@ballarat.edu.au>

%description
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

%package -n %{pname}-devel
Summary: Development files for libdbi (Database Independent Abstraction Layer for C)
Group: Development/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n %{pname}-devel
The libdbi-devel package contains the header files and documentation
needed to develop applications with libdbi.

%prep
%setup -q -n %{pname}-%{version}

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr --disable-docs --libdir=%{_libdir}
make

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
mkdir %buildroot
make DESTDIR=$RPM_BUILD_ROOT install

%files
%defattr(-,root,root)
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc README*
%{_libdir}/libdbi.so.*

%files -n %{pname}-devel
%defattr(-,root,root)
%doc TODO
%doc doc/programmers-guide.pdf
%doc doc/programmers-guide/
%doc doc/driver-guide.pdf
%doc doc/driver-guide/
/usr/include/dbi/dbi.h
/usr/include/dbi/dbi-dev.h
/usr/include/dbi/dbd.h
%dir /usr/include/dbi
%{_libdir}/libdbi.a
%{_libdir}/libdbi.la
%{_libdir}/libdbi.so

%clean 
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%post
/sbin/ldconfig

%postun
/sbin/ldconfig

%changelog
* Fri Mar 28 2003 David Parker <david@neongoat.com>
- updated for libdbi-drivers split
* Sat Aug 4 2001 David Parker <david@neongoat.com>
- initial spec file created
openSUSE Build Service is sponsored by