Search
j0ke.net Open Build Service
>
Projects
>
hardware
:
flashcache
>
flashcache
> flashcache.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File flashcache.spec of Package flashcache (Revision 15)
Currently displaying revision
15
,
show latest
# norootforbuild Summary: Write back block cache for SSD devices Name: flashcache Version: 1.0.0 License: GPL Release: 74 Group: System/Kernel Source0: %{name}-%{version}.tar.bz2 Source1: boot.flashcache BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: kernel-source kernel-syms module-init-tools %suse_kernel_module_package ec2 xenpae vmi um %define _initdir /etc/init.d %description Kernel modules for write-back block cache driver %package utils Group: System/Base License: GPL v2 or later Summary: Utilities Requires: device-mapper mdadm udev %description utils Utilities for setting up a write-back block cache %package -n flashcache-KMP Group: System/Kernel License: GPL v2 or later Summary: Kernel modules Requires: kernel-default kernel-desktop %description -n flashcache-KMP Kernel modules for write-back block cache driver %prep %setup set -- * mkdir source mv "$@" source/ mkdir obj %build export KBUILD_VERBOSE=1 export CFLAGS="$RPM_OPT_FLAGS" for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor pushd obj/$flavor/src export KERNEL_TREE=/usr/src/linux-obj/%_target_cpu/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules M=$PWD popd done pushd source/src/utils make %{?_smp_mflags} popd %install rm -rf $RPM_BUILD_ROOT export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do pushd obj/$flavor/src export KERNEL_TREE=/usr/src/linux-obj/%_target_cpu/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install M=$PWD popd done pushd source/src/utils make install DESTDIR=$RPM_BUILD_ROOT INSTALL="%{__install} -p" popd install -D -m0755 %{S:1} %{buildroot}%{_initdir}/boot.flashcache %post /sbin/depmod -a %postun /sbin/depmod -a %post utils if [ $1 == 1 ] ; then /sbin/chkconfig boot.flashcache B fi %preun utils if [ $1 == 0 ] ; then /sbin/chkconfig boot.flashcache off fi %files utils %defattr(-,root,root,-) /sbin/flashcache_create /sbin/flashcache_destroy /sbin/flashcache_load %{_initdir}/boot.flashcache %changelog