|
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 |
7f70dd |
Release: 11
|
|
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 |
d4c8bf |
Patch4: apr-0.9.4-trimlibs.patch
|
|
cvsdist |
d4c8bf |
Patch5: apr-0.9.4-pthread.patch
|
|
cvsdist |
d4c8bf |
Patch6: apr-0.9.4-tests.patch
|
|
cvsdist |
ae4486 |
Patch7: apr-0.9.4-tempdir.patch
|
|
cvsdist |
ae4486 |
Patch8: apr-0.9.4-aprofft.patch
|
|
cvsdist |
ae4486 |
Patch9: apr-0.9.4-dotdot.patch
|
|
cvsdist |
ae4486 |
Patch10: apr-0.9.4-cflags.patch
|
|
cvsdist |
ae4486 |
Patch11: apr-0.9.4-mmapzero.patch
|
|
cvsdist |
7f70dd |
Patch12: apr-0.9.4-largefile.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 |
d4c8bf |
Requires: apr = %{version}
|
|
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 |
d4c8bf |
%patch4 -p1 -b .trimlibs
|
|
cvsdist |
d4c8bf |
%patch5 -p1 -b .pthread
|
|
cvsdist |
d4c8bf |
%patch6 -p1 -b .tests
|
|
cvsdist |
ae4486 |
%patch7 -p1 -b .tempdir
|
|
cvsdist |
ae4486 |
%patch8 -p1 -b .aprofft
|
|
cvsdist |
ae4486 |
%patch9 -p1 -b .dotdot
|
|
cvsdist |
ae4486 |
%patch10 -p1 -b .cflags
|
|
cvsdist |
ae4486 |
%patch11 -p1 -b .mmapzero
|
|
cvsdist |
7f70dd |
%patch12 -p1 -b .largefile
|
|
cvsdist |
9c651d |
|
|
cvsdist |
9c651d |
# regenerate configure script etc.
|
|
cvsdist |
9c651d |
./buildconf
|
|
cvsdist |
9c651d |
|
|
cvsdist |
9c651d |
%build
|
|
cvsdist |
ae4486 |
# Disable setpshared and sem_open, which only work on NPTL kernels.
|
|
cvsdist |
9c651d |
cat > config.cache <
|
|
cvsdist |
9c651d |
ac_cv_func_pthread_mutexattr_setpshared=no
|
|
cvsdist |
9c651d |
ac_cv_func_sem_open=no
|
|
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 |
%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 |
|
|
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 |
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
|