tstellar / rpms / apr

Forked from rpms/apr 3 years ago
Clone
dd63283
%define aprver 1
cvsdist 9c651dc
cvsdist 9c651dc
Summary: Apache Portable Runtime library
cvsdist 9c651dc
Name: apr
dd63283
Version: 1.2.2
71fc78d
Release: 7
cvsdist 9c651dc
License: Apache Software License
cvsdist 9c651dc
Group: System Environment/Libraries
cvsdist 9c651dc
URL: http://apr.apache.org/
cvsdist 9c651dc
Source0: %{name}-%{version}.tar.gz
dd63283
Patch1: apr-0.9.6-readdir64.patch
dd63283
Patch2: apr-0.9.6-procexit.patch
dd63283
Patch3: apr-0.9.7-deepbind.patch
dd63283
Patch4: apr-1.2.2-chdirwarn.patch
7ceff46
Patch5: apr-1.2.2-reuseaddr.patch
33c2b48
Patch6: apr-1.2.2-locktimeout.patch
397f8f0
Patch7: apr-1.2.2-libdir.patch
ba27eeb
Patch8: apr-1.2.2-seekflush.patch
71fc78d
Patch9: apr-1.2.2-random.patch
cvsdist 9c651dc
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
cvsdist 9c651dc
BuildPrereq: autoconf, libtool, doxygen
cvsdist 9c651dc
Conflicts: subversion < 0.20.1-2
cvsdist 9c651dc
cvsdist 9c651dc
%description
cvsdist 9c651dc
The mission of the Apache Portable Runtime (APR) is to provide a
cvsdist 9c651dc
free library of C data structures and routines, forming a system
cvsdist 9c651dc
portability layer to as many operating systems as possible,
cvsdist 9c651dc
including Unices, MS Win32, BeOS and OS/2.
cvsdist 9c651dc
cvsdist 9c651dc
%package devel
cvsdist 9c651dc
Group: Development/Libraries
cvsdist 9c651dc
Summary: APR library development kit
cvsdist 9c651dc
Conflicts: subversion-devel < 0.20.1-2
4f22d73
Requires: apr = %{version}-%{release}, gcc = %(gcc -dumpversion)
4f22d73
# shipped libtool hard-codes paths to gcc libraries in versioned dir
cvsdist 9c651dc
cvsdist 9c651dc
%description devel
cvsdist 9c651dc
This package provides the support files which can be used to 
cvsdist 9c651dc
build applications using the APR library.  The mission of the
cvsdist 9c651dc
Apache Portable Runtime (APR) is to provide a free library of 
cvsdist 9c651dc
C data structures and routines.
cvsdist 9c651dc
cvsdist 9c651dc
%prep
cvsdist 9c651dc
%setup -q
dd63283
%patch1 -p1 -b .readdir64
dd63283
%patch2 -p1 -b .procexit
dd63283
%patch3 -p1 -b .deepbind
dd63283
%patch4 -p1 -b .chdirwarn
7ceff46
%patch5 -p1 -b .reuseaddr
33c2b48
%patch6 -p1 -b .locktimeout
397f8f0
%patch7 -p1 -b .libdir
ba27eeb
%patch8 -p1 -b .seekflush
71fc78d
%patch9 -p1 -b .random
cvsdist 9c651dc
cvsdist 2da98d9
%build
cvsdist 9c651dc
# regenerate configure script etc.
cvsdist 9c651dc
./buildconf
397f8f0
397f8f0
# Forcibly prevent detection of shm_open (which then picks up but
397f8f0
# does not use -lrt).
397f8f0
export ac_cv_search_shm_open=no
397f8f0
d2092c5
# Forcibly prevent detection of pthread_mutexattr_setrobust_np,
d2092c5
# which doesn't seem to work.
abb4fb8
export ac_cv_func_pthread_mutexattr_setrobust_np=no
d2092c5
export apr_cv_setrobust_with_prio_inherit=no
d2092c5
cvsdist b7fa871
%configure \
cvsdist 9c651dc
        --includedir=%{_includedir}/apr-%{aprver} \
dd63283
        --with-installbuilddir=%{_libdir}/apr-%{aprver}/build \
cvsdist 9c651dc
        --with-devrandom=/dev/urandom \
cvsdist 9c651dc
        CC=gcc CXX=g++
