readahead-vl.spec 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. Summary: Read a preset list of files into memory.
  2. Summary(ja): あらかじめ指定したファイル群をメモリに先読みするツール
  3. Name: readahead
  4. Version: 1.5.6
  5. Release: 1%{?_dist_release}
  6. Group: System Environment/Base
  7. License: GPLv2+
  8. URL: https://hosted.fedoraproject.org/readahead
  9. Source0: readahead-%{version}.tar.bz2
  10. #Source1: readahead_early
  11. #Source2: default.early
  12. # default settings for Vine Linux
  13. #Patch0: readahead-1.5.0-default.patch
  14. # (mdv) create a temp file to detect if collector is running, autodelect collector enabling file at end of collection
  15. #Patch1: readahead-1.4.6-autocollector.patch
  16. # (mdv) don't generate later list
  17. #Patch2: readahead-1.4.6-nolater.patch
  18. Patch3: better-cron.patch
  19. #Patch4: multiple-ignores.patch
  20. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  21. Requires(post): /sbin/chkconfig
  22. Requires(pre): /sbin/chkconfig
  23. Requires(triggerpostun): /sbin/chkconfig
  24. Requires: procps, gawk
  25. Requires: upstart /usr/bin/ionice
  26. BuildRequires: e2fsprogs-devel, audit-libs-devel, libblkid-devel
  27. BuildRequires: pkgconfig
  28. %description
  29. readahead reads the contents of a list of files into memory,
  30. which causes them to be read from cache when they are actually
  31. needed. Its goal is to speed up the boot process.
  32. %description -l ja
  33. readahead はあらかじめ指定されたファイルをメモリに読み込んでおき、
  34. 実際に必要になったときにキャッシュから読み込まれるようにします。
  35. このツールの目的は起動プロセスの高速化です。
  36. %prep
  37. %setup -q
  38. #%patch0 -p1 -b .default
  39. #%patch1 -p1 -b .autocollector
  40. #%patch2 -p1 -b .nolater
  41. %patch3 -p1
  42. #%patch4 -p1
  43. #install -m644 %{SOURCE2} lists/
  44. %build
  45. %configure --sbindir=/sbin
  46. make %{?_smp_mflags}
  47. %install
  48. rm -rf $RPM_BUILD_ROOT
  49. make DESTDIR=$RPM_BUILD_ROOT install
  50. mkdir -p ${RPM_BUILD_ROOT}%{_localstatedir}/lib/readahead
  51. %find_lang %{name}
  52. %clean
  53. rm -rf ${RPM_BUILD_ROOT}
  54. %preun
  55. if [ "$1" = "0" ] ; then
  56. # for updating older packages with service files
  57. /sbin/service readahead_later stop >/dev/null 2>&1
  58. /sbin/chkconfig --del readahead_later >/dev/null 2>&1
  59. /sbin/service readahead_early stop >/dev/null 2>&1
  60. /sbin/chkconfig --del readahead_early >/dev/null 2>&1
  61. :
  62. fi
  63. %post
  64. %{_sysconfdir}/cron.monthly/readahead-monthly.cron
  65. :
  66. %files -f %{name}.lang
  67. %defattr(-,root,root,- )
  68. %doc COPYING README lists/README.lists NEWS
  69. %{_sysconfdir}/cron.daily/readahead.cron
  70. %{_sysconfdir}/cron.monthly/readahead-monthly.cron
  71. %dir %{_localstatedir}/lib/readahead
  72. %{_sysconfdir}/init/readahead-collector.conf
  73. %{_sysconfdir}/init/readahead-disable-services.conf
  74. %{_sysconfdir}/init/readahead.conf
  75. %config(noreplace) %{_sysconfdir}/sysconfig/readahead
  76. %config(noreplace) %{_sysconfdir}/readahead.conf
  77. /sbin/readahead
  78. /sbin/readahead-collector
  79. %changelog
  80. * Wed Jun 16 2010 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.6-1
  81. - new upstream release
  82. - dropt patche0,1,2,4 and other sources
  83. - added Requires: upstart, /usr/bin/ionice
  84. - set up for upstart
  85. * Sun Oct 25 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.4-1
  86. - new upstream release
  87. - added %preun to delete old service
  88. - added configure option
  89. - added BuildRequires: libblkid-devel
  90. * Tue Oct 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.3-1
  91. - new upstream release
  92. - dropt Pacth3,5
  93. - renumbered Patch
  94. - added Patch4 (multiple-ignores.patch) from Debian
  95. * Thu Oct 8 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.1-2
  96. - fixed Patch number in changelog Thu Sep 24 2009
  97. - added Patch4,5 from Debian
  98. * Thu Sep 24 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.1-1
  99. - new upstream release
  100. - added Patch3 from Fedora
  101. * Sun Sep 13 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.5.0-1
  102. - new upstream release
  103. - updated and renamed Patch0: readahead-1.5.0-default.patch
  104. * Fri Aug 07 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.9-5
  105. - add /usr/share/anthy to exclude list
  106. * Sun Aug 01 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.9-4
  107. - /etc/readahead.d moved to /var/lib/readahead
  108. * Sat May 9 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.9-3
  109. - fix readahead_early (Source1) to check wheter /etc/readahead.d/*.early
  110. do exist
  111. * Fri May 1 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.4.9-2
  112. - include /etc/readahead.d directory (otherwise /sbin/readahead_early
  113. will exit with non-zero exit status)
  114. * Sat Apr 11 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.4.9-1
  115. - new upstream release
  116. - updated and renamed Patch0: readahead-1.4.9-default.patch
  117. * Sat Dec 13 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.6-1
  118. - new upstream release
  119. - remove readahead_later, use preload for this.
  120. - add some patches from mdk
  121. - remove initscripts, will be handle in rc.sysinit
  122. * Wed Oct 15 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3-1
  123. - initial build for Vine Linux
  124. * Fri Feb 2 2007 Karel Zak <kzak@redhat.com> - 1:1.3-7
  125. - rebuild (update file lists)
  126. * Tue Jan 16 2007 Karel Zak <kzak@redhat.com> - 1:1.3-6
  127. - update file lists (215503)
  128. * Sun Oct 01 2006 Jesse Keating <jkeating@redhat.com> - 1:1.3-5
  129. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  130. * Fri Sep 22 2006 Karel Zak <kzak@redhat.com> 1:1.3-4
  131. - fix #207631 - clean up package build system and use tarball instead
  132. separated source files
  133. * Fri Sep 22 2006 Karel Zak <kzak@redhat.com> 1:1.3-3
  134. - fix #207631 - readahead has no debuginfo
  135. * Mon Jul 20 2006 Karel Zak <kzak@redhat.com> 1:1.3-1
  136. - move lists of files to /etc/readahead.d
  137. - add readahead-check to docs
  138. - ignore duplicate files
  139. * Wed Jul 19 2006 Jesse Keating <jkeating@redhat.com> - 1:1.2-3
  140. - fix release for upgrade path (by removing cvs generated release)
  141. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.2-1.26
  142. - rebuild
  143. * Thu Mar 16 2006 Karel Zak <kzak@redhat.com>
  144. - update versions in *.in lists
  145. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:1.2-1.24.2
  146. - bump again for double-long bug on ppc(64)
  147. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:1.2-1.23.1
  148. - rebuilt for new gcc4.1 snapshot and glibc changes
  149. * Fri Jan 13 2006 Karel Zak <kzak@redhat.com>
  150. - check & cleanup list of files by readahead-gen script
  151. * Wed Dec 21 2005 Karel Zak <kzak@redhat.com>
  152. - removed double slashes in the directory names
  153. - removed or fixed the rest of X11R6 directories
  154. * Mon Dec 19 2005 Karel Zak <kzak@redhat.com>
  155. - sync versioned gcc, firefox, openoffice.org, evolution dirs with FC5
  156. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  157. - rebuilt
  158. * Thu Aug 4 2005 Dave Jones <davej@redhat.com>
  159. - Integrated changes from Ville Skytta (#164872)
  160. - Fix inverted logic in readahead_early also.
  161. - readahead_early looks useful in more runlevels than just 5.
  162. - Sync versioned gcc, firefox and openoffice.org dirs with FC4 updates.
  163. * Tue Aug 2 2005 Dave Jones <davej@redhat.com>
  164. - Fix inverted free memory test in startup script. (#164872)
  165. * Wed May 18 2005 Bill Nottingham <notting@redhat.com>
  166. - new readahead.c from Ziga Mahkovec <ziga.mahkovec@klika.si>
  167. - optimizes read access for more throughput
  168. - regenerate file lists (#128444)
  169. - fix lack of newlines (#146744)
  170. - fix lists so that they are architecture-neutral
  171. - move check for > 384MB into the init scripts, not the %%post
  172. * Tue Mar 1 2005 Dave Jones <davej@redhat.com>
  173. - Rebuild for gcc4
  174. * Thu Feb 10 2005 Dave Jones <davej@redhat.com>
  175. - Remove non-existent files from file lists.
  176. * Fri Jan 14 2005 Dave Jones <davej@redhat.com>
  177. - Don't do readahead if we have less than 256MB of memory.
  178. * Sat Dec 18 2004 Dave Jones <davej@redhat.com>
  179. - Initial packaging, based upon kernel-utils.