walrus-vl.spec 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. %define ruby /usr/bin/ruby
  2. %define rlibdir %(%{ruby} -r rbconfig -e 'print Config::CONFIG["rubylibdir"]')
  3. Summary: Ruby based WEB Application server
  4. Name: walrus
  5. Version: 0.8.1
  6. Release: 1%{?_dist_release}
  7. License: GPL
  8. Group: Development/Languages
  9. Source0: http://www.brain-tokyo.jp/~research/koutetu/walrus/%{name}-%{version}.tar.gz
  10. Patch0: walrus-0.8.1-ruby186.diff
  11. URL: http://www.brain-tokyo.jp/~research/koutetu/
  12. BuildArch: noarch
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  14. BuildRequires: ruby ruby-devel
  15. Requires: ruby >= 1.8.1, obaq >= 0.6.1-0vl3
  16. %description
  17. Walrus provides some features:
  18. * template
  19. * contents generation helper
  20. * application server
  21. %prep
  22. %setup -q -c
  23. pushd %{name}-%{version}
  24. %patch0 -p0
  25. popd
  26. [ -d tmp ] && rm -rf tmp
  27. mkdir tmp
  28. tar cf - %{name}-%{version} | (cd tmp && tar xf -)
  29. cd tmp/%{name}-%{version}
  30. for f in `find sample -type f`
  31. do
  32. sed -e '1s/^#!.*//' < $f > $f.tmp; \
  33. mv -f $f.tmp $f; \
  34. done
  35. rm -f lib/walrus/walrusver.rb walrusmain.rb
  36. cd ../..
  37. %build
  38. %install
  39. rm -rf ${RPM_BUILD_ROOT}
  40. mkdir -p ${RPM_BUILD_ROOT}%{rlibdir}
  41. # installing binaries ...
  42. cd tmp/%{name}-%{version}
  43. make install \
  44. WALRUS_CURRENT_VER=%{version} \
  45. PREFIX=${RPM_BUILD_ROOT}%{_prefix} \
  46. SITE_DIR=${RPM_BUILD_ROOT}%{rlibdir}
  47. cd ../..
  48. %clean
  49. rm -rf ${RPM_BUILD_ROOT}
  50. rm -rf tmp
  51. %files
  52. %defattr(-, root, root)
  53. %{_bindir}/walrus
  54. %{rlibdir}/walrus/*.rb
  55. %doc tmp/%{name}-%{version}/ChangeLog
  56. %doc tmp/%{name}-%{version}/README
  57. %doc tmp/%{name}-%{version}/manual
  58. %doc tmp/%{name}-%{version}/test
  59. %doc tmp/%{name}-%{version}/sample
  60. %changelog
  61. * Tue Oct 14 2008 Shu KONNO <owa@bg.wakwak.com> 0.8.1-1vl5
  62. - applied new versioning policy
  63. * Sun Apr 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.1-0vl3
  64. - add patch0 to support ruby-1.8.6
  65. * Sun Feb 15 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.1-0vl2
  66. - rebuild on ruby 1.8.1
  67. * Sun Jun 16 2002 akira yamada <akira@vinelinux.org> 0.8.1-0vl1
  68. - Initial packaging.