3 %bcond_without ldap # without LDAP support
4 %bcond_with mysql # with MySQL support
5 %bcond_without pgsql # without PostgreSQL support
6 %bcond_with sqlite # with SQLite 2.x support
7 %bcond_without sqlite3 # without SQLite3 support
9 Summary: A companion library to Apache Portable Runtime
10 Summary(pl): Biblioteka towarzysz±ca Apache Portable Runtime
17 Source0: http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
18 # Source0-md5: 1e579571bf42a2bb0e5ba882721efa46
19 Patch0: %{name}-link.patch
20 URL: http://apr.apache.org/
21 BuildRequires: apr-devel >= 1:1.1.0
22 BuildRequires: autoconf
23 BuildRequires: db-devel
24 BuildRequires: expat-devel
25 BuildRequires: gdbm-devel
26 BuildRequires: libtool
27 %{?with_mysql:BuildRequires: mysql-devel}
28 %{?with_ldap:BuildRequires: openldap-devel}
29 %{?with_pgsql:BuildRequires: postgresql-devel}
30 %{?with_sqlite:BuildRequires: sqlite-devel >= 2}
31 %{?with_sqlite3:BuildRequires: sqlite3-devel >= 3}
32 Requires: apr >= 1:1.1.0
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 %define _includedir /usr/include/apr-util
38 A companion library to Apache Portable Runtime.
41 Biblioteka towarzysz±ca dla biblioteki Apache Portable Runtime
42 (przeno¶nej biblioteki uruchomieniowej).
45 Summary: Header files and development documentation for apr-util
46 Summary(pl): Pliki nag³ówkowe i dokumentacja programisty do apr-util
47 Group: Development/Libraries
48 Requires: %{name} = %{epoch}:%{version}-%{release}
49 Requires: apr-devel >= 1:1.1.0
53 %{?with_mysql:Requires: mysql-devel}
54 %{?with_ldap:Requires: openldap-devel}
55 %{?with_pgsql:Requires: postgresql-devel}
56 %{?with_sqlite:Requires: sqlite-devel >= 2}
57 %{?with_sqlite3:Requires: sqlite3-devel >= 3}
60 Header files and development documentation for apr-util.
62 %description devel -l pl
63 Pliki nag³ówkowe i dokumentacja programisty do apr-util.
66 Summary: Static apr-util library
67 Summary(pl): Statyczna biblioteka apr-util
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{epoch}:%{version}-%{release}
72 Static apr-util library.
74 %description static -l pl
75 Statyczna biblioteka apr-util.
81 # not needed, gen-build.py is not packaged in apr
82 %{__perl} -pi -e 's/^(.*gen-build\.py)/#$1/' buildconf
86 --with-apr=%{_datadir}/apr
89 --with-apr=%{_bindir}/apr-1-config \
92 --with-ldap-include=%{_prefix}/include \
93 --with-ldap-lib=%{_libdir} \
95 --with-iconv=%{_prefix} \
96 %{?with_mysql:--with-mysql} \
97 %{!?with_pgsql:--without-pgsql} \
98 %{!?with_sqlite:--without-sqlite2} \
99 %{!?with_sqlite3:--without-sqlite3}
104 rm -rf $RPM_BUILD_ROOT
107 DESTDIR=$RPM_BUILD_ROOT
110 rm -rf $RPM_BUILD_ROOT
112 %post -p /sbin/ldconfig
113 %postun -p /sbin/ldconfig
116 %defattr(644,root,root,755)
118 %attr(755,root,root) %{_libdir}/lib*.so.*.*
121 %defattr(644,root,root,755)
122 %attr(755,root,root) %{_bindir}/*
123 %attr(755,root,root) %{_libdir}/lib*.so
125 %{_libdir}/aprutil.exp
127 %{_pkgconfigdir}/apr-util-1.pc
130 %defattr(644,root,root,755)