]> git.pld-linux.org Git - packages/iptables.git/commitdiff
- fixed patching - build with original paths, change them at install,
authorTomasz Pala <gotar@pld-linux.org>
Sat, 13 Mar 2004 23:02:44 +0000 (23:02 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added KERNEL_DIR,
- release 2.

Changed files:
    iptables.spec -> 1.107

iptables.spec

index 5fd0c2f1ad6602daba1e019cd41de2a94055222f..11b2276e9d32a480d1cd9d381c5345fb9f7fd777 100644 (file)
@@ -18,7 +18,7 @@ Version:      %{iptables_version}_%{netfilter_snap}
 %else
 Version:       %{iptables_version}
 %endif
-%define                _rel    1
+%define                _rel    2
 Release:       %{_rel}@%{_kernel_ver_str}
 License:       GPL
 Group:         Networking/Daemons
@@ -119,7 +119,6 @@ iptables(8).
 %prep
 %setup -q -a1 -n %{name}-%{iptables_version}-%{netfilter_snap}
 %patch0 -p1
-%patch1 -p1
 %{?with_patchedkernel:%patch3 -p1}
 %{?with_patchedkernel:patch -p1 < userspace/IMQ.patch.userspace}
 %{?with_patchedkernel:%patch4 -p1}
@@ -130,11 +129,13 @@ chmod 755 extensions/.*-test*
 %{__perl} -pi -e 's/\$\(HTML_HOWTOS\)//g; s/\$\(PSUS_HOWTOS\)//g' iptables-howtos/Makefile
 
 %build
-%{__make} depend 2> /dev/null || :
+%{__make} KERNEL_DIR=%{_kernelsrcdir} \
+       depend 2>/dev/null || :
 %{__make} CC="%{__cc}" \
        COPT_FLAGS="%{rpmcflags} -D%{!?debug:N}DEBUG" \
        LIBDIR="%{_libdir}" \
        LDLIBS="-ldl" \
+       KERNEL_DIR=%{_kernelsrcdir} \
        all experimental
 
 %{?with_doc:%{__make} -C iptables-howtos}
@@ -156,6 +157,7 @@ echo ".so iptables.8" > $RPM_BUILD_ROOT%{_mandir}/man8/ip6tables.8
 
 # Devel stuff
 cp -a include/* $RPM_BUILD_ROOT%{_includedir}/iptables
+patch -p2 -d $RPM_BUILD_ROOT%{_includedir}/iptables < %{PATCH1}
 install lib*/lib*.a $RPM_BUILD_ROOT%{_libdir}
 install libipq/*.3 $RPM_BUILD_ROOT%{_mandir}/man3
 
This page took 0.040351 seconds and 4 git commands to generate.