SPECS: ipp2p.spec - rel 2

arekm arekm at pld-linux.org
Sat Nov 12 12:46:33 CET 2005


Author: arekm                        Date: Sat Nov 12 11:46:33 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- rel 2

---- Files affected:
SPECS:
   ipp2p.spec (1.35 -> 1.36) 

---- Diffs:

================================================================
Index: SPECS/ipp2p.spec
diff -u SPECS/ipp2p.spec:1.35 SPECS/ipp2p.spec:1.36
--- SPECS/ipp2p.spec:1.35	Fri Oct 21 22:22:23 2005
+++ SPECS/ipp2p.spec	Sat Nov 12 12:46:28 2005
@@ -11,7 +11,7 @@
 Summary(pl):	IPP2P - rozszerzenie filtra pakietów identyfikujące ruch P2P
 Name:		ipp2p
 Version:	0.8.0
-%define	_rel	1
+%define	_rel	2
 Release:	%{_rel}
 Epoch:		1
 License:	GPL
@@ -20,13 +20,23 @@
 # Source0-md5:	8738d6ad5600ac5577bd599e6d279bef
 URL:		http://www.ipp2p.org/
 %{?with_userspace:BuildRequires:	iptables-devel}
-%if %{with kernel} && %{with dist_kernel}
+%if %{with kernel}
+%ifarch sparc
+BuildRequires:	crosssparc64-gcc
+%endif
+%if %{with dist_kernel}
 BuildRequires:	kernel-module-build >= 2.6.7
 %endif
+%endif
 BuildRequires:	rpmbuild(macros) >= 1.153
 BuildRequires:	sed >= 4.0
 Buildroot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
+%ifarch sparc
+%define         _target_base_arch       sparc64
+%define         _target_base_cpu             sparc64
+%endif
+
 %description
 IPP2P is a netfilter extension to identify P2P filesharing traffic.
 The main goal for developing IPP2P was giving the adminstrator a
@@ -189,7 +199,17 @@
     install -d include/{linux,config}
     ln -sf %{_kernelsrcdir}/config-$cfg .config
     ln -sf %{_kernelsrcdir}/include/linux/autoconf-$cfg.h include/linux/autoconf.h
-    ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%ifarch ppc
+        if [ -d "%{_kernelsrcdir}/include/asm-powerpc" ]; then
+                install -d include/asm
+                cp -a %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* include/asm
+                cp -a %{_kernelsrcdir}/include/asm-powerpc/* include/asm
+        else
+                ln -sf %{_kernelsrcdir}/include/asm-powerpc include/asm
+        fi
+%else
+        ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%endif
     ln -sf %{_kernelsrcdir}/Module.symvers-$cfg Module.symvers
     touch include/config/MARKER
     %{__make} -C %{_kernelsrcdir} clean \
@@ -197,6 +217,11 @@
 	M=$PWD O=$PWD \
 	%{?with_verbose:V=1}
     %{__make} -C %{_kernelsrcdir} modules \
+%if "%{_target_base_arch}" != "%{_arch}"
+	ARCH=%{_target_base_arch} \
+	CROSS_COMPILE=%{_target_base_cpu}-pld-linux- \
+%endif
+	HOSTCC="%{__cc}" \
 	M=$PWD O=$PWD \
 	%{?with_verbose:V=1}
     mv ipt_%{name}{,-$cfg}.ko
@@ -260,6 +285,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.36  2005/11/12 11:46:28  arekm
+- rel 2
+
 Revision 1.35  2005/10/21 20:22:23  dzeus
 - up to final 0.8.0, cleanup
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/ipp2p.spec?r1=1.35&r2=1.36&f=u




More information about the pld-cvs-commit mailing list