d32a17e
make %{?_smp_mflags} && make dox
cvsdist 9c651dc
cvsdist 9c651dc
%check
e8ca286
%ifnarch s390 ppc
e8ca286
# Run non-interactive tests.  Skip on platforms which several
e8ca286
# builds might be run concurrently since the test suite binds
e8ca286
# to fixed port numbers in a few places.
cvsdist 9c651dc
pushd test
dd63283
make %{?_smp_mflags} testall
dd63283
./testall -v -q || exit 1
cvsdist 9c651dc
popd
e8ca286
%endif
cvsdist 9c651dc
cvsdist 9c651dc
%install
cvsdist 9c651dc
rm -rf $RPM_BUILD_ROOT
cvsdist 9c651dc
make install DESTDIR=$RPM_BUILD_ROOT
cvsdist 9c651dc
cvsdist 9c651dc
# Move docs to more convenient location
cvsdist 9c651dc
mv docs/dox/html html
cvsdist 9c651dc
397f8f0
# Trim exported dependecies
397f8f0
sed -ri '/^dependency_libs/{s,-l(uuid|crypt) ,,g}' \
397f8f0
      $RPM_BUILD_ROOT%{_libdir}/libapr*.la
3b61650
sed -ri '/^LIBS=/{s,-l(uuid|crypt) ,,g;s/  */ /g}' \
3b61650
      $RPM_BUILD_ROOT%{_bindir}/apr-%{aprver}-config
