ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/free/rpms/xtables-addons-kmod/F-14/xtables-addons-kmod.spec
Revision: 1.28
Committed: Thu Nov 24 08:43:35 2011 UTC (17 months, 4 weeks ago) by kwizart
Branch: MAIN
CVS Tags: xtables-addons-kmod-1_30-1_fc14_18, HEAD
Changes since 1.27: +4 -1 lines
Log Message:
* Thu Nov 24 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.18
- rebuild for updated kernel

Line File contents
1 # buildforkernels macro hint: when you build a new version or a new release
2 # that contains bugfixes or other improvements then you must disable the
3 # "buildforkernels newest" macro for just that build; immediately after
4 # queuing that build enable the macro again for subsequent builds; that way
5 # a new akmod package will only get build when a new one is actually needed
6 %define buildforkernels newest
7 #define buildforkernels current
8 #define buildforkernels akmods
9
10 Name: xtables-addons-kmod
11 Summary: Kernel module (kmod) for xtables-addons
12 Version: 1.30
13 Release: 1%{?dist}.18
14 License: GPLv2
15 Group: System Environment/Kernel
16 URL: http://xtables-addons.sourceforge.net
17 Source0: http://downloads.sourceforge.net/xtables-addons/xtables-addons-%{version}.tar.xz
18 #Source11: xtables-addons-kmodtool-excludekernel-filterfile
19 # get the needed BuildRequires (in parts depending on what we build for)
20 BuildRequires: %{_bindir}/kmodtool
21 %{!?kernels:BuildRequires: buildsys-build-rpmfusion-kerneldevpkgs-%{?buildforkernels:%{buildforkernels}}%{!?buildforkernels:current}-%{_target_cpu} }
22
23 # kmodtool does its magic here
24 %{expand:%(kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null) }
25
26 %description
27 Xtables-addons provides extra modules for iptables not present in the kernel,
28 and is the successor of patch-o-matic. Extensions includes new targets like
29 TEE, TARPIT, CHAOS, or modules like geoip, ipset, and account.
30
31 This package provides the xtables-addons kernel modules. You must also install
32 the xtables-addons package in order to make use of these modules.
33
34 %prep
35 # error out if there was something wrong with kmodtool
36 %{?kmodtool_check}
37 # print kmodtool output for debugging purposes:
38 kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null
39
40 %setup -q -c -T -a 0
41 for kernel_version in %{?kernel_versions} ; do
42 cp -a xtables-addons-%{version} _kmod_build_${kernel_version%%___*}
43 done
44
45
46 %build
47 for kernel_version in %{?kernel_versions} ; do
48 if ! grep -q 'XT_TARGET_TEE=m' %{_usrsrc}/kernels/${kernel_version%%___*}/.config; then
49 sed -i 's/build_TEE=/build_TEE=m/' _kmod_build_${kernel_version%%___*}/mconfig
50 fi
51 if ! grep -q 'XT_TARGET_CHECKSUM=m' %{_usrsrc}/kernels/${kernel_version%%___*}/.config; then
52 sed -i 's/build_CHECKSUM=/build_CHECKSUM=m/' _kmod_build_${kernel_version%%___*}/mconfig
53 fi
54 export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}
55 make %{?_smp_mflags} V=1 -C "${kernel_version##*___}" M=${PWD}/_kmod_build_${kernel_version%%___*}/extensions modules
56 done
57
58
59 %install
60 for kernel_version in %{?kernel_versions} ; do
61 export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*}
62 make %{?_smp_mflags} V=1 -C "${kernel_version##*___}" M=${PWD}/_kmod_build_${kernel_version%%___*}/extensions _emodinst_ INSTALL_MOD_PATH=%{buildroot} ext-mod-dir=%{kmodinstdir_postfix}
63 done
64 chmod u+x %{buildroot}/lib/modules/*/extra/*/*
65 %{?akmod_install}
66
67 %clean
68 rm -rf %{buildroot}
69
70 %changelog
71 * Thu Nov 24 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.18
72 - rebuild for updated kernel
73
74 * Wed Nov 23 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.17
75 - rebuild for updated kernel
76
77 * Wed Nov 02 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.16
78 - rebuild for updated kernel
79
80 * Sat Oct 22 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.15
81 - rebuild for updated kernel
82
83 * Sun Sep 18 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.14
84 - rebuild for updated kernel
85
86 * Sat Sep 03 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.13
87 - rebuild for updated kernel
88
89 * Fri Aug 19 2011 Nicolas Chauvet <kwizart@gmail.com> - 1.30-1.12
90 - rebuild for updated kernel
91
92 * Sat May 28 2011 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.11
93 - rebuild for updated kernel
94
95 * Thu May 05 2011 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.10
96 - rebuild for updated kernel
97
98 * Sun Apr 24 2011 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.9
99 - rebuild for updated kernel
100
101 * Mon Apr 04 2011 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.8
102 - rebuild for updated kernel
103
104 * Sat Feb 12 2011 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.7
105 - rebuild for updated kernel
106
107 * Fri Dec 24 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.6
108 - rebuild for updated kernel
109
110 * Wed Dec 22 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.5
111 - rebuild for updated kernel
112
113 * Mon Dec 20 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.4
114 - rebuild for updated kernel
115
116 * Fri Dec 17 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.3
117 - rebuild for updated kernel
118
119 * Sun Dec 05 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.2
120 - rebuild for F-14 kernel
121
122 * Mon Nov 01 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.30-1.1
123 - rebuild for F-14 kernel
124
125 * Wed Oct 27 2010 Chen Lei <supercyper@163.com> - 1.30-1
126 - update to 1.30
127
128 * Sun Jul 25 2010 Chen Lei <supercyper@163.com> - 1.28-1
129 - update to 1.28
130
131 * Mon Jun 28 2010 Chen Lei <supercyper@163.com> - 1.27-2
132 - rebuild for kernel 2.6.35
133
134 * Mon May 31 2010 Chen Lei <supercyper@163.com> - 1.27-1
135 - update to 1.27
136
137 * Thu May 20 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.26-1.4
138 - rebuild for new kernel
139
140 * Mon May 17 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.26-1.3
141 - rebuild for new kernel
142
143 * Fri May 07 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.26-1.2
144 - rebuild for new kernel
145
146 * Tue May 04 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.26-1.1
147 - rebuild for new kernel
148
149 * Sun May 02 2010 Chen Lei <supercyper@163.com> - 1.26-1
150 - update to 1.26
151
152 * Thu Apr 29 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.25-1.1
153 - rebuild for new kernel
154
155 * Mon Apr 26 2010 Chen Lei <supercyper@163.com> - 1.25-1
156 - update to 1.25
157
158 * Sun Apr 25 2010 Thorsten Leemhuis <fedora [AT] leemhuis [DOT] info> - 1.24-1.1
159 - rebuild for new kernel
160
161 * Thu Mar 18 2010 Chen Lei <supercyper@163.com> - 1.24-1
162 - initial rpm build