cvsdist 9c651d
cvsdist 9c651d
%define aprver 0
cvsdist 9c651d
cvsdist 9c651d
Summary: Apache Portable Runtime library
cvsdist 9c651d
Name: apr
jorton 124b9d
Version: 0.9.5
jorton 25aeb2
Release: 4
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
Patch2: apr-0.9.3-testrand.patch
cvsdist 9c651d
Patch3: apr-0.9.3-noipv6.patch
cvsdist d4c8bf
Patch4: apr-0.9.4-trimlibs.patch
cvsdist d4c8bf
Patch6: apr-0.9.4-tests.patch
cvsdist ae4486
Patch10: apr-0.9.4-cflags.patch
cvsdist b7fa87
Patch16: apr-0.9.4-mutextype.patch
cvsdist d87a57
Patch18: apr-0.9.4-stacksize.patch
cvsdist 69e192
Patch20: apr-0.9.4-nested.patch
cvsdist 69e192
Patch21: apr-0.9.4-lp64psem.patch
jorton 25aeb2
Patch22: apr-0.9.5-sendfiles390.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 b75edb
Requires: apr = %{version}-%{release}
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
%patch2 -p1 -b .testrand
cvsdist 9c651d
%patch3 -p1 -b .noipv6
cvsdist d4c8bf
%patch4 -p1 -b .trimlibs
cvsdist d4c8bf
%patch6 -p1 -b .tests
cvsdist ae4486
%patch10 -p1 -b .cflags
cvsdist d87a57
%patch18 -p1 -b .stacksize
cvsdist 69e192
%patch20 -p1 -b .nested
cvsdist 69e192
%patch21 -p1 -b .lp64psem
jorton 25aeb2
%patch22 -p1 -b .sendfiles390
cvsdist 9c651d
cvsdist 2da98d
%build
cvsdist 9c651d
# regenerate configure script etc.
cvsdist 9c651d
./buildconf
cvsdist b7fa87
%configure \
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 69e192
make %{?_smp_mflags} CFLAGS=-Wall && make dox
cvsdist 9c651d
cvsdist 9c651d
%check
cvsdist 9c651d
# Run non-interactive tests
cvsdist d4c8bf
%ifarch x86_64
cvsdist d4c8bf
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=97611
cvsdist d4c8bf
excludes=testlock
cvsdist d4c8bf
%endif
cvsdist 9c651d
pushd test
cvsdist ae4486
make %{?_smp_mflags} testall CFLAGS=-fno-strict-aliasing
cvsdist d4c8bf
TZ=PST8PDT ./testall -v ${excludes+-x $excludes} || exit 1
cvsdist 9c651d
popd
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
jorton 3f5a08
# fix apr-config to point at the install "srcdir" (fixed properly in 1.0.0)
jorton cd95f3
sed -i -e "s,^\(APR_.*_DIR\)=.*$,\1=%{_libdir}/apr," \
jorton 3f5a08
    $RPM_BUILD_ROOT%{_bindir}/apr-config
jorton 3f5a08
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 0ff62e
%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
jorton 25aeb2
* Wed Feb  2 2005 Joe Orton <jorton@redhat.com> 0.9.5-4
jorton 25aeb2
- don't disable sendfile on s390 (IBM LTC, #146891)
jorton 25aeb2
jorton cd95f3
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-3
jorton cd95f3
- really fix apr-config --srcdir
jorton cd95f3
jorton 3f5a08
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-2
jorton 3f5a08
- fix apr-config --srcdir again
jorton 3f5a08
jorton 124b9d
* Sun Nov 21 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
jorton 124b9d
- update to 0.9.5
jorton 124b9d
jorton df995e
* Mon Sep 27 2004 Joe Orton <jorton@redhat.com> 0.9.4-24
jorton df995e
- rebuild
jorton df995e
cvsdist b75edb
* Wed Sep  1 2004 Joe Orton <jorton@redhat.com> 0.9.4-23
cvsdist b75edb
- have -devel require apr of same V-R
cvsdist b75edb
cvsdist 69e192
* Tue Aug 31 2004 Joe Orton <jorton@redhat.com> 0.9.4-22
cvsdist 69e192
- backport fixes from HEAD:
cvsdist 69e192
 * correct implementation of nested mutexes
