#
# Conditional build:
-%bcond_without epoll # don't use epoll() syscall (requires Linux 2.6)
-%bcond_without sendfile64 # don't use sendfile64 (requires Linux 2.6 on ppc/sparc*)
-%bcond_without tcpnodelaycork # don't use TCP_NODELAY|TCP_CORK flags (requires Linux 2.6)
#
Summary: Apache Portable Runtime
Summary(pl): Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
Name: apr
Version: 1.2.7
-Release: 1
+Release: 2
Epoch: 1
License: Apache v2.0
Group: Libraries
# Source0-md5: e77887dbafc515c63feac84686bcb3bc
Patch0: %{name}-link.patch
Patch1: %{name}-metuxmpm.patch
-Patch2: %{name}-no-epoll.patch
-Patch3: %{name}-libtool.patch
+Patch2: %{name}-libtool.patch
URL: http://apr.apache.org/
BuildRequires: autoconf >= 2.13
BuildRequires: automake
BuildRequires: libuuid-devel
BuildRequires: sed >= 4.0
BuildRequires: python
-%if %{with epoll} || %{with sendfile64} || %{with tcpnodelaycork}
Conflicts: kernel24
Conflicts: kernel24-smp
-%endif
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%define _includedir /usr/include/apr
%setup -q
%patch0 -p1
%patch1 -p1
-%{!?with_epoll:%patch2 -p1}
-%patch3 -p1
+%patch2 -p1
%build
install /usr/share/automake/config.* build
./buildconf
%configure \
- %{!?with_tcpnodelaycork:apr_cv_tcp_nodelay_with_cork=no} \
- %{!?with_sendfile64:ac_cv_func_sendfile64=no} \
--with-devrandom=/dev/urandom \
%ifarch %{ix86} %{i8664}
%ifnarch i386