tiny-buildfarm-vl.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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. %define etcdir /etc/tiny-buildfarm
  6. %define statedir /var/lib/tiny-buildfarm
  7. Name: tiny-buildfarm
  8. Version: 0.0.2.2
  9. Release: 0vl3
  10. Copyright: distributable
  11. Group: Development/Tools
  12. Source: http://arika.org/archive/%{name}-%{version}.tar.gz
  13. Prefix: /usr
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. BuildRequires: ruby, ruby-devel >= 1.6.4-0vl3
  17. PreReq: ruby, ruby-optparse, ruby-rpmspec
  18. Requires: ruby, ruby-optparse, ruby-rpmspec, rpm, apt >= 0.3.19.cnc.52
  19. Summary: Tiny Buildfarm
  20. Summary(ja): Tiny Buildfarm
  21. %description
  22. %description -l ja
  23. %prep
  24. %setup -q
  25. %build
  26. ruby install.rb config \
  27. --bin-dir=%{rbindir} \
  28. --rb-dir=%{rlibdir} \
  29. --so-dir=%{rarchdir}
  30. ruby install.rb setup
  31. %install
  32. rm -rf ${RPM_BUILD_ROOT}
  33. mkdir -p ${RPM_BUILD_ROOT}%{rbindir}
  34. mkdir -p ${RPM_BUILD_ROOT}%{rlibdir}
  35. mkdir -p ${RPM_BUILD_ROOT}%{rarchdir}
  36. mkdir -p ${RPM_BUILD_ROOT}%{etcdir}
  37. mkdir -p ${RPM_BUILD_ROOT}%{statedir}
  38. # installing binaries ...
  39. ruby install.rb install --prefix=${RPM_BUILD_ROOT}
  40. install -m644 \
  41. examples/sources.list.vine215 \
  42. examples/sources.list.vineseed \
  43. ${RPM_BUILD_ROOT}%{etcdir}/
  44. ln -sf sources.list.vine215 \
  45. ${RPM_BUILD_ROOT}%{etcdir}/sources.list.vinelinux
  46. %clean
  47. rm -rf ${RPM_BUILD_ROOT}
  48. %post
  49. /usr/bin/chrootdo-init
  50. %preun
  51. if [ "$0" = 0 ] && [ -d %{statedir} ]
  52. then
  53. cd %{statedir} && rm -rf *
  54. fi
  55. %files
  56. %defattr(-, root, root)
  57. %{rbindir}
  58. %{rlibdir}
  59. %{statedir}
  60. %config %{etcdir}/sources.list.*
  61. %changelog
  62. * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 0.0.2.2-0vl3
  63. - added ruby, ruby-optparse, ruby-rpmspec to PreReq.
  64. * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 0.0.2.2-0vl2
  65. - requires ruby-rpmspec
  66. * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 0.0.2.2-0vl1
  67. - new upstream version.
  68. * Mon Oct 22 2001 akira yamada <akira@vinelinux.org> 0.0.1.1-0vl1
  69. - new upstream version.
  70. * Mon Oct 22 2001 akira yamada <akira@vinelinux.org> 0.0.1-0vl2
  71. - new upstream version.
  72. * Sat Oct 20 2001 akira yamada <akira@vinelinux.org> 0.0.0.6.1-0vl1
  73. - new upstream version.
  74. * Sat Oct 20 2001 akira yamada <akira@vinelinux.org> 0.0.0.6-0vl1
  75. - new upstream version.
  76. * Mon Sep 10 2001 akira yamada <akira@vinelinux.org> 0.0.0.5.1-0vl1
  77. - new upstream version.
  78. * Sun Sep 09 2001 akira yamada <akira@vinelinux.org> 0.0.0.5-0vl1
  79. - new upstream version.
  80. * Sun Sep 09 2001 akira yamada <akira@vinelinux.org> 0.0.0.4-0vl1
  81. - new upstream version.
  82. * Sun Sep 09 2001 akira yamada <akira@vinelinux.org> 0.0.0.3-0vl1
  83. - new upstream version.
  84. * Thu Sep 07 2001 akira yamada <akira@vinelinux.org> 0.0.0.2-0vl1
  85. - new upstream version.
  86. * Thu Sep 07 2001 akira yamada <akira@vinelinux.org> 0.0.0.1-0vl1
  87. - new upstream version.
  88. * Thu Sep 06 2001 akira yamada <akira@vinelinux.org> 0.0.0.0.1-0vl1
  89. - new upstream version.
  90. * Thu Sep 06 2001 akira yamada <akira@vinelinux.org> 0.0.0.0-0vl1
  91. - Initial packaging.