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

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

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


Revision 1.14 - (hide annotations) (download)
Thu Jul 24 19:03:40 2008 UTC (16 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: ppp-kmod-1_0_2-2_2_6_9_67_0_22_EL
Changes since 1.13: +2 -2 lines
Update for new kernel

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

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