]> git.pld-linux.org Git - packages/apr-util.git/blame - apr-util.spec
- added without ldap bcond
[packages/apr-util.git] / apr-util.spec
CommitLineData
7b3a2940 1%bcond_without ldap
fed4b95d 2%define snap 20030913101715
72a05a99
AM
3Summary: A companion library to Apache Portable Runtime
4Name: apr-util
fed4b95d 5Version: 0.9.4
d94db474 6Release: 0.%{snap}.2
72a05a99
AM
7Epoch: 1
8License: Apache
9Group: Libraries
fed4b95d
AM
10# http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
11Source0: http://cvs.apache.org/snapshots/apr-util/%{name}_%{snap}.tar.gz
12# Source0-md5: 00e26d0d77e1265c3bd45d11e9d8457d
72a05a99 13URL: http://apr.apache.org/
fed4b95d 14BuildRequires: apr-devel >= 1:0.9.4
7b3a2940 15%{?with_ldap:BuildRequires: openldap-devel}
72a05a99
AM
16BuildRequires: expat-devel
17BuildRequires: db-devel
18BuildRequires: gdbm-devel
fed4b95d
AM
19BuildRequires: libtool
20BuildRequires: autoconf
72a05a99
AM
21BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23%define _includedir /usr/include/apr-util
24
25%description
26A companion library to Apache Portable Runtime.
27
28%package devel
29Summary: Header files and develpment documentation for apr-util
30Group: Development/Libraries
31Requires: %{name} = %{epoch}:%{version}
32
33%description devel
34Header files and develpment documentation for apr-util.
35
36%package static
37Summary: Static apr-util library
38Group: Development/Libraries
39Requires: %{name}-devel = %{epoch}:%{version}
40
41%description static
42Static 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
58rm -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
67rm -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
This page took 0.065115 seconds and 4 git commands to generate.