preload-vl.spec 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. Name: preload
  2. Version: 0.6.4
  3. Release: 4%{?_dist_release}
  4. Summary: an adaptive readahead daemon
  5. Summary(ja): 適応的先読みデーモン
  6. Group: Applications/System
  7. License: GPLv2+
  8. URL: http://preload.sf.net/
  9. Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
  10. #Patch0: preload-0.6-start-late.patch
  11. Patch0: preload.init.in.patch
  12. #This patch prefered to http://sourceforge.net/tracker/index.php?func=detail&aid=2183212&group_id=143398&atid=755420
  13. Patch1: preload-conf.patch
  14. #This patch from http://preload.svn.sourceforge.net/viewvc/preload/trunk/src/cmdline.c?revision=122
  15. #Patch2: fix_segfault.patch
  16. #This patch from Mandriva
  17. #Patch3: preload-0.6.3-glib214.patch
  18. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  19. BuildRequires: basesystem, glib2-devel
  20. Requires: basesystem, logrotate
  21. Requires(post): /sbin/chkconfig
  22. Requires(post): /sbin/service
  23. Requires(preun): /sbin/chkconfig
  24. Requires(preun): /sbin/service
  25. Requires(postun): /sbin/service
  26. %description
  27. preload monitors applications that users run, and by analyzing this data,
  28. predicts what applications users might run, and fetches those binaries and
  29. their dependencies into memory for faster startup times.
  30. %description -l ja
  31. preload は起動中のアプリケーションを監視し、監視したデータを分析することで、
  32. 度のアプリケーションユーザが起動されるかを予想し、バイナリと依存する
  33. ライブラリをメモリに取り込み、起動時間を高速にします。
  34. %prep
  35. %setup -q
  36. %patch0 -p1
  37. %patch1 -p1
  38. #%patch2 -p1
  39. #%patch3 -p1
  40. %build
  41. %configure
  42. %{__make}
  43. %install
  44. %{__rm} -rf $RPM_BUILD_ROOT
  45. %{__make} install DESTDIR=$RPM_BUILD_ROOT
  46. %clean
  47. %{__rm} -rf $RPM_BUILD_ROOT
  48. %post
  49. /sbin/service preload restart >/dev/null 2>&1
  50. /sbin/chkconfig --add preload
  51. /sbin/chkconfig preload on
  52. %preun
  53. if [ $1 = 0 ]; then
  54. /sbin/service preload stop >/dev/null 2>&1
  55. /sbin/chkconfig --del preload
  56. fi
  57. %postun
  58. if [ "$1" -ge "1" ]; then
  59. /sbin/service preload condrestart >/dev/null 2>&1 || :
  60. fi
  61. %files
  62. %defattr(-,root,root, -)
  63. %doc README AUTHORS COPYING ChangeLog TODO THANKS NEWS
  64. %{_sbindir}/preload
  65. %{_datadir}/man/man8/preload.8.gz
  66. %{_sysconfdir}/rc.d/init.d/preload
  67. %config(noreplace) %{_sysconfdir}/preload.conf
  68. %config(noreplace) %{_sysconfdir}/sysconfig/preload
  69. %config(noreplace) %{_sysconfdir}/logrotate.d/preload
  70. %attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/log/preload.log
  71. %attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/lib/preload/preload.state
  72. %attr(0755,root,root) %dir %{_localstatedir}/lib/preload
  73. %changelog
  74. * Fri Feb 12 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.4-4
  75. - rebuilt with gcc-4.4.3-3 on ppc
  76. * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.4-3
  77. - rebuilt with rpm-4.8.0-3 (on ppc)
  78. * Wed Feb 3 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.6.4-2
  79. - rebuilt with new toolchain
  80. * Tue May 19 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.4-1
  81. - new upstream release
  82. - dropped Patch2,3 (merged)
  83. * Thu Mar 12 2009 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-4
  84. - added patch3 (import from Mandriva 2009.1)
  85. * Mon Dec 22 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-3
  86. - changed patch0 (Prefered to Mandriva 2009.0 package in preload-0.6.3-prcsys.patch)
  87. * Mon Dec 8 2008 Toshiharu Kudoh <toshi.kd2@gmail.com> - 0.6.3-2
  88. - Removed preload-0.6-start-late.patch
  89. - Added patch0, patch1, patch2
  90. Patch0: start preload daemon later, changed default-start
  91. Patch1: changed mapprefix&exeprefix section
  92. added /opt, for some applicaton (ex. Adobe Reader, OpenOffice.org)
  93. Patch2: fix segfault src/cmdline.c
  94. * Wed Oct 15 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 0.6.3-1
  95. - new upstream release
  96. - drop all patches, they are all obsolete by upstream.
  97. - add Patch0 to start preload daemon lator. (use readahead daemon for bootup)
  98. * Wed Aug 27 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-1vl5
  99. - applied new versioning policy, spec in utf-8
  100. * Sat Mar 15 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4-0vl1
  101. - initial build for VineSeed based on Fedora package
  102. # * Sun Mar 9 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4-0vlmp0
  103. # - rebuild for Vine Linux 4.2
  104. #
  105. # * Wed Mar 5 2008 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4-0vlmp1
  106. # - initial build for VineSeed based on Fedora package
  107. * Wed Jan 16 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.4-5
  108. - Removed auto start from init
  109. - Added all the CVS patches prior to next release
  110. * Sun Jan 6 2008 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.4-4
  111. - Removed debian patch and added patches from upstream instead
  112. - Patches fix 64 bit, ionice, sysconfig and loading.
  113. * Fri Nov 9 2007 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.4-3
  114. - Used Debian Patch it consists of:
  115. - Close the file descriptor when writing state to a file in src/state.c,
  116. - Parse the dev field in /proc/%%d/maps as hexadecimal, not as unsigned
  117. integer. Thanks to Johan Kiviniemi for the patch.
  118. - Sort the readahead file list by device, block and inode and not file
  119. path to reduce seeking. Adapted by Johan from a patch for readahead
  120. by Scott James Remnant.
  121. - Added my patch to verbosity to 1 due to 30 second log writing
  122. * Thu Nov 8 2007 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.4-2
  123. - Fixed config lines
  124. - Fixed source lines
  125. - Added Requires: Logrotate
  126. - Default preload sequence is stopped
  127. - %{?_smp_mflags} does not work
  128. * Sat Oct 16 2007 Marc Wiriadisastra <marc@mwiriadi.id.au> - 0.4-1
  129. - Creation from start
  130. ### end of file