2 %bcond_without ldap # without LDAP support
4 Summary: A companion library to Apache Portable Runtime
5 Summary(pl): Biblioteka towarzysz±ca Apache Portable Runtime
12 Source0: http://www.apache.org/dist/apr/%{name}-0.9.4.tar.gz
13 # Source0-md5: 909ff60d9efb3f158d33e4569af57874
14 Patch0: %{name}-link.patch
15 Patch1: %{name}-0.9.4_0.9.5.patch
16 URL: http://apr.apache.org/
17 BuildRequires: apr-devel >= 1:0.9.4
18 BuildRequires: autoconf
19 BuildRequires: db-devel
20 BuildRequires: expat-devel
21 BuildRequires: gdbm-devel
22 BuildRequires: libtool
23 %{?with_ldap:BuildRequires: openldap-devel}
24 Requires: apr >= 1:0.9.4
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 %define _includedir /usr/include/apr-util
30 A companion library to Apache Portable Runtime.
33 Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
34 (przeno¶nej biblioteki uruchomieniowej).
37 Summary: Header files and development documentation for apr-util
38 Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do apr-util
39 Group: Development/Libraries
40 Requires: %{name} = %{epoch}:%{version}-%{release}
41 Requires: apr-devel >= 1:0.9.4
45 %{?with_ldap:Requires: openldap-devel}
48 Header files and development documentation for apr-util.
50 %description devel -l pl
51 Pliki nag³ówkowe i dokumentacja programisty do apr-util.
54 Summary: Static apr-util library
55 Summary(pl): Statyczna biblioteka apr-util
56 Group: Development/Libraries
57 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
58 Conflicts: apr-static < 1:0.9
61 Static apr-util library.
63 %description static -l pl
64 Statyczna biblioteka apr-util.
67 %setup -q -n %{name}-0.9.4
73 --with-apr=%{_datadir}/apr
75 --with-apr=%{_bindir}/apr-config \
76 %{?with_ldap: --with-ldap} \
77 %{?with_ldap: --with-ldap-include=%{_prefix}/include} \
78 %{?with_ldap: --with-ldap-lib=%{_libdir}} \
79 --with-iconv=%{_prefix}
83 rm -rf $RPM_BUILD_ROOT
86 DESTDIR=$RPM_BUILD_ROOT
89 rm -rf $RPM_BUILD_ROOT
91 %post -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
95 %defattr(644,root,root,755)
97 %attr(755,root,root) %{_libdir}/lib*.so.*.*
100 %defattr(644,root,root,755)
101 %attr(755,root,root) %{_bindir}/*
102 %attr(755,root,root) %{_libdir}/lib*.so
104 %{_libdir}/aprutil.exp
108 %defattr(644,root,root,755)