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.hwaci.com/sw/sqlite/
12 License: Public Domain
13 BuildRoot: %{_tmppath}/%{name}-%{version}-root
16 SQLite is a C library that implements an embeddable SQL database engine.
17 Programs that link with the SQLite library can have SQL database access
18 without running a separate RDBMS process. The distribution comes with a
19 standalone command-line access program (sqlite) that can be used to
20 administer an SQLite database and which serves as an example of how to
21 use the SQLite library.
23 %package -n %{name}-devel
24 Summary: Header files and libraries for developing apps which will use sqlite
26 Requires: %{name} = %{version}-%{release}
28 %description -n %{name}-devel
29 The sqlite-devel package contains the header files and libraries needed
30 to develop programs that use the sqlite database library.
36 CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix}
42 install -d $RPM_BUILD_ROOT/%{_prefix}
43 install -d $RPM_BUILD_ROOT/%{_prefix}/bin
44 install -d $RPM_BUILD_ROOT/%{_prefix}/include
45 install -d $RPM_BUILD_ROOT/%{_prefix}/lib
46 make install prefix=$RPM_BUILD_ROOT/%{_prefix}
49 rm -fr $RPM_BUILD_ROOT
52 %defattr(-, root, root)
56 %files -n %{name}-devel
57 %defattr(-, root, root)
58 %{_libdir}/pkgconfig/sqlite3.pc