/[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.22 - (hide annotations) (download)
Sat May 2 10:09:04 2009 UTC (15 years, 7 months ago) by bytegw
Branch: MAIN
CVS Tags: ppp-kmod-1_0_2-3_2_6_9_78_0_22_EL
Changes since 1.21: +2 -2 lines
kmods update

1 bytegw 1.22 # $Id: ppp-kmod.spec,v 1.21 2009/04/20 20:12:32 snetram Exp $
2 slords 1.10
3 slords 1.1 Source10: kmodtool2
4     %define kmodtool bash %{SOURCE10}
5 bytegw 1.22 %{!?kversion: %define kversion 2.6.9-78.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 snetram 1.20 Release: 3.%(echo %{kverrel} | tr - _)
31 slords 1.1 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 snetram 1.20 * Thu Feb 5 2009 Shad L. Lords <slords@mail.com>
72     - Fix post scripts [SME: 4864]
73    
74 slords 1.1 * Mon May 7 2007 Shad L. Lords <slords@mail.com>
75     - Update to use kmodtool
76    
77     * Fri Dec 01 2006 Shad L. Lords <slords@mail.com>
78     - Initial package.
79    

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