1 |
%define name xtables-addons-kmod |
%define name xtables-addons-kmod |
2 |
%define name_src xtables-addons |
%define name_src xtables-addons |
3 |
%define version 1.47.1 |
%define version 1.47.1 |
4 |
%define release 4 |
%define release 5 |
5 |
Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). |
Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY). |
6 |
Name: %{name} |
Name: %{name} |
7 |
Version: %{version} |
Version: %{version} |
20 |
#Requires: kernel = 2.6.32-696 |
#Requires: kernel = 2.6.32-696 |
21 |
Requires: kernel = 2.6.32-696.28.1.el6 |
Requires: kernel = 2.6.32-696.28.1.el6 |
22 |
BuildRequires: e-smith-devtools |
BuildRequires: e-smith-devtools |
23 |
|
BuildRequires: iptables-devel |
24 |
|
BuildRequires: %{_bindir}/kmodtool |
25 |
AutoReqProv: no |
AutoReqProv: no |
26 |
|
|
27 |
%description |
%description |
29 |
It is just a "kernel update" release. |
It is just a "kernel update" release. |
30 |
|
|
31 |
%changelog |
%changelog |
32 |
|
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-5.sme |
33 |
|
- first import to SME buildsys [SME: 10734] |
34 |
|
- add buildrequires iptables-devel |
35 |
|
|
36 |
* Thu Mar 15 2018 Mab974 <mab974@gmail.com> |
* Thu Mar 15 2018 Mab974 <mab974@gmail.com> |
37 |
- compiled for kernel version 2.6.32-696.23.1.el6.x86_64 |
- compiled for kernel version 2.6.32-696.23.1.el6.x86_64 |
38 |
|
|
46 |
|
|
47 |
%prep |
%prep |
48 |
|
|
49 |
%setup -n %{name_src}-%{version} |
#%setup -n %{name_src}-%{version} |
50 |
|
#%patch0 -p1 |
51 |
|
|
52 |
|
#./configure --prefix=/usr --with-kbuild= |
53 |
|
|
54 |
|
# error out if there was something wrong with kmodtool |
55 |
|
%{?kmodtool_check} |
56 |
|
# print kmodtool output for debugging purposes: |
57 |
|
kmodtool --target %{_target_cpu} --repo rpmfusion --kmodname %{name} %{?buildforkernels:--%{buildforkernels}} %{?kernels:--for-kernels "%{?kernels}"} 2>/dev/null |
58 |
|
|
59 |
|
%setup -q -c -T -a 0 |
60 |
%patch0 -p1 |
%patch0 -p1 |
61 |
|
for kernel_version in %{?kernel_versions} ; do |
62 |
|
cp -a xtables-addons-%{version} _kmod_build_${kernel_version%%___*} |
63 |
|
done |
64 |
|
|
|
./configure --prefix=/usr |
|
65 |
|
|
66 |
%build |
%build |
67 |
%{__make} |
for kernel_version in %{?kernel_versions} ; do |
68 |
|
export XA_ABSTOPSRCDIR=${PWD}/_kmod_build_${kernel_version%%___*} |
69 |
|
make %{?_smp_mflags} V=1 -C "${kernel_version##*___}" M=${PWD}/_kmod_build_${kernel_version%%___*}/extensions modules |
70 |
|
done |
71 |
|
|
72 |
|
|
73 |
|
#%build |
74 |
|
#%{__make} |
75 |
|
|
76 |
%install |
%install |
77 |
%{__rm} -rf %{buildroot} |
%{__rm} -rf %{buildroot} |