spec.template 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. %define name sqlite
  2. %define version SQLITE_VERSION
  3. %define release 1
  4. Name: %{name}
  5. Summary: SQLite is a C library that implements an embeddable SQL database engine
  6. Version: %{version}
  7. Release: %{release}
  8. Source: %{name}-%{version}.tar.gz
  9. Group: System/Libraries
  10. URL: http://www.hwaci.com/sw/sqlite/
  11. License: Public Domain
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  13. %description
  14. SQLite is a C library that implements an embeddable SQL database engine.
  15. Programs that link with the SQLite library can have SQL database access
  16. without running a separate RDBMS process. The distribution comes with a
  17. standalone command-line access program (sqlite) that can be used to
  18. administer an SQLite database and which serves as an example of how to
  19. use the SQLite library.
  20. %package -n %{name}-devel
  21. Summary: Header files and libraries for developing apps which will use sqlite
  22. Group: Development/C
  23. Requires: %{name} = %{version}-%{release}
  24. %description -n %{name}-devel
  25. The sqlite-devel package contains the header files and libraries needed
  26. to develop programs that use the sqlite database library.
  27. %prep
  28. %setup -q -n %{name}
  29. %build
  30. CFLAGS="%optflags -DNDEBUG=1" CXXFLAGS="%optflags -DNDEBUG=1" ./configure --prefix=%{_prefix}
  31. make
  32. make doc
  33. %install
  34. install -d $RPM_BUILD_ROOT/%{_prefix}
  35. install -d $RPM_BUILD_ROOT/%{_prefix}/bin
  36. install -d $RPM_BUILD_ROOT/%{_prefix}/include
  37. install -d $RPM_BUILD_ROOT/%{_prefix}/lib
  38. make install prefix=$RPM_BUILD_ROOT/%{_prefix}
  39. %clean
  40. rm -fr $RPM_BUILD_ROOT
  41. %files
  42. %defattr(-, root, root)
  43. %{_libdir}/*.so*
  44. %{_bindir}/*
  45. %files -n %{name}-devel
  46. %defattr(-, root, root)
  47. %{_libdir}/*.a
  48. %{_libdir}/*.la
  49. %{_includedir}/*
  50. %doc doc/*