/[smecontribs]/rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec
ViewVC logotype

Diff of /rpms/xtables-addons-kmod/contribs9/xtables-addons-kmod.spec

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

Revision 1.1 by jpp, Thu Feb 7 03:58:47 2019 UTC Revision 1.2 by jpp, Thu Feb 7 05:05:46 2019 UTC
# Line 1  Line 1 
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}
# Line 20  Requires: xtables-addons >= 1.47.1-4 Line 20  Requires: xtables-addons >= 1.47.1-4
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
# Line 27  AutoReqProv: no Line 29  AutoReqProv: no
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    
# Line 40  It is just a "kernel update" release. Line 46  It is just a "kernel update" release.
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}


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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