quickml-vl.spec 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. %define rlibdir %(ruby -rrbconfig -e 'print Config::CONFIG["rubylibdir"]')
  2. Name: quickml
  3. Version: 0.5
  4. Release: 1%{?_dist_release}
  5. License: GPL
  6. Group: System Environment/Daemons
  7. Source: http://quickml.com/quickml/%{name}-%{version}.tar.gz
  8. Source1: quickml.init
  9. Source2: quickml.logrotate
  10. Patch1: quickml-0.5-docs.patch
  11. URL: http://quickml.com/
  12. Prefix: /usr
  13. BuildArch: noarch
  14. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  15. Requires: ruby >= 1.6.7
  16. Summary: very-easy-to-use mailing list system
  17. Summary(ja): 超お手軽なメーリングリストシステム
  18. %description
  19. quickml server is a very-easy-to-use mailing list system. quickml server
  20. provides very-easy-to-use mailing list service.
  21. %description -l ja
  22. quickmlサーバは超お手軽なメーリングリストシステムです。quickmlサーバを利用す
  23. れば、超お手軽なメーリングリストサービスを提供できます。
  24. %prep
  25. %setup -q
  26. %patch1 -p0
  27. %build
  28. make PREFIX=%{_prefix} \
  29. SYSCONFDIR=%{_sysconfdir} \
  30. LOCALSTATEDIR=%{_localstatedir}/%{name} \
  31. SITE_RUBY=%{rlibdir}
  32. %install
  33. rm -rf ${RPM_BUILD_ROOT}
  34. install -d ${RPM_BUILD_ROOT}
  35. install -d ${RPM_BUILD_ROOT}%{_initdir}
  36. install -d ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d
  37. install -d ${RPM_BUILD_ROOT}%{_localstatedir}/%{name}
  38. install -d ${RPM_BUILD_ROOT}%{_datadir}/%{name}
  39. install -d ${RPM_BUILD_ROOT}%{rlibdir}/%{name}
  40. make PREFIX=${RPM_BUILD_ROOT}%{_prefix} \
  41. SYSCONFDIR=${RPM_BUILD_ROOT}%{_sysconfdir} \
  42. LOCALSTATEDIR=${RPM_BUILD_ROOT}%{_localstatedir}/%{name} \
  43. SITE_RUBY=${RPM_BUILD_ROOT}%{rlibdir} \
  44. install
  45. install -m755 %{SOURCE1} ${RPM_BUILD_ROOT}%{_initdir}/%{name}
  46. install -m755 %{SOURCE2} ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/%{name}
  47. %clean
  48. rm -rf ${RPM_BUILD_ROOT}
  49. %post
  50. /sbin/chkconfig --add quickml
  51. %preun
  52. if [ $1 = 0 ]; then
  53. service quickml stop > /dev/null 2>&1
  54. /sbin/chkconfig --del quickml
  55. fi
  56. %files
  57. %defattr(-, root, root)
  58. %{_sbindir}/*
  59. %{_localstatedir}/%{name}
  60. %{_datadir}/%{name}
  61. %{rlibdir}/*.rb
  62. %{rlibdir}/%{name}/*.rb
  63. %config %{_sysconfdir}/quickmlrc
  64. %config %{_sysconfdir}/logrotate.d/%{name}
  65. %config %{_initdir}/%{name}
  66. %doc *.rd quickmlrc.sample
  67. %changelog
  68. * Fri Oct 10 2008 Shu KONNO <owa@bg.wakwak.com> 0.5-1vl5
  69. - applied new versioning policy, spec in utf-8
  70. * Fri Mar 08 2002 akira yamada <akira@vinelinux.org> 0.5-0vl1
  71. - new upstream version.
  72. * Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 0.2-0vl1
  73. - new upstream version.
  74. - removed quickml-0.1-*.patch. they are included in upstream source.
  75. * Tue Feb 12 2002 akira yamada <akira@vinelinux.org> 0.1-0vl1
  76. - Initial packaging.