3 %bcond_without ldap # without LDAP support
5 %define snap 20030913101715
6 Summary: A companion library to Apache Portable Runtime
7 Summary(pl): Biblioteka towarzysz±ca Apache Portable Runtime
14 # http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
15 Source0: http://cvs.apache.org/snapshots/apr-util/%{name}_%{snap}.tar.gz
16 # Source0-md5: 00e26d0d77e1265c3bd45d11e9d8457d
17 Patch0: %{name}-link.patch
18 URL: http://apr.apache.org/
19 BuildRequires: apr-devel >= 1:0.9.4
20 BuildRequires: autoconf
21 BuildRequires: db-devel
22 BuildRequires: expat-devel
23 BuildRequires: gdbm-devel
24 BuildRequires: libtool
25 %{?with_ldap:BuildRequires: openldap-devel}
26 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 %define _includedir /usr/include/apr-util
31 A companion library to Apache Portable Runtime.
34 Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
35 (przeno¶nej biblioteki uruchomieniowej).
38 Summary: Header files and development documentation for apr-util
39 Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do apr-util
40 Group: Development/Libraries
41 Requires: %{name} = %{epoch}:%{version}-%{release}
45 Header files and development documentation for apr-util.
47 %description devel -l pl
48 Pliki nag³ówkowe i dokumentacja programisty do apr-util.
51 Summary: Static apr-util library
52 Summary(pl): Statyczna biblioteka apr-util
53 Group: Development/Libraries
54 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
57 Static apr-util library.
59 %description static -l pl
60 Statyczna biblioteka apr-util.
68 --with-apr=%{_datadir}/apr
70 --with-apr=%{_bindir}/apr-config \
71 %{?with_ldap: --with-ldap-include=%{_prefix}/include} \
72 %{?with_ldap: --with-ldap-lib=%{_libdir}} \
73 --with-iconv=%{_prefix}
77 rm -rf $RPM_BUILD_ROOT
80 DESTDIR=$RPM_BUILD_ROOT
83 rm -rf $RPM_BUILD_ROOT
85 %post -p /sbin/ldconfig
86 %postun -p /sbin/ldconfig
89 %defattr(644,root,root,755)
91 %attr(755,root,root) %{_libdir}/lib*.so.*.*
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/*
96 %attr(755,root,root) %{_libdir}/lib*.so
98 %{_libdir}/aprutil.exp
102 %defattr(644,root,root,755)