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 11)
Currently displaying revision
11
,
show latest
# norootforbuild Summary: Write back block cache for SSD devices Name: flashcache Version: 1.0.0 License: GPL Release: 74 Group: System/Kernel Source: %{name}-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: kernel-source kernel-syms module-init-tools %suse_kernel_module_package ec2 xenpae vmi um %description Kernel modules for write-back block cache driver %package utils Group: System/Base License: GPL v2 or later Summary: Utilities %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 %post /sbin/depmod -a %postun /sbin/depmod -a %files utils %defattr(-,root,root,-) /sbin/flashcache_create /sbin/flashcache_destroy /sbin/flashcache_load %changelog