]>
Commit | Line | Data |
---|---|---|
7b3a2940 | 1 | %bcond_without ldap |
fed4b95d | 2 | %define snap 20030913101715 |
72a05a99 AM |
3 | Summary: A companion library to Apache Portable Runtime |
4 | Name: apr-util | |
fed4b95d | 5 | Version: 0.9.4 |
d94db474 | 6 | Release: 0.%{snap}.2 |
72a05a99 AM |
7 | Epoch: 1 |
8 | License: Apache | |
9 | Group: Libraries | |
fed4b95d AM |
10 | # http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz |
11 | Source0: http://cvs.apache.org/snapshots/apr-util/%{name}_%{snap}.tar.gz | |
12 | # Source0-md5: 00e26d0d77e1265c3bd45d11e9d8457d | |
72a05a99 | 13 | URL: http://apr.apache.org/ |
fed4b95d | 14 | BuildRequires: apr-devel >= 1:0.9.4 |
7b3a2940 | 15 | %{?with_ldap:BuildRequires: openldap-devel} |
72a05a99 AM |
16 | BuildRequires: expat-devel |
17 | BuildRequires: db-devel | |
18 | BuildRequires: gdbm-devel | |
fed4b95d AM |
19 | BuildRequires: libtool |
20 | BuildRequires: autoconf | |
72a05a99 AM |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
22 | ||
23 | %define _includedir /usr/include/apr-util | |
24 | ||
25 | %description | |
26 | A companion library to Apache Portable Runtime. | |
27 | ||
28 | %package devel | |
29 | Summary: Header files and develpment documentation for apr-util | |
30 | Group: Development/Libraries | |
31 | Requires: %{name} = %{epoch}:%{version} | |
32 | ||
33 | %description devel | |
34 | Header files and develpment documentation for apr-util. | |
35 | ||
36 | %package static | |
37 | Summary: Static apr-util library | |
38 | Group: Development/Libraries | |
39 | Requires: %{name}-devel = %{epoch}:%{version} | |
40 | ||
41 | %description static | |
42 | Static apr-util library. | |
43 | ||
44 | %prep | |
fed4b95d | 45 | %setup -q -n %{name} |
72a05a99 AM |
46 | |
47 | %build | |
d94db474 AM |
48 | ./buildconf \ |
49 | --with-apr=%{_datadir}/apr | |
72a05a99 AM |
50 | %configure \ |
51 | --with-apr=%{_bindir}/apr-config \ | |
7b3a2940 | 52 | %{?with_ldap: --with-ldap-include=%{_prefix}/include} \ |
53 | %{?with_ldap: --with-ldap-lib=%{_libdir}} \ | |
429c522f | 54 | --with-iconv=%{_prefix} |
72a05a99 AM |
55 | %{__make} |
56 | ||
57 | %install | |
58 | rm -rf $RPM_BUILD_ROOT | |
59 | ||
60 | %{__make} install \ | |
61 | DESTDIR=$RPM_BUILD_ROOT | |
62 | ||
63 | %post -p /sbin/ldconfig | |
64 | %postun -p /sbin/ldconfig | |
65 | ||
66 | %clean | |
67 | rm -rf $RPM_BUILD_ROOT | |
68 | ||
69 | %files | |
70 | %defattr(644,root,root,755) | |
71 | %doc CHANGES STATUS | |
72 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
73 | ||
74 | %files devel | |
75 | %defattr(644,root,root,755) | |
76 | %attr(755,root,root) %{_bindir}/* | |
77 | %attr(755,root,root) %{_libdir}/lib*.so | |
78 | %{_libdir}/lib*.la | |
79 | %{_libdir}/aprutil.exp | |
80 | %{_includedir} | |
81 | ||
82 | %files static | |
83 | %defattr(644,root,root,755) | |
84 | %{_libdir}/lib*.a |