RedCloth-vl.spec 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. %define ruby /usr/bin/ruby
  2. %define rbindir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["bindir"]')
  3. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  4. %define rarchdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["archdir"]')
  5. Summary: A Textile library for Ruby
  6. Summary(ja): RubyのためのTextileライブラリ
  7. Name: RedCloth
  8. Version: 3.0.4
  9. Release: 1%{?_dist_release}
  10. License: BSD
  11. Group: System Environment/Libraries
  12. Source: http://rubyforge.org/frs/download.php/6064/RedCloth-3.0.4.tar.gz
  13. Patch1: RedCloth-3.0.4-ri-data-install.patch
  14. Patch2: RedCloth-3.0.4-fix-shebang.patch
  15. URL: http://rubyforge.org/projects/redcloth/
  16. BuildArch: noarch
  17. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  18. BuildPreReq: ruby ruby-devel rdoc
  19. Requires: ruby
  20. %description
  21. RedCloth is a library for using Textile in Ruby. Textile is a text
  22. format. A very simple text format. Another stab at making readable
  23. text that can be converted to HTML.
  24. %description -l ja
  25. RedClothはRubyでテキストフォーマットの一種であるTextileを使うためのラ
  26. イブラリです。これはとてもシンプルなフォーマットであり、HTML形式に変換
  27. することができます。
  28. %prep
  29. %setup -q
  30. %patch1 -p1
  31. %patch2 -p1
  32. %build
  33. %{ruby} setup.rb config --rbdir=\$stdruby
  34. %{ruby} setup.rb setup
  35. cd doc
  36. %{ruby} make.rb README > ../README.html
  37. %{ruby} make.rb QUICK-REFERENCE > ../QUICK-REFERENCE.html
  38. %{ruby} make.rb REFERENCE > ../REFERENCE.html
  39. cd ..
  40. %install
  41. rm -rf ${RPM_BUILD_ROOT}
  42. mkdir -p ${RPM_BUILD_ROOT}%{rbindir}
  43. mkdir -p ${RPM_BUILD_ROOT}%{rlibdir}
  44. %{ruby} setup.rb install --prefix=${RPM_BUILD_ROOT}
  45. %clean
  46. rm -rf ${RPM_BUILD_ROOT}
  47. rm README.html QUICK-REFERENCE.html REFERENCE.html
  48. %files
  49. %defattr(-, root, root)
  50. %doc doc/CHANGELOG
  51. %doc doc/README
  52. %doc doc/REFERENCE
  53. %{_bindir}/*
  54. %{rlibdir}/*
  55. %{_datadir}/ri/*/*/RedCloth/*
  56. %changelog
  57. * Sun Oct 05 2008 Shu KONNO <owa@bg.wakwak.com> 3.0.4-1vl5
  58. - applied new versioning policy, spec in utf-8
  59. * Mon Mar 19 2007 akira yamada <akira@vinelinux.org> 3.0.4-0vl1
  60. - initial packaging.