2 %define version SQLITE_VERSION
6 Summary: SQLite is a C library that implements an embeddable SQL database engine
9 Source: %{name}-%{version}.tar.gz
10 Group: System/Libraries
11 URL: http://www.sqlite.org/
12 License: Public Domain
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
16 SQLite is a software library that implements a self-contained, serverless,
17 zero-configuration, transactional SQL database engine.
18 Programs that link with the SQLite library can have SQL database access
19 without running a separate RDBMS process. The distribution comes with a
20 standalone command-line access program (sqlite) that can be used to
21 administer an SQLite database and which serves as an example of how to
22 use the SQLite library.
24 %package -n %{name}-devel
25 Summary: Header files and libraries for developing apps which will use sqlite
27 Requires: %{name} = %{version}-%{release}
29 %description -n %{name}-devel
30 The sqlite-devel package contains the header files and libraries needed
31 to develop programs that use the SQLite database library.
37 CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix}
43 install -d $RPM_BUILD_ROOT/%{_prefix}
44 install -d $RPM_BUILD_ROOT/%{_prefix}/bin
45 install -d $RPM_BUILD_ROOT/%{_prefix}/include
46 install -d $RPM_BUILD_ROOT/%{_prefix}/lib
47 make install prefix=$RPM_BUILD_ROOT/%{_prefix}
49 %post -p /sbin/ldconfig
51 %postun -p /sbin/ldconfig
54 rm -fr $RPM_BUILD_ROOT
57 %defattr(-, root, root)
61 %files -n %{name}-devel
62 %defattr(-, root, root)
63 %{_libdir}/pkgconfig/sqlite3.pc