self-build-setup-vl.spec 6.9 KB

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