2011-01-25 10:07:44 +01:00
|
|
|
#
|
2011-01-25 10:07:50 +01:00
|
|
|
# spec file for package libdbi
|
2011-01-25 10:07:44 +01:00
|
|
|
#
|
2011-01-25 10:07:50 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2011-01-25 10:07:44 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2011-01-25 10:07:50 +01:00
|
|
|
|
2011-01-25 10:07:44 +01:00
|
|
|
%define lname libdbi0
|
|
|
|
|
|
|
|
Summary: Database Independent Abstraction Layer for C
|
2011-01-25 10:07:50 +01:00
|
|
|
|
2011-01-25 10:07:44 +01:00
|
|
|
Name: libdbi
|
|
|
|
Version: 0.8.3
|
|
|
|
Release: 1
|
2011-12-14 14:33:51 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
License: LGPL-2.1+
|
2012-02-14 19:02:10 +01:00
|
|
|
URL: http://libdbi.sourceforge.net/
|
2011-01-25 10:07:44 +01:00
|
|
|
Source: %{name}-%{version}.tar.bz2
|
2011-09-19 21:11:44 +02:00
|
|
|
Source2: baselibs.conf
|
2011-01-25 10:07:44 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%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 %{lname}
|
2011-12-14 14:33:51 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-01-25 10:07:44 +01:00
|
|
|
Summary: Database Independent Abstraction Layer for C
|
|
|
|
|
|
|
|
%description -n %{lname}
|
|
|
|
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 devel
|
|
|
|
Summary: Development files for libdbi (Database Independent Abstraction Layer for C)
|
2011-12-14 14:33:51 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
2011-01-25 10:07:44 +01:00
|
|
|
Requires: %{lname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The libdbi-devel package contains the header files and documentation
|
|
|
|
needed to develop applications with libdbi.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
2011-12-14 14:33:51 +01:00
|
|
|
sed -i s,\-O20,\-O3,g configure
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure --disable-docs --disable-static
|
2012-02-14 19:02:10 +01:00
|
|
|
# this project fails to respect the rules for CFLAGS.
|
|
|
|
make %{?_smp_mflags} AM_CFLAGS="%optflags"
|
2011-01-25 10:07:44 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=$RPM_BUILD_ROOT install
|
|
|
|
rm %buildroot/%{_libdir}/libdbi.la
|
|
|
|
rm README.win32
|
|
|
|
|
|
|
|
%files -n %{lname}
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS ChangeLog COPYING README*
|
|
|
|
%{_libdir}/libdbi.so.*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc TODO doc/programmers-guide.pdf doc/programmers-guide/ doc/driver-guide.pdf 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.so
|
|
|
|
|
|
|
|
%post -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{lname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%changelog
|