/[smeserver]/rpms/arcmsr-kmod/sme7/arcmsr-kmod.spec
ViewVC logotype

Annotation of /rpms/arcmsr-kmod/sme7/arcmsr-kmod.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.6 - (hide annotations) (download)
Sat Nov 3 15:45:42 2007 UTC (17 years ago) by bytegw
Branch: MAIN
CVS Tags: arcmsr-kmod-1_20_0X_14-1_2_6_9_55_0_12_EL
Changes since 1.5: +1 -1 lines
kmods update

1 slords 1.1 Source10: kmodtool2
2     %define kmodtool bash %{SOURCE10}
3 bytegw 1.6 %{!?kversion: %define kversion 2.6.9-55.0.12.EL}
4 slords 1.1 # hint: this can he overridden with "--define kversion foo" on the rpmbuild command line, e.g.
5     # --define "kversion 2.6.16-1.2096_FC5"
6    
7     %define kmod_name arcmsr
8     %define kverrel %(%{kmodtool} verrel %{?kversion} 2>/dev/null)
9    
10     %define upvar ""
11     %ifarch i586 i686 x86_64
12     %define smpvar smp
13     %endif
14     %ifarch i686
15     %define hugememvar hugemem
16     %define xenvar xenU
17     %endif
18     %ifarch x86_64
19     %define largesmpvar largesmp
20     %define xenvar xenU
21     %endif
22     %{!?kvariants: %define kvariants %{?upvar} %{?smpvar} %{?hugememvar} %{?largesmpvar} %{?xenvar}}
23     # hint: this can he overridden with "--define kvariant foo bar" on the rpmbuild command line, e.g.
24     # --define 'kvariant "" smp'
25    
26     Name: %{kmod_name}-kmod
27 slords 1.3 Version: 1.20.0X.14
28 slords 1.1 Release: 1.%(echo %{kverrel} | tr - _)
29     Summary: %{kmod_name} kernel modules
30    
31     Group: System Environment/Kernel
32     License: GPL
33     URL: http://www.areca.com.tw/
34 slords 1.3 Source0: arcmsr.1.20.0X.14.zip
35 slords 1.1 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
36     ExclusiveArch: i586 i686 x86_64
37    
38     %description
39     %{summary}.
40    
41     %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
42    
43     %prep
44     %setup -q -c
45     for kvariant in %{kvariants} ; do
46     cp -a %{kmod_name}.%{version}/kernel-version-2.6.x/arcmsr \
47     _kmod_build_${kvariant}
48     done
49    
50     %build
51     rm -rf $RPM_BUILD_ROOT
52     for kvariant in %{kvariants} ; do
53     ks=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu}
54     make -C $ks SUBDIRS=${PWD}/_kmod_build_$kvariant modules \
55     CONFIG_SCSI_ARCMSR=m
56     make -C $ks SUBDIRS=${PWD}/_kmod_build_$kvariant modules_install \
57     INSTALL_MOD_PATH=$RPM_BUILD_ROOT modinst_dir='$(MODLIB)/updates/'%{kmod_name}
58     done
59     chmod +x $RPM_BUILD_ROOT/lib/modules/*/updates/%{kmod_name}/*.ko
60    
61     %clean
62     rm -rf $RPM_BUILD_ROOT
63    
64     %changelog
65     * Mon May 7 2007 Shad L. Lords <slords@mail.com>
66     - Update to use kmodtool
67    
68     * Fri Dec 01 2006 Shad L. Lords <slords@mail.com>
69     - Initial package.

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed