blob: 6cc7ab2eabed0e610a671c7ac7822b0c67dbb1b9 [file] [log] [blame]
doughenry3c0d1ec2002-03-29 01:28:45 +00001%define name sqlite
2%define version SQLITE_VERSION
3%define release 1
4
5Name: %{name}
6Summary: SQLite is a C library that implements an embeddable SQL database engine
7Version: %{version}
8Release: %{release}
9Source: %{name}-%{version}.tar.gz
10Group: System/Libraries
mihailimbfccf422008-06-23 20:55:20 +000011URL: http://www.sqlite.org/
doughenry3c0d1ec2002-03-29 01:28:45 +000012License: Public Domain
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15%description
mihailimbfccf422008-06-23 20:55:20 +000016SQLite is a software library that implements a self-contained, serverless,
17zero-configuration, transactional SQL database engine.
doughenry3c0d1ec2002-03-29 01:28:45 +000018Programs that link with the SQLite library can have SQL database access
19without running a separate RDBMS process. The distribution comes with a
20standalone command-line access program (sqlite) that can be used to
21administer an SQLite database and which serves as an example of how to
22use the SQLite library.
23
24%package -n %{name}-devel
25Summary: Header files and libraries for developing apps which will use sqlite
26Group: Development/C
27Requires: %{name} = %{version}-%{release}
28
29%description -n %{name}-devel
30The sqlite-devel package contains the header files and libraries needed
mihailimbfccf422008-06-23 20:55:20 +000031to develop programs that use the SQLite database library.
doughenry3c0d1ec2002-03-29 01:28:45 +000032
33%prep
34%setup -q -n %{name}
35
36%build
37CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix}
38
doughenry3c0d1ec2002-03-29 01:28:45 +000039make
40make doc
41
42%install
43install -d $RPM_BUILD_ROOT/%{_prefix}
44install -d $RPM_BUILD_ROOT/%{_prefix}/bin
45install -d $RPM_BUILD_ROOT/%{_prefix}/include
46install -d $RPM_BUILD_ROOT/%{_prefix}/lib
47make install prefix=$RPM_BUILD_ROOT/%{_prefix}
48
mihailimbfccf422008-06-23 20:55:20 +000049%post -p /sbin/ldconfig
50
51%postun -p /sbin/ldconfig
52
doughenry3c0d1ec2002-03-29 01:28:45 +000053%clean
54rm -fr $RPM_BUILD_ROOT
55
56%files
57%defattr(-, root, root)
58%{_libdir}/*.so*
59%{_bindir}/*
60
61%files -n %{name}-devel
62%defattr(-, root, root)
dougcurrie88215bd2004-07-19 22:28:43 +000063%{_libdir}/pkgconfig/sqlite3.pc
doughenry3c0d1ec2002-03-29 01:28:45 +000064%{_libdir}/*.a
65%{_libdir}/*.la
66%{_includedir}/*
67%doc doc/*