# spec file for package preload (Version 0.2)## Copyright (c) 2008 Stas Myasnikov# Copyright (c) 2008 Kirill A. Shutemov## This file and all modifications and additions to the pristine# package are under the same license as the package itself.Name:preload
Version:0.2
Release:alt2
Summary:PreloadsFilesintoSystemCacheforFasterBooting
License:%gpl2plus
#License: GPLv2+Group:System/Configuration/BootandInit
Source:%name-%version-%release.tar
# TODO: Preload lists are arch dependent. There is only lists for %ix86.ExclusiveArch:%ix86
#Packager: Kirill A. Shutemov <kas@altlinux.org>Packager:GlebStiblo<ulfr@altlinux.org>
BuildRequires:rpm-build-licenses
BuildRequires:crontabsserviceperl-base%descriptionPreloadlistsfilestoloadintothesystemcache.Thisshortenssystem
boottimeifusedcorrectly.
%prep%setup-q-n%name-%version-%release
%buildgcc$RPM_OPT_FLAGS-DUSE_FADVISE-opreloadpreload.c
gcc$RPM_OPT_FLAGS-oprint-bmapprint-bmap.c
gcc$RPM_OPT_FLAGS-oprecatedprecat.c
%installmkdir-p%buildroot{%_bindir,%_sbindir,%_initdir,%_sysconfdir/cron.daily,%_cachedir/%name}
install-pm755preloadprecated%buildroot%_bindirinstall-pm755print-bmapupdate_preloadprepare_preloadupdate_precat%buildroot%_sbindirinstall-pm755init.preload%buildroot/%_initdir/%name
cp-apreload.d%buildroot%_sysconfdirinstall-pm755cron%buildroot/%_sysconfdir/cron.daily/update-preload
cpkde.precat2%buildroot/%_cachedir/%name/
%postecho"Generating caches, please wait..."update_preload>/dev/null2>&1
update_precat>/dev/null2>&1
%post_service %name
%preun%preun_service %name
rm-rf%_cachedir/%name/*.preload
%files%_bindir/*
%_sbindir/*
%_sysconfdir/cron.daily/update-preload
%_sysconfdir/preload.d
%_initdir/%name
%_cachedir/%name
%changelog* Thu Jan 31 2008 Gleb Stiblo <ulfr@altlinux.org> 0.2-alt2-rebuildforSisyphus
* Thu Jan 24 2008 Kirill A. Shutemov <kas@altlinux.ru> 0.2-alt1-FirstbuildforALTLinux
* Fri Jan 19 2008 - Stas Myasnikov <myst@velesys.com>-initialpackage