apr-util.spec 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. %define apuver 1
  2. Summary: Apache Portable Runtime Utility library
  3. Name: apr-util
  4. Version: 1.2.8
  5. Release: 1
  6. License: Apache Software License
  7. Group: System Environment/Libraries
  8. URL: http://apr.apache.org/
  9. Source0: %{name}-%{version}.tar.gz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  11. BuildPrereq: autoconf, libtool, doxygen, apr-devel >= 0:{version}-{release}
  12. BuildPrereq: openldap-devel, db4-devel, expat-devel
  13. Conflicts: subversion < 0.20.1-2
  14. %description
  15. The mission of the Apache Portable Runtime (APR) is to provide a
  16. free library of C data structures and routines. This library
  17. contains additional utility interfaces for APR; including support
  18. for XML, LDAP, database interfaces, URI parsing and more.
  19. %package devel
  20. Group: Development/Libraries
  21. Summary: APR utility library development kit
  22. Requires: apr-util = %{version}-%{release}, apr-devel
  23. Requires: openldap-devel, db4-devel, expat-devel
  24. Conflicts: subversion-devel < 0.20.1-2
  25. %description devel
  26. This package provides the support files which can be used to
  27. build applications using the APR utility library. The mission
  28. of the Apache Portable Runtime (APR) is to provide a free
  29. library of C data structures and routines.
  30. %prep
  31. %setup -q
  32. %build
  33. %configure --with-apr=%{_prefix} \
  34. --includedir=%{_includedir}/apr-%{apuver} \
  35. --with-ldap --without-gdbm
  36. make %{?_smp_mflags} && make dox
  37. %check
  38. # Run non-interactive tests
  39. pushd test
  40. make %{?_smp_mflags} testall CFLAGS=-fno-strict-aliasing
  41. ./testall -v || exit 1
  42. popd
  43. %install
  44. rm -rf $RPM_BUILD_ROOT
  45. make install DESTDIR=$RPM_BUILD_ROOT
  46. # Documentation
  47. mv docs/dox/html html
  48. # Unpackaged files
  49. rm -f $RPM_BUILD_ROOT%{_libdir}/aprutil.exp
  50. %clean
  51. rm -rf $RPM_BUILD_ROOT
  52. %post -p /sbin/ldconfig
  53. %postun -p /sbin/ldconfig
  54. %files
  55. %defattr(-,root,root,-)
  56. %doc CHANGES LICENSE NOTICE
  57. %{_libdir}/libaprutil-%{apuver}.so.*
  58. %files devel
  59. %defattr(-,root,root,-)
  60. %{_bindir}/apu-%{apuver}-config
  61. %{_libdir}/libaprutil-%{apuver}.*a
  62. %{_libdir}/libaprutil-%{apuver}.so
  63. %{_libdir}/pkgconfig/apr-util-%{apuver}.pc
  64. %{_includedir}/apr-%{apuver}/*.h
  65. %doc --parents html
  66. %changelog
  67. * Tue Jun 22 2004 Graham Leggett <minfrin@sharp.fm> 1.0.0-1
  68. - update to support v1.0.0 of APR
  69. * Tue Jun 22 2004 Graham Leggett <minfrin@sharp.fm> 1.0.0-1
  70. - derived from Fedora Core apr.spec