cvsdist 9c651d
cvsdist 9c651d
%define aprver 0
cvsdist 9c651d
cvsdist 9c651d
Summary: Apache Portable Runtime library
cvsdist 9c651d
Name: apr
cvsdist 9c651d
Version: 0.9.4
cvsdist 9c651d
Release: 2
cvsdist 9c651d
License: Apache Software License
cvsdist 9c651d
Group: System Environment/Libraries
cvsdist 9c651d
URL: http://apr.apache.org/
cvsdist 9c651d
Source0: %{name}-%{version}.tar.gz
cvsdist 9c651d
Patch0: apr-0.9.3-deplibs.patch
cvsdist 9c651d
Patch1: apr-0.9.3-config.patch
cvsdist 9c651d
Patch2: apr-0.9.3-testrand.patch
cvsdist 9c651d
Patch3: apr-0.9.3-noipv6.patch
cvsdist 9c651d
Patch4: apr-0.9.4-noresolv.patch
cvsdist 9c651d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
cvsdist 9c651d
BuildPrereq: autoconf, libtool, doxygen
cvsdist 9c651d
Conflicts: subversion < 0.20.1-2
cvsdist 9c651d
cvsdist 9c651d
%description
cvsdist 9c651d
The mission of the Apache Portable Runtime (APR) is to provide a
cvsdist 9c651d
free library of C data structures and routines, forming a system
cvsdist 9c651d
portability layer to as many operating systems as possible,
cvsdist 9c651d
including Unices, MS Win32, BeOS and OS/2.
cvsdist 9c651d
cvsdist 9c651d
%package devel
cvsdist 9c651d
Group: Development/Libraries
cvsdist 9c651d
Summary: APR library development kit
cvsdist 9c651d
Requires: apr = %{version}, libtool
cvsdist 9c651d
Conflicts: subversion-devel < 0.20.1-2
cvsdist 9c651d
cvsdist 9c651d
%description devel
cvsdist 9c651d
This package provides the support files which can be used to 
cvsdist 9c651d
build applications using the APR library.  The mission of the
cvsdist 9c651d
Apache Portable Runtime (APR) is to provide a free library of 
cvsdist 9c651d
C data structures and routines.
cvsdist 9c651d
cvsdist 9c651d
%prep
cvsdist 9c651d
%setup -q
cvsdist 9c651d
%patch0 -p1 -b .deplibs
cvsdist 9c651d
%patch1 -p1 -b .config
cvsdist 9c651d
%patch2 -p1 -b .testrand
cvsdist 9c651d
%patch3 -p1 -b .noipv6
cvsdist 9c651d
%patch4 -p1 -b .noresolv
cvsdist 9c651d
cvsdist 9c651d
# regenerate configure script etc.
cvsdist 9c651d
./buildconf
cvsdist 9c651d
cvsdist 9c651d
%build
cvsdist 9c651d
# disable setpshared and sem_open, which only work on NPTL kernels
cvsdist 9c651d
# force detection of sys_siglist[] since 2.57's AC_DECL_SYS_SIGLIST
cvsdist 9c651d
# is useless
cvsdist 9c651d
cat > config.cache <
cvsdist 9c651d
ac_cv_func_pthread_mutexattr_setpshared=no
cvsdist 9c651d
ac_cv_func_sem_open=no
cvsdist 9c651d
ac_cv_have_decl_sys_siglist=yes
cvsdist 9c651d
EOF
cvsdist 9c651d
%configure -C \
cvsdist 9c651d
        --includedir=%{_includedir}/apr-%{aprver} \
cvsdist 9c651d
        --with-installbuilddir=%{_libdir}/apr/build \
cvsdist 9c651d
        --with-devrandom=/dev/urandom \
cvsdist 9c651d
        CC=gcc CXX=g++
cvsdist 9c651d
make %{?_smp_mflags} && make dox
cvsdist 9c651d
cvsdist 9c651d
%ifnarch x86_64
cvsdist 9c651d
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=97611
cvsdist 9c651d
%check
cvsdist 9c651d
# Run non-interactive tests
cvsdist 9c651d
pushd test
cvsdist 9c651d
make %{?_smp_mflags} testall
cvsdist 9c651d
TZ=PST8PDT ./testall -v || exit 1
cvsdist 9c651d
popd
cvsdist 9c651d
%endif
cvsdist 9c651d
cvsdist 9c651d
%install
cvsdist 9c651d
rm -rf $RPM_BUILD_ROOT
cvsdist 9c651d
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist 9c651d
cvsdist 9c651d
# These are referenced by apr_rules.mk
cvsdist 9c651d
for f in make_exports.awk make_var_export.awk; do
cvsdist 9c651d
    install -m 644 build/${f} $RPM_BUILD_ROOT%{_libdir}/apr/build/${f}
cvsdist 9c651d
done
cvsdist 9c651d
cvsdist 9c651d
install -m 755 build/mkdir.sh $RPM_BUILD_ROOT%{_libdir}/apr/build/mkdir.sh
cvsdist 9c651d
cvsdist 9c651d
# Sanitize apr_rules.mk
cvsdist 9c651d
sed -e "/^apr_build/d" \
cvsdist 9c651d
    -e 's|$(apr_builders)|%{_libdir}/apr/build|g' \
cvsdist 9c651d
    -e 's|$(apr_builddir)|%{_libdir}/apr/build|g' \
