(by creating own layout with paths compatible with those passed to configure;
default apr layout overrided configure variables with /usr/local paths)
Changed files:
apr.spec -> 1.50
%patch1 -p1
%patch2 -p1
+cat >> config.layout <<'EOF'
+<Layout PLD>
+sbindir: %{_sbindir}
+libexecdir: %{_libdir}/apr
+installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
+localstatedir: /var/run
+runtimedir: /var/run
+libsuffix: -${APR_MAJOR_VERSION}
+</Layout PLD>
+EOF
+
%build
install /usr/share/automake/config.* build
./buildconf
%configure \
- --with-devrandom=/dev/urandom \
+ --enable-layout=PLD \
%ifarch %{ix86} %{i8664}
%ifnarch i386
--enable-nonportable-atomics \
%endif
%endif
- --enable-threads
+ --enable-threads \
+ --with-devrandom=/dev/urandom
%{__make}
%install