Author: blekot Date: Sat May 19 09:51:30 2012 GMT Module: packages Tag: HEAD ---- Log message: - up to 1.5.6 - enabled init.d scripts - new way of downloading sources (from git) - ./autogen.sh is needed before ./configure - rel 0.3 (init.d scripts should be PLDized, readahead collector as service? )
---- Files affected: packages/readahead: readahead.spec (1.12 -> 1.13) ---- Diffs: ================================================================ Index: packages/readahead/readahead.spec diff -u packages/readahead/readahead.spec:1.12 packages/readahead/readahead.spec:1.13 --- packages/readahead/readahead.spec:1.12 Sun Jul 12 18:57:39 2009 +++ packages/readahead/readahead.spec Sat May 19 11:51:24 2012 @@ -1,18 +1,26 @@ # $Revision$, $Date$ # TODO # - maybe some scripts (still) usable here: http://bugs.gentoo.org/show_bug.cgi?id=64724 +# - PLD-ize init.d scripts + Summary: Read a preset list of files into memory -Summary(pl.UTF-8): Odczyt predefiniowanej listy plików do pamięci +Summary(pl.UTF-8): Odczyt predefiniowanej listy plików do pamięci Name: readahead -Version: 1.4.4 -Release: 0.1 +Version: 1.5.6 +Release: 0.3 Epoch: 1 License: GPL v2+ Group: Base -Source0: http://people.redhat.com/kzak/readahead/v1.4/%{name}-%{version}.tar.bz2 -# Source0-md5: 5490552c5a4c382fe56fc5ffea1dee4f +# Source available only via git. Commands to get archive with latest released +# tag looks like: +# git clone git://git.fedorahosted.org/readahead +# cd readahead +# git archive --prefix=readahead-1.5.4/ v1.5.4 |bzip2 -9 >readahead-1.5.4.tar.bz2 +Source0: %{name}-%{version}.tar.bz2 +# Source0-md5: 2c838de91b3501a378e72f3b7cf7bd11 Source1: default.early Source2: default.later +Patch0: %{name}-init.d.patch URL: https://fedorahosted.org/readahead/ BuildRequires: audit-libs-devel >= 1.5 BuildRequires: e2fsprogs-devel @@ -33,17 +41,15 @@ %prep %setup -q -cp -a %{SOURCE1} lists -cp -a %{SOURCE2} lists +%patch0 -p1 + +%{__sed} -i "s,%{_prefix}%{_sbindir}/readahead,%{_sbindir}/readahead,g" scripts/readahead_* %build +./autogen.sh %configure %{__make} -%{__make} rpm-lists-rebuild \ - RPM_LIB="%{_lib}" \ - RPM_ARCH="%{_arch}" \ - FILES="default.early default.later" %install rm -rf $RPM_BUILD_ROOT @@ -51,6 +57,10 @@ %{__make} install \ DESTDIR=$RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT/var/lib/readahead +install %{SOURCE1} $RPM_BUILD_ROOT/var/lib/readahead/ +install %{SOURCE2} $RPM_BUILD_ROOT/var/lib/readahead/ + %find_lang %{name} %clean @@ -73,16 +83,20 @@ %files -f %{name}.lang %defattr(644,root,root,755) %doc README lists/README.lists -%dir %{_sysconfdir}/readahead.d +%dir /etc/sysconfig/readahead %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/readahead.conf -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/readahead.d/default.early -%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/readahead.d/default.later - +%config(noreplace) %verify(not md5 mtime size) /etc/init/readahead.conf +%config(noreplace) %verify(not md5 mtime size) /etc/init/readahead-collector.conf +%config(noreplace) %verify(not md5 mtime size) /etc/init/readahead-disable-services.conf %attr(755,root,root) /etc/cron.daily/readahead.cron +%attr(755,root,root) /etc/cron.monthly/readahead-monthly.cron %attr(754,root,root) /etc/rc.d/init.d/readahead_later %attr(754,root,root) /etc/rc.d/init.d/readahead_early -%attr(755,root,root) /usr/sbin/readahead -%attr(755,root,root) /sbin/readahead-collector +%attr(755,root,root) %{_sbindir}/readahead +%attr(755,root,root) %{_sbindir}/readahead-collector +%dir /var/lib/readahead +/var/lib/readahead/default.* + %define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) %changelog @@ -90,6 +104,13 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.13 2012/05/19 09:51:24 blekot +- up to 1.5.6 +- enabled init.d scripts +- new way of downloading sources (from git) +- ./autogen.sh is needed before ./configure +- rel 0.3 (init.d scripts should be PLDized, readahead collector as service? ) + Revision 1.12 2009/07/12 16:57:39 shadzik - BR: libblkid-devel ================================================================ ---- CVS-web: http://cvs.pld-linux.org/packages/readahead/readahead.spec?r1=1.12&r2=1.13 _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
