]> git.pld-linux.org Git - packages/apr.git/blobdiff - apr.spec
- disable sendfile64 on 32-bit ppc; release 2
[packages/apr.git] / apr.spec
index e74c2a223abe7337f975872a705d30e09b280818..2eb8ef72e3653b806a7f468818e26737fe651564 100644 (file)
--- a/apr.spec
+++ b/apr.spec
@@ -1,13 +1,18 @@
 #
 # Conditional build (Linux 2.4 compat, switch after Ac):
 %bcond_with    epoll           # use epoll() syscall (requires Linux 2.6)
+%bcond_with    sendfile64      # use sendfile64 on even if it requires Linux 2.6
 %bcond_with    tcpnodelaycork  # use TCP_NODELAY|TCP_CORK flags (requires Linux 2.6)
 #
+# Linux 2.4.32 supports sendfile64 only on i386 and mips (only 32-bit archs matter)
+%ifnarch ppc sparc sparc64
+%define                with_sendfile64         1
+%endif
 Summary:       Apache Portable Runtime
 Summary(pl):   Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
 Name:          apr
 Version:       1.2.2
-Release:       1
+Release:       2
 Epoch:         1
 License:       Apache v2.0
 Group:         Libraries
@@ -85,12 +90,9 @@ Statyczna biblioteka apr.
 %build
 install /usr/share/automake/config.* build
 ./buildconf
-# 2.4/2.6 kernels on sparc32 do not support sendfile64
 %configure \
        %{!?with_tcpnodelaycork:apr_cv_tcp_nodelay_with_cork=no} \
-%ifarch sparc sparcv9
-       ac_cv_func_sendfile64=no \
-%endif
+       %{!?with_sendfile64:ac_cv_func_sendfile64=no} \
        --with-devrandom=/dev/urandom \
 %ifarch %{ix86} %{i8664}
 %ifnarch i386
This page took 0.265928 seconds and 4 git commands to generate.