]>
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 \ | |
45 | --with-ldap \ | |
46 | --with-iconv | |
47 | %{__make} | |
48 | ||
49 | %install | |
50 | rm -rf $RPM_BUILD_ROOT | |
51 | ||
52 | %{__make} install \ | |
53 | DESTDIR=$RPM_BUILD_ROOT | |
54 | ||
55 | %post -p /sbin/ldconfig | |
56 | %postun -p /sbin/ldconfig | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files | |
62 | %defattr(644,root,root,755) | |
63 | %doc CHANGES STATUS | |
64 | %attr(755,root,root) %{_libdir}/lib*.so.*.* | |
65 | ||
66 | %files devel | |
67 | %defattr(644,root,root,755) | |
68 | %attr(755,root,root) %{_bindir}/* | |
69 | %attr(755,root,root) %{_libdir}/lib*.so | |
70 | %{_libdir}/lib*.la | |
71 | %{_libdir}/aprutil.exp | |
72 | %{_includedir} | |
73 | ||
74 | %files static | |
75 | %defattr(644,root,root,755) | |
76 | %{_libdir}/lib*.a |