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