File libdbi0.spec of Package libdbi0

%define pname	libdbi
%define version	0.8.3
%define release 2

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

%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
%configure --disable-docs
#make CFLAGS="$RPM_OPT_FLAGS"
make

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

%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/
%dir /usr/include/dbi
/usr/include/dbi/dbi.h
/usr/include/dbi/dbi-dev.h
/usr/include/dbi/dbd.h
%{_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> - 0.8.3
- updated for libdbi-drivers split
* Sat Aug 4 2001 David Parker <david@neongoat.com>
- initial spec file created
openSUSE Build Service is sponsored by