File: libdbi.spec.in

package info (click to toggle)
libdbi 0.9.0-6.1
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,280 kB
  • sloc: sh: 10,708; ansic: 4,007; makefile: 116
file content (79 lines) | stat: -rw-r--r-- 1,879 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
%define name	libdbi
%define version	@VERSION@
%define release 1

Summary:	Database Independent Abstraction Layer for C
Name:		%{name}
Version:	%{version}
Release:	%{release}
Group:		Development/Libraries
Copyright:	LGPL
URL:		http://libdbi.sourceforge.net/
Vendor:		Neon Goat Productions
Packager:	David A. Parker <david@neongoat.com>
Source:		%{name}-%{version}.tar.gz
BuildRoot:	%{_tmppath}/%{name}-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 devel
Summary: Development files for libdbi (Database Independent Abstraction Layer for C)
Group: Development/Libraries
Requires:	%{name} = %{version}-%{release}

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

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

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=/usr
make

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

%files
%defattr(-,root,root)
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc README
%doc README.drivers
/usr/lib/libdbi.so.*

%files devel
%doc README
%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
/usr/lib/libdbi.a
/usr/lib/libdbi.la
/usr/lib/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