sqlite3-ruby-vl.spec 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. %define pkg_version 1.2.4
  2. %define pkg_release 1%{?_dist_release}
  3. Summary: SQLite3/Ruby Interface
  4. Name: sqlite3-ruby
  5. Version: %{pkg_version}
  6. Release: %{pkg_release}
  7. Source0: %{name}-%{version}.tar.bz2
  8. License: MIT
  9. Group: Development/Languages
  10. URL: http://rubyforge.org/projects/sqlite-ruby
  11. Requires: ruby, sqlite3
  12. BuildRequires: ruby, sqlite3-devel
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. Vendor: Project Vine
  15. Distribution: Vine Linux
  16. %description
  17. This module allows Ruby programs to interface with the SQLite3
  18. database engine (http://www.sqlite.org). You must have the
  19. SQLite engine installed in order to build this module.
  20. Note that this module is NOT compatible with SQLite 2.x.
  21. %prep
  22. %setup -q
  23. %build
  24. ruby setup.rb config --site-ruby=%{rarchdir} --so-dir=%{rarchdir}
  25. ruby setup.rb setup
  26. %install
  27. %{__rm} -rf ${RPM_BUILD_ROOT}
  28. ruby setup.rb install --prefix=${RPM_BUILD_ROOT}
  29. %clean
  30. %{__rm} -rf ${RPM_BUILD_ROOT}
  31. %files
  32. %defattr(-,root,root)
  33. %doc CHANGELOG.rdoc README.rdoc LICENSE doc api
  34. %{rarchdir}/sqlite3_api.so
  35. %{rarchdir}/sqlite3.rb
  36. %{rarchdir}/sqlite3
  37. %changelog
  38. * Sat Mar 7 2009 IWAI, Masaharu <iwai@alib.jp> 0.8.4-1
  39. - initial release