readahead-vl.spec 7.3 KB

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