cvsdist 9c651d
    < build/apr_rules.mk > $RPM_BUILD_ROOT%{_libdir}/apr/build/apr_rules.mk
cvsdist 9c651d
cvsdist 9c651d
# Move docs to more convenient location
cvsdist 9c651d
mv docs/dox/html html
cvsdist 9c651d
cvsdist 9c651d
# Unpackaged files:
cvsdist 9c651d
rm -f $RPM_BUILD_ROOT%{_libdir}/apr.exp
cvsdist 9c651d
cvsdist 9c651d
%clean
cvsdist 9c651d
rm -rf $RPM_BUILD_ROOT
cvsdist 9c651d
cvsdist 9c651d
%post -p /sbin/ldconfig
cvsdist 9c651d
cvsdist 9c651d
%postun -p /sbin/ldconfig
cvsdist 9c651d
cvsdist 9c651d
%files
cvsdist 9c651d
%defattr(-,root,root,-)
cvsdist 9c651d
%doc CHANGES LICENSE 
cvsdist 9c651d
%{_libdir}/libapr-%{aprver}.so.*
cvsdist 9c651d
cvsdist 9c651d
%files devel
cvsdist 9c651d
%defattr(-,root,root,-)
cvsdist 9c651d
%doc docs/APRDesign.html docs/canonical_filenames.html
cvsdist 9c651d
%doc docs/incomplete_types docs/non_apr_programs
cvsdist 9c651d
%doc --parents html
cvsdist 9c651d
%{_bindir}/apr-config
cvsdist 9c651d
%{_libdir}/libapr-%{aprver}.*a
cvsdist 9c651d
%{_libdir}/libapr-%{aprver}.so
cvsdist 9c651d
%dir %{_libdir}/apr
cvsdist 9c651d
%dir %{_libdir}/apr/build
cvsdist 9c651d
%{_libdir}/apr/build/*
cvsdist 9c651d
%dir %{_includedir}/apr-%{aprver}
cvsdist 9c651d
%{_includedir}/apr-%{aprver}/*.h
cvsdist 9c651d
cvsdist 9c651d
%changelog
cvsdist 9c651d
* Fri Oct  3 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
cvsdist 9c651d
- disable tests on x86_64 (#97611)
cvsdist 9c651d
cvsdist 9c651d
* Fri Oct  3 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
cvsdist 9c651d
- update to 0.9.4, enable tests
cvsdist 9c651d
- ensure that libresolv is not used
cvsdist 9c651d
cvsdist 9c651d
* Sun Sep  7 2003 Joe Orton <jorton@redhat.com> 0.9.3-14
cvsdist 9c651d
- use /dev/urandom (#103049)
cvsdist 9c651d
cvsdist 9c651d
* Thu Jul 24 2003 Joe Orton <jorton@redhat.com> 0.9.3-13
cvsdist 9c651d
- add back CC=gcc, CXX=g++
cvsdist 9c651d
cvsdist 9c651d
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-12
cvsdist 9c651d
- rebuild
cvsdist 9c651d
cvsdist 9c651d
* Mon Jul 14 2003 Joe Orton <jorton@redhat.com> 0.9.3-11
cvsdist 9c651d
- work round useless autoconf 2.57 AC_DECL_SYS_SIGLIST
cvsdist 9c651d
cvsdist 9c651d
* Thu Jul 10 2003 Joe Orton <jorton@redhat.com> 0.9.3-10
cvsdist 9c651d
- support --cc and --cpp arguments in apr-config
cvsdist 9c651d
cvsdist 9c651d
* Thu Jul  3 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
cvsdist 9c651d
- force libtool to use CC=gcc, CXX=g++
cvsdist 9c651d
cvsdist 9c651d
* Thu Jul  3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
cvsdist 9c651d
- fix libtool location in apr_rules.mk
cvsdist 9c651d
cvsdist 9c651d
* Mon Jun 30 2003 Joe Orton <jorton@redhat.com> 0.9.3-7
cvsdist 9c651d
- use AI_ADDRCONFIG in getaddrinfo() support (#73350)
cvsdist 9c651d
- include a working libtool script rather than relying on
cvsdist 9c651d
 /usr/bin/libtool (#97695)
cvsdist 9c651d
cvsdist 9c651d
* Wed Jun 18 2003 Joe Orton <jorton@redhat.com> 0.9.3-6
cvsdist 9c651d
- don't use /usr/bin/libtool
cvsdist 9c651d
cvsdist 9c651d
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 9c651d
- rebuilt
cvsdist 9c651d
cvsdist 9c651d
* Tue May 20 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
cvsdist 9c651d
- add fix for psprintf memory corruption (CAN-2003-0245)
cvsdist 9c651d
- remove executable bit from apr_poll.h
cvsdist 9c651d
cvsdist 9c651d
* Thu May  1 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
cvsdist 9c651d
- link libapr against libpthread
cvsdist 9c651d
- make apr-devel conflict with old subversion-devel
cvsdist 9c651d
- fix License
cvsdist 9c651d
cvsdist 9c651d
* Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
cvsdist 9c651d
- run ldconfig in post/postun
cvsdist 9c651d
cvsdist 9c651d
* Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
cvsdist 9c651d
- patch test suite to not care if IPv6 is disabled
cvsdist 9c651d
cvsdist 9c651d
* Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
cvsdist 9c651d
- initial build