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

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

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


Revision 1.1 - (show annotations) (download)
Wed Jun 27 01:58:37 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: ppp-kmod-1_0_2-2_2_6_9_55_EL
Import on branch sme7 of package ppp-kmod-1.0.2-2.2.6.9_55.EL.src.rpm

1 Source10: kmodtool2
2 %define kmodtool bash %{SOURCE10}
3 %{!?kversion: %define kversion 2.6.9-55.EL}
4 # 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 ppp
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 Version: 1.0.2
28 Release: 2.%(echo %{kverrel} | tr - _)
29 Summary: %{kmod_name} kernel modules
30
31 Group: System Environment/Kernel
32 License: GPL
33 Source0: kernel_ppp_mppe-%{version}-src.tgz
34 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
35 ExclusiveArch: i586 i686 x86_64
36
37 %description
38 %{summary}.
39
40 %{expand:%(%{kmodtool} rpmtemplate %{kmod_name} %{kverrel} %{kvariants} 2>/dev/null)}
41
42 %prep
43 %setup -q -c
44 cd kernel_ppp_mppe-%{version}
45 ./pre_build.sh %{_usrsrc}/kernels/%{kverrel}-%{_target_cpu} . . %{kverrel}
46 patch -p1 < patches/linux-2.6.2-pad.patch
47 patch -p1 < patches/02-ppp_generic.c.patch
48 patch -p1 < patches/03-ppp_mppe_compress.c.patch
49 patch -p1 < patches/04-ppp_mppe_compress.c_license.patch
50 cd ..
51 for kvariant in %{kvariants} ; do
52 cp -a kernel_ppp_mppe-%{version} _kmod_build_$kvariant
53 done
54
55 %build
56 rm -rf $RPM_BUILD_ROOT
57 for kvariant in %{kvariants} ; do
58 ks=%{_usrsrc}/kernels/%{kverrel}${kvariant:+-$kvariant}-%{_target_cpu}
59 make -C $ks SUBDIRS=${PWD}/_kmod_build_$kvariant modules
60 make -C $ks SUBDIRS=${PWD}/_kmod_build_$kvariant modules_install \
61 INSTALL_MOD_PATH=$RPM_BUILD_ROOT modinst_dir='$(MODLIB)/updates/'%{kmod_name}
62 done
63 chmod +x $RPM_BUILD_ROOT/lib/modules/*/updates/%{kmod_name}/*.ko
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %changelog
69 * Mon May 7 2007 Shad L. Lords <slords@mail.com>
70 - Update to use kmodtool
71
72 * Fri Dec 01 2006 Shad L. Lords <slords@mail.com>
73 - Initial package.
74

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