Search
j0ke.net Open Build Service
>
Projects
>
NASlinux
>
thecus-event
> thecus-event.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File thecus-event.spec of Package thecus-event (Revision 4)
Currently displaying revision
4
,
show latest
# # spec file for package thecus-event (Version 0.1) # # nodebuginfo Name: thecus-event BuildRequires: kernel-source kernel-syms module-init-tools Group: System/Kernel AutoReqProv: on Summary: Thecus Event driver Version: 0.1 Release: 1 Source: %name.tar.bz2 Source1: preamble Patch0: thecus-event-makefile.patch License: GPL v2 or later BuildRoot: %{_tmppath}/%{name}-%{version}-build ExcludeArch: s390 s390x ppc ppc64 ia64 %suse_kernel_module_package -n thecus-event -p %_sourcedir/preamble kdump um ec2 s390 iseries64 %description Event driver for thecus NAS systems. %package KMP Group: System/Kernel License: GPL v2 or later Summary: Thecus Event driver PreReq: coreutils grep %description KMP Event driver for thecus NAS systems %prep %setup -q -n %name %patch0 set -- * mkdir source mv "$@" source/ mkdir obj %build export EXTRA_CFLAGS='-DVERSION=\"%version\"' for flavor in %flavors_to_build; do rm -rf obj/$flavor cp -r source obj/$flavor make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \ M=$PWD/obj/$flavor done %install # Kernel module export INSTALL_MOD_PATH=$RPM_BUILD_ROOT export INSTALL_MOD_DIR=updates for flavor in %flavors_to_build; do make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \ M=$PWD/obj/$flavor done cd source %clean rm -rf $RPM_BUILD_ROOT