self-build-setup-vl.spec 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. %define name self-build-setup
  2. %define version 1.0.1
  3. %define release 1%{?_dist_release}
  4. Summary: Setup files for self-build package
  5. Summary(ja): self-build パッケージ用の設定ファイル
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. Source0: %{name}-%{version}.tar.bz2
  10. License: GPL
  11. Group: Applications/Administration
  12. Requires: rpm, wget, zenity
  13. Requires: build-essential
  14. BuildArch: noarch
  15. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  16. Packager: kazutaka, munepi
  17. %description
  18. This package includes setup files and helper scripts
  19. required to install self-build package.
  20. You have to install this package if you want to install
  21. self-build package.
  22. [Note]
  23. This package includes configuratin file for apt.
  24. Please install this package without other package.
  25. Also if you install this package using synaptic package
  26. manager, please restart it after installation.
  27. %description -l ja
  28. このパッケージは self-build パッケージ及び install-assist
  29. パッケージのインストールに必要な設定ファイル及びヘルパースク
  30. リプトを含みます。
  31. self-build パッケージをインストールする場合はこのパッケージを
  32. インストールしてください。
  33. [注意]
  34. このパッケージは apt の設定ファイルを含んでいます。必ず他の
  35. self-build-* パッケージより先に、単体でインストールしてくだ
  36. さい。
  37. また synaptic パッケージマネージャからインストールする場合は、
  38. インストール後に一度 synaptic を再起動してください。
  39. %prep
  40. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  41. %setup
  42. %build
  43. %__make
  44. %install
  45. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  46. %__make DESTDIR=$RPM_BUILD_ROOT LIBDIR=%{_libdir} install
  47. %clean
  48. [ "${RPM_BUILD_ROOT}" != "/" ] && %__rm -rf ${RPM_BUILD_ROOT}
  49. %pre
  50. # Add the "Self build rpm" user
  51. %{_sbindir}/useradd -c 'Self build' -r \
  52. -d '/var/lib/self-build' selfbuild 2> /dev/null || :
  53. %files
  54. %defattr(-,root,root)
  55. %{_sysconfdir}/apt/apt.conf.d/install-self-build.conf
  56. %config %{_sysconfdir}/self-build.conf
  57. %{_datadir}/apt/scripts/install-self-build-rpm.lua
  58. %{_datadir}/apt/scripts/check-self-build.lua
  59. %{_libdir}/rpm/check-self-build.sh
  60. %{_libdir}/rpm/install-self-build-rpm.sh
  61. %{_libdir}/rpm/pre-allocate-rpm.sh
  62. %{_libdir}/rpm/self-build-rpm.sh
  63. %{_libdir}/rpm/get-binary-rpm.sh
  64. %{_localedir}/ja/LC_MESSAGES/%{name}.mo
  65. %dir %{_localstatedir}/cache/self-build
  66. %dir %{_localstatedir}/lib/self-build
  67. %changelog
  68. * Tue Mar 30 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.0.1-1
  69. - update self-build-rpm.sh to avoid early temination of build process
  70. * Sun Mar 28 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 1.0.0-1
  71. - update self-build-rpm.sh and self-build-setup-ja.po to trim
  72. trailing "-vl" from spec filename for building messages
  73. * Sat Mar 13 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9.9-1
  74. - update self-build-rpm.sh to handle https URI (<BTS:VineLinux:953>)
  75. - use wget -O option to fix filename (<BTS:VineLinux:950>)
  76. * Sat Feb 20 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9.8-1
  77. - update logic for progress bar with zenity (get-binary-rpm.sh)
  78. - stop to use %%_arch macro (self-build-rpm.sh)
  79. * Thu Feb 18 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9.7-1
  80. - fix rpm build fail when smaller log size is given to self-build-rpm.sh
  81. * Mon Feb 08 2010 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.6-1
  82. - added CACHE_DOWNLOADED_FILES option to cache downloaded files
  83. (by munepi-san)
  84. * Sun Jan 31 2010 Kazutaka HARADA <kazutaka@vinelinux.org> 0.9.5-1
  85. - move this project to Trac/SVN (by munepi-san)
  86. - define bar(), percentage() in self-build-rpm.sh (by harada)
  87. - keep downloaded source files to /var/cache/self-build for self-build-rpm.sh
  88. (by munepi-san)
  89. - check downloaded rpm files in /var/cache/apt/archives for get-binary-rpm.sh
  90. (by munepi-san)
  91. - update ja.po (harada)
  92. * Tue Jun 02 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.4-1
  93. - fix temporary directory in get-binary-rpm.sh (rpm/SOURCES not required)
  94. * Sun May 31 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.3-1
  95. - delete DL_USE_GUI option (self-build.conf)
  96. - show GUI progress bar if synaptic is running (self-build-rpm.sh)
  97. - apply same change to get-binary-rpm.sh
  98. - update translation
  99. * Thu May 28 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.2-1
  100. - drop -u %%{user_uid} from useradd option (use automatic numbering for uid)
  101. - remove previsous build log before starting rpmbuild (self-build-rpm.sh)
  102. - add self-build.conf for some options
  103. - update self-build-rpm.sh to get options from self-build.conf
  104. - add Requires: zenity used for showing progress bar
  105. * Wed May 27 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.1-1
  106. - add an user in %%pre for non-root user selfbuild
  107. - update self-build-rpm.sh to run rpmbuild command by non-root user
  108. * Thu May 14 2009 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.9.0-1
  109. - add get-binary-rpm.sh as Source8 to support install-assist package
  110. - update japanese message catalog for get-binary-rpm.sh
  111. * Sun Nov 02 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.8.2-2
  112. - spec in utf8
  113. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.2-1
  114. - set indent for some messages.
  115. * Sun May 18 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8.1-1
  116. - make building process more verbose. <BTS:wishes:155>
  117. * Sun Apr 20 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.8-1
  118. - add pre-allocate-rpm.sh to allocate files from created rpm packages
  119. before install them.
  120. * Tue Apr 15 2008 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.7-1
  121. - update self-build-rpm.sh to handle multiple source URL <BTS:VineLinux:603>
  122. - fix typo <BTS:VineLinux:605>
  123. - add Requires: build-essential <BTS:VineLinux:614>
  124. * Sat Nov 10 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.6-0vl1
  125. - disable check script. (Now comment out in install-self-build.conf)
  126. * Thu Nov 08 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.5-0vl1
  127. - use --force option to install created rpm files.
  128. - add check scripts Source5 & Source6 to aboid to install multiple
  129. self-build-* packages at same time.
  130. - add some messages and updated japanese message catalogue.
  131. * Thu Nov 01 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.4-0vl1
  132. - add que directory %{_localstatedir}/cache/self-build.
  133. - change archive directory to /var/cache/apt/archives.
  134. * Thu Oct 25 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.3-0vl1
  135. - update helper scripts to make messages as translatable.
  136. - add japanese message catalogue (Source4)
  137. * Mon Oct 22 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.2-0vl1
  138. - update Source3 (use mktemp to create dir and add error check)
  139. * Thu Oct 18 2007 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 0.1-0vl1
  140. - initial build for Vine Linux