preload-vl.spec 6.0 KB

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