cvsdist 69e192
 * support for POSIX semaphores on LP64 platforms
cvsdist 69e192
cvsdist 9431d4
* Thu Jul 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-21
cvsdist 9431d4
- rebuild for another attempt at using sem_open
cvsdist 9431d4
cvsdist 0ff62e
* Tue Jul 13 2004 Joe Orton <jorton@redhat.com> 0.9.4-20
cvsdist 0ff62e
- move sticky/suid bits outside APR_OS_DEFAULT bitmask (Greg Hudson)
cvsdist 0ff62e
cvsdist 4ac0bd
* Thu Jul  1 2004 Joe Orton <jorton@redhat.com> 0.9.4-19
cvsdist 4ac0bd
- rebuild
cvsdist 4ac0bd
cvsdist f17d36
* Wed Jun 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-18
cvsdist f17d36
- rebuild now /dev/shm is mounted
cvsdist f17d36
cvsdist f17d36
* Thu Jun 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
cvsdist f17d36
- add fix for cleanup structure reuse (part of upstream #23567)
cvsdist f17d36
cvsdist 447ba0
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 447ba0
- rebuilt
cvsdist 447ba0
cvsdist d87a57
* Thu Jun 10 2004 Joe Orton <jorton@redhat.com> 0.9.4-15
cvsdist d87a57
- add support for setuid/setgid/sticky bits (André Malo)
cvsdist d87a57
- add apr_threadattr_{guardsize,stacksize}_set() (latter by Jeff Trawick)
cvsdist d87a57
cvsdist b7fa87
* Mon Jun  7 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
cvsdist b7fa87
- enable posixsem and process-shared pthread mutex support, but
cvsdist b7fa87
  ensure that sysvsem remains the default mechanism
cvsdist b7fa87
cvsdist b7fa87
* Mon May 24 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
cvsdist b7fa87
- entirely remove 2Gb file size limit from apr_file_copy();
cvsdist b7fa87
  fixes "svnadmin hotcopy" on repos with >2Gb strings table
cvsdist b7fa87
- work around getnameinfo bugs with v4-mapped addresses
cvsdist b7fa87
- fix apr_time_exp_get() for dates in 2038 (Philip Martin)
cvsdist b7fa87
cvsdist 2da98d
* Thu May 13 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
cvsdist 2da98d
- use APR_LARGEFILE in apr_file_{copy,append}
cvsdist 2da98d
cvsdist 7f70dd
* Wed Mar 24 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
cvsdist 7f70dd
- add APR_LARGEFILE flag
cvsdist 7f70dd
cvsdist ae4486
* Mon Mar 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
cvsdist ae4486
- fix configure check for mmap of /dev/zero
cvsdist ae4486
- just put -D_GNU_SOURCE in CPPFLAGS not _{BSD,SVID,XOPEN}_SOURCE
cvsdist ae4486
cvsdist ae4486
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-9.1
cvsdist ae4486
- rebuilt
cvsdist ae4486
cvsdist ae4486
* Thu Feb 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
cvsdist ae4486
- undocument apr_dir_read() ordering constraint and fix tests
cvsdist ae4486
cvsdist ae4486
* Sun Feb 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-8
cvsdist ae4486
- rebuilt without -Wall -Werror
cvsdist ae4486
cvsdist ae4486
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-7
cvsdist ae4486
- rebuilt
cvsdist ae4486
cvsdist ae4486
* Tue Feb  3 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
cvsdist ae4486
- define apr_off_t as int/long/... to prevent it changing
cvsdist ae4486
  with _FILE_OFFSET_BITS on 32-bit platforms
cvsdist ae4486
cvsdist ae4486
* Mon Jan 12 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
cvsdist ae4486
- add apr_temp_dir_get fixes from HEAD
cvsdist ae4486
cvsdist d4c8bf
* Thu Jan  8 2004 Joe Orton <jorton@redhat.com> 0.9.4-4
cvsdist d4c8bf
- ensure that libapr is linked against libpthread
cvsdist d4c8bf
- don't link libapr against -lnsl
cvsdist d4c8bf
cvsdist d4c8bf
* Thu Nov 13 2003 Joe Orton <jorton@redhat.com> 0.9.4-3
cvsdist d4c8bf
- -devel package no longer requires libtool
cvsdist 32fc66
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