blob: 776d56f302139b031049959c9da5fafd79b42a3e [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
11URL: http://www.hwaci.com/sw/sqlite/
12License: Public Domain
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14
15%description
16SQLite is a C library that implements an embeddable SQL database engine.
17Programs that link with the SQLite library can have SQL database access
18without running a separate RDBMS process. The distribution comes with a
19standalone command-line access program (sqlite) that can be used to
20administer an SQLite database and which serves as an example of how to
21use the SQLite library.
22
23%package -n %{name}-devel
24Summary: Header files and libraries for developing apps which will use sqlite
25Group: Development/C
26Requires: %{name} = %{version}-%{release}
27
28%description -n %{name}-devel
29The sqlite-devel package contains the header files and libraries needed
30to develop programs that use the sqlite database library.
31
32%prep
33%setup -q -n %{name}
34
35%build
36CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix}
37
38%make
39make
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
49%clean
50rm -fr $RPM_BUILD_ROOT
51
52%files
53%defattr(-, root, root)
54%{_libdir}/*.so*
55%{_bindir}/*
56
57%files -n %{name}-devel
58%defattr(-, root, root)
59%{_libdir}/*.a
60%{_libdir}/*.la
61%{_includedir}/*
62%doc doc/*