397f8f0
cvsdist 9c651dc
# Unpackaged files:
cvsdist 9c651dc
rm -f $RPM_BUILD_ROOT%{_libdir}/apr.exp
cvsdist 9c651dc
cvsdist 9c651dc
%clean
cvsdist 9c651dc
rm -rf $RPM_BUILD_ROOT
cvsdist 9c651dc
cvsdist 9c651dc
%post -p /sbin/ldconfig
cvsdist 9c651dc
cvsdist 9c651dc
%postun -p /sbin/ldconfig
cvsdist 9c651dc
cvsdist 9c651dc
%files
cvsdist 9c651dc
%defattr(-,root,root,-)
4f22d73
%doc CHANGES LICENSE NOTICE
cvsdist 9c651dc
%{_libdir}/libapr-%{aprver}.so.*
cvsdist 9c651dc
cvsdist 9c651dc
%files devel
cvsdist 9c651dc
%defattr(-,root,root,-)
cvsdist 9c651dc
%doc docs/APRDesign.html docs/canonical_filenames.html
cvsdist 9c651dc
%doc docs/incomplete_types docs/non_apr_programs
cvsdist 9c651dc
%doc --parents html
dd63283
%{_bindir}/apr-%{aprver}-config
cvsdist 9c651dc
%{_libdir}/libapr-%{aprver}.*a
cvsdist 9c651dc
%{_libdir}/libapr-%{aprver}.so
dd63283
%{_libdir}/pkgconfig/*.pc
dd63283
%dir %{_libdir}/apr-%{aprver}
dd63283
%dir %{_libdir}/apr-%{aprver}/build
dd63283
%{_libdir}/apr-%{aprver}/build/*
cvsdist 9c651dc
%dir %{_includedir}/apr-%{aprver}
cvsdist 9c651dc
%{_includedir}/apr-%{aprver}/*.h
cvsdist 9c651dc
cvsdist 9c651dc
%changelog
71fc78d
* Wed Jan  4 2006 Joe Orton <jorton@redhat.com> 1.2.2-7
71fc78d
- fix namespace pollution (r354824, r355464)
71fc78d
893685f
* Wed Jan  4 2006 Joe Orton <jorton@redhat.com> 1.2.2-6
893685f
- fix build with recent glibc (#176911)
893685f
5ab73aa
* Tue Jan  3 2006 Jesse Keating <jkeating@redhat.com> 1.2.2-5.2
5ab73aa
- rebuilt again
5ab73aa
224fe3b
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
224fe3b
- rebuilt
224fe3b
9c6699a
* Fri Dec  9 2005 Joe Orton <jorton@redhat.com> 1.2.2-5
9c6699a
- rebuild for new gcc
9c6699a
ba27eeb
* Thu Dec  8 2005 Joe Orton <jorton@redhat.com> 1.2.2-4
ba27eeb
- add apr_file_seek() fixes from upstream (r326593, r326597)
ba27eeb
3b61650
* Wed Dec  7 2005 Joe Orton <jorton@redhat.com> 1.2.2-3
3b61650
- apr-1-config: strip more exports (#175124) 
3b61650
397f8f0
* Tue Dec  6 2005 Joe Orton <jorton@redhat.com> 1.2.2-2
397f8f0
- avoid linking against -lrt
397f8f0
- don't print -L${libdir} in --libs output
397f8f0
- don't export -lcrypt/-luuid in .la file
397f8f0
dd63283
* Fri Dec  2 2005 Joe Orton <jorton@redhat.com> 1.2.2-1
dd63283
- update to 1.2.2
dd63283
2cc98bc
* Thu Nov 24 2005 Joe Orton <jorton@redhat.com> 0.9.7-3
2cc98bc
- use RTLD_DEEPBIND in apr_dso_open by default
2cc98bc
93c7b32
* Thu Oct 20 2005 Joe Orton <jorton@redhat.com> 0.9.7-2
93c7b32
- update to 0.9.7
93c7b32
Florian La Roche 09af1a5
* Fri Sep 30 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche 09af1a5
- rebuild for new gcc
Florian La Roche 09af1a5
d32a17e
* Thu Sep 15 2005 Joe Orton <jorton@redhat.com> 0.9.6-6
d32a17e
- don't override CFLAGS at build time
95c9afd
- allow setting TCP_NODELAY and TCP_CORK concurrently
95c9afd
- use _exit() not exit() in child if exec*() fails (upstream #30913)
d32a17e
f0cc37a
* Fri Sep  9 2005 Joe Orton <jorton@redhat.com> 0.9.6-5
f0cc37a
- add from 0.9.x branch:
f0cc37a
 * fix for apr_{uid,gid}_* error handling (r239592)
f0cc37a
 * fix for apr_file_ write flushing (r267192)
f0cc37a
- add backport for use of readdir64_r (r265032, r265681, r265684)
f0cc37a
Florian La Roche d0841e5
* Mon Jul 11 2005 Florian La Roche <laroche@redhat.com>
Florian La Roche d0841e5
- rebuild
Florian La Roche d0841e5
51e20db
* Tue May 17 2005 Joe Orton <jorton@redhat.com> 0.9.6-3
51e20db
- fix apr_procattr_child_*_set error handling
51e20db
4f22d73
* Tue Mar  1 2005 Joe Orton <jorton@redhat.com> 0.9.6-2
4f22d73
- have apr-devel depend on specific version of gcc
4f22d73
- add NOTICE to docdir
4f22d73
5b71dca
* Wed Feb  9 2005 Joe Orton <jorton@redhat.com> 0.9.6-1
5b71dca
- update to 0.9.6
5b71dca
25aeb22
* Wed Feb  2 2005 Joe Orton <jorton@redhat.com> 0.9.5-4
25aeb22
- don't disable sendfile on s390 (IBM LTC, #146891)
25aeb22
cd95f3d
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-3
cd95f3d
- really fix apr-config --srcdir
cd95f3d
3f5a084
* Mon Nov 22 2004 Joe Orton <jorton@redhat.com> 0.9.5-2
3f5a084
- fix apr-config --srcdir again
3f5a084
124b9dc
* Sun Nov 21 2004 Joe Orton <jorton@redhat.com> 0.9.5-1
124b9dc
- update to 0.9.5
124b9dc
df995e4
* Mon Sep 27 2004 Joe Orton <jorton@redhat.com> 0.9.4-24
df995e4
- rebuild
df995e4
cvsdist b75edb4
* Wed Sep  1 2004 Joe Orton <jorton@redhat.com> 0.9.4-23
cvsdist b75edb4
- have -devel require apr of same V-R
cvsdist b75edb4
cvsdist 69e1929
* Tue Aug 31 2004 Joe Orton <jorton@redhat.com> 0.9.4-22
cvsdist 69e1929
- backport fixes from HEAD:
cvsdist 69e1929
 * correct implementation of nested mutexes
cvsdist 69e1929
 * support for POSIX semaphores on LP64 platforms
cvsdist 69e1929
cvsdist 9431d4f
* Thu Jul 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-21
cvsdist 9431d4f
- rebuild for another attempt at using sem_open
cvsdist 9431d4f
cvsdist 0ff62e0
* Tue Jul 13 2004 Joe Orton <jorton@redhat.com> 0.9.4-20
cvsdist 0ff62e0
- move sticky/suid bits outside APR_OS_DEFAULT bitmask (Greg Hudson)
cvsdist 0ff62e0
cvsdist 4ac0bde
* Thu Jul  1 2004 Joe Orton <jorton@redhat.com> 0.9.4-19
cvsdist 4ac0bde
- rebuild
cvsdist 4ac0bde
cvsdist f17d363
* Wed Jun 30 2004 Joe Orton <jorton@redhat.com> 0.9.4-18
cvsdist f17d363
- rebuild now /dev/shm is mounted
cvsdist f17d363
cvsdist f17d363
* Thu Jun 17 2004 Joe Orton <jorton@redhat.com> 0.9.4-17
cvsdist f17d363
- add fix for cleanup structure reuse (part of upstream #23567)
cvsdist f17d363
cvsdist 447ba0c
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist 447ba0c
- rebuilt
cvsdist 447ba0c
cvsdist d87a576
* Thu Jun 10 2004 Joe Orton <jorton@redhat.com> 0.9.4-15
cvsdist d87a576
- add support for setuid/setgid/sticky bits (André Malo)
cvsdist d87a576
- add apr_threadattr_{guardsize,stacksize}_set() (latter by Jeff Trawick)
cvsdist d87a576
cvsdist b7fa871
* Mon Jun  7 2004 Joe Orton <jorton@redhat.com> 0.9.4-14
cvsdist b7fa871
- enable posixsem and process-shared pthread mutex support, but
cvsdist b7fa871
  ensure that sysvsem remains the default mechanism
cvsdist b7fa871
cvsdist b7fa871
* Mon May 24 2004 Joe Orton <jorton@redhat.com> 0.9.4-13
cvsdist b7fa871
- entirely remove 2Gb file size limit from apr_file_copy();
cvsdist b7fa871
  fixes "svnadmin hotcopy" on repos with >2Gb strings table
cvsdist b7fa871
- work around getnameinfo bugs with v4-mapped addresses
cvsdist b7fa871
- fix apr_time_exp_get() for dates in 2038 (Philip Martin)
cvsdist b7fa871
cvsdist 2da98d9
* Thu May 13 2004 Joe Orton <jorton@redhat.com> 0.9.4-12
cvsdist 2da98d9
- use APR_LARGEFILE in apr_file_{copy,append}
cvsdist 2da98d9
cvsdist 7f70dd0
* Wed Mar 24 2004 Joe Orton <jorton@redhat.com> 0.9.4-11
cvsdist 7f70dd0
- add APR_LARGEFILE flag
cvsdist 7f70dd0
cvsdist ae44867
* Mon Mar 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-10
cvsdist ae44867
- fix configure check for mmap of /dev/zero
cvsdist ae44867
- just put -D_GNU_SOURCE in CPPFLAGS not _{BSD,SVID,XOPEN}_SOURCE
cvsdist ae44867
cvsdist ae44867
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-9.1
cvsdist ae44867
- rebuilt
cvsdist ae44867
cvsdist ae44867
* Thu Feb 19 2004 Joe Orton <jorton@redhat.com> 0.9.4-9
cvsdist ae44867
- undocument apr_dir_read() ordering constraint and fix tests
cvsdist ae44867
cvsdist ae44867
* Sun Feb 15 2004 Joe Orton <jorton@redhat.com> 0.9.4-8
cvsdist ae44867
- rebuilt without -Wall -Werror
cvsdist ae44867
cvsdist ae44867
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com> 0.9.4-7
cvsdist ae44867
- rebuilt
cvsdist ae44867
cvsdist ae44867
* Tue Feb  3 2004 Joe Orton <jorton@redhat.com> 0.9.4-6
cvsdist ae44867
- define apr_off_t as int/long/... to prevent it changing
cvsdist ae44867
  with _FILE_OFFSET_BITS on 32-bit platforms
cvsdist ae44867
cvsdist ae44867
* Mon Jan 12 2004 Joe Orton <jorton@redhat.com> 0.9.4-5
cvsdist ae44867
- add apr_temp_dir_get fixes from HEAD
cvsdist ae44867
cvsdist d4c8bf3
* Thu Jan  8 2004 Joe Orton <jorton@redhat.com> 0.9.4-4
cvsdist d4c8bf3
- ensure that libapr is linked against libpthread
cvsdist d4c8bf3
- don't link libapr against -lnsl
cvsdist d4c8bf3
cvsdist d4c8bf3
* Thu Nov 13 2003 Joe Orton <jorton@redhat.com> 0.9.4-3
cvsdist d4c8bf3
- -devel package no longer requires libtool
cvsdist 32fc661
cvsdist 9c651dc
* Fri Oct  3 2003 Joe Orton <jorton@redhat.com> 0.9.4-2
cvsdist 9c651dc
- disable tests on x86_64 (#97611)
cvsdist 9c651dc
cvsdist 9c651dc
* Fri Oct  3 2003 Joe Orton <jorton@redhat.com> 0.9.4-1
cvsdist 9c651dc
- update to 0.9.4, enable tests
cvsdist 9c651dc
- ensure that libresolv is not used
cvsdist 9c651dc
cvsdist 9c651dc
* Sun Sep  7 2003 Joe Orton <jorton@redhat.com> 0.9.3-14
cvsdist 9c651dc
- use /dev/urandom (#103049)
cvsdist 9c651dc
cvsdist 9c651dc
* Thu Jul 24 2003 Joe Orton <jorton@redhat.com> 0.9.3-13
cvsdist 9c651dc
- add back CC=gcc, CXX=g++
cvsdist 9c651dc
cvsdist 9c651dc
* Tue Jul 22 2003 Nalin Dahyabhai <nalin@redhat.com> 0.9.3-12
cvsdist 9c651dc
- rebuild
cvsdist 9c651dc
cvsdist 9c651dc
* Mon Jul 14 2003 Joe Orton <jorton@redhat.com> 0.9.3-11
cvsdist 9c651dc
- work round useless autoconf 2.57 AC_DECL_SYS_SIGLIST
cvsdist 9c651dc
cvsdist 9c651dc
* Thu Jul 10 2003 Joe Orton <jorton@redhat.com> 0.9.3-10
cvsdist 9c651dc
- support --cc and --cpp arguments in apr-config
cvsdist 9c651dc
cvsdist 9c651dc
* Thu Jul  3 2003 Joe Orton <jorton@redhat.com> 0.9.3-9
cvsdist 9c651dc
- force libtool to use CC=gcc, CXX=g++
cvsdist 9c651dc
cvsdist 9c651dc
* Thu Jul  3 2003 Joe Orton <jorton@redhat.com> 0.9.3-8
cvsdist 9c651dc
- fix libtool location in apr_rules.mk
cvsdist 9c651dc
cvsdist 9c651dc
* Mon Jun 30 2003 Joe Orton <jorton@redhat.com> 0.9.3-7
cvsdist 9c651dc
- use AI_ADDRCONFIG in getaddrinfo() support (#73350)
cvsdist 9c651dc
- include a working libtool script rather than relying on
cvsdist 9c651dc
 /usr/bin/libtool (#97695)
cvsdist 9c651dc
cvsdist 9c651dc
* Wed Jun 18 2003 Joe Orton <jorton@redhat.com> 0.9.3-6
cvsdist 9c651dc
- don't use /usr/bin/libtool
cvsdist 9c651dc
cvsdist 9c651dc
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 9c651dc
- rebuilt
cvsdist 9c651dc
cvsdist 9c651dc
* Tue May 20 2003 Joe Orton <jorton@redhat.com> 0.9.3-5
cvsdist 9c651dc
- add fix for psprintf memory corruption (CAN-2003-0245)
cvsdist 9c651dc
- remove executable bit from apr_poll.h
cvsdist 9c651dc
cvsdist 9c651dc
* Thu May  1 2003 Joe Orton <jorton@redhat.com> 0.9.3-4
cvsdist 9c651dc
- link libapr against libpthread
cvsdist 9c651dc
- make apr-devel conflict with old subversion-devel
cvsdist 9c651dc
- fix License
cvsdist 9c651dc
cvsdist 9c651dc
* Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-3
cvsdist 9c651dc
- run ldconfig in post/postun
cvsdist 9c651dc
cvsdist 9c651dc
* Tue Apr 29 2003 Joe Orton <jorton@redhat.com> 0.9.3-2
cvsdist 9c651dc
- patch test suite to not care if IPv6 is disabled
cvsdist 9c651dc
cvsdist 9c651dc
* Mon Apr 28 2003 Joe Orton <jorton@redhat.com> 0.9.3-1
cvsdist 9c651dc
- initial build