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