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

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

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


Revision 1.2 - (show annotations) (download)
Thu Feb 7 05:05:46 2019 UTC (5 years, 8 months ago) by jpp
Branch: MAIN
Changes since 1.1: +29 -4 lines
* Wed Feb 06 2019 Jean-Philipe Pialasse <tests@pialasse.com> 1.47.1-5.sme
- first import to SME buildsys [SME: 10734]
- add buildrequires iptables-devel

1 %define name xtables-addons-kmod
2 %define name_src xtables-addons
3 %define version 1.47.1
4 %define release 5
5 Summary: %{name} is a set of additional extensions for the Xtables packet filter (modules kmod ONLY).
6 Name: %{name}
7 Version: %{version}
8 Release: %{release}%{?dist}
9 Distribution: SME Server
10 License: GNU GPL version 2
11 Group: SME Server/addon
12 Source: %{name_src}-%{version}.tar.xz
13 #Source: xtables-addons-%{version}.tar.xz
14 URL: http://xtables-addons.sourceforge.net
15 Patch0: xtables-addons-1.47.1-v6.patch
16 Packager: Michel Begue <mab974@gmail.com>
17 BuildRoot: %RPM_BUILD_ROOT
18 #Requires: smeserver-release >= 9.0
19 Requires: xtables-addons >= 1.47.1-4
20 #Requires: kernel = 2.6.32-696
21 Requires: kernel = 2.6.32-696.28.1.el6
22 BuildRequires: e-smith-devtools
23 BuildRequires: iptables-devel
24 BuildRequires: %{_bindir}/kmodtool
25 AutoReqProv: no
26
27 %description
28 %{name} is a set of additional extensions for the Xtables packet filter that is present in the Linux kernel (modules kmod ONLY).
29 It is just a "kernel update" release.
30
31 %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>
37 - compiled for kernel version 2.6.32-696.23.1.el6.x86_64
38
39 * Sat Oct 07 2017 Mab974 <mab974@gmail.com>
40 - compiled for kernel version 2.6.32-696.13.2.el6.x86_64
41
42 * Thu Sep 28 2017 Mab974 <mab974@gmail.com>
43 - compiled for kernel version 2.6.32-696.10.3.el6.x86_64
44 - extensions (kmod) files ONLY.
45 - patch disable WITH_IPV6 in extra/*c (-v6)
46
47 %prep
48
49 #%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
61 for kernel_version in %{?kernel_versions} ; do
62 cp -a xtables-addons-%{version} _kmod_build_${kernel_version%%___*}
63 done
64
65
66 %build
67 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
77 %{__rm} -rf %{buildroot}
78 %{__make} install DESTDIR="%{buildroot}"
79 %{__rm} -rf %{buildroot}/lib64/
80 %{__rm} -rf %{buildroot}/usr/
81
82 %clean
83 %{__rm} -rf %{buildroot}
84
85 %pre
86
87 %post
88
89 %preun
90
91 %postun
92
93 %files
94 %defattr(-, root, root, 0755)
95 /lib/modules/*

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