Changes of Revision 4
[-] | Added | libapr-util1.spec |
x 1
2 +# 3 +# spec file for package libapr-util1 (Version 1.2.12) 4 +# 5 +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. 6 +# This file and all modifications and additions to the pristine 7 +# package are under the same license as the package itself. 8 +# 9 +# Please submit bugfixes or comments via http://bugs.opensuse.org/ 10 +# 11 + 12 +# norootforbuild 13 + 14 + 15 +Name: libapr-util1 16 +%define with_sqlite2 0 17 +%define with_sqlite3 0 18 +%define with_mysql 0 19 +%if 0%{?suse_version} > 910 20 +# see previous versions of this package for a workaround how to build the mysql driver on SLES9. 21 +%define with_mysql 1 22 +%endif 23 +%define with_pgsql 0 24 +%if 0%{?suse_version} >= 910 25 + %define with_sqlite2 1 26 + %define with_pgsql 1 27 +%endif 28 +%if 0%{?suse_version} >= 930 29 + %define with_sqlite2 0 30 + %define with_sqlite3 1 31 +%endif 32 +# 33 +%define dso_libdir %{_libdir}/apr-util-1 34 +# 35 +BuildRequires: db-devel libapr1-devel 36 +# 37 +# 38 +# database backends 39 +# 40 +%if %{with_mysql} 41 +BuildRequires: mysql-devel 42 +%endif 43 +# 44 +%if %{with_sqlite2} 45 +BuildRequires: sqlite-devel 46 +%endif 47 +%if %{with_sqlite3} 48 +BuildRequires: sqlite-devel 49 +%endif 50 +# 51 +%if %{with_pgsql} 52 +BuildRequires: postgresql-devel 53 +%endif 54 +# 55 +# 56 +# distro specific buildrequires 57 +# 58 +%if %{?suse_version:1}0 59 +BuildRequires: doxygen openldap2-devel 60 +%endif 61 +%if 0%{?suse_version} > 1020 62 +BuildRequires: libexpat-devel 63 +%else 64 +BuildRequires: expat 65 +%endif 66 +%if %{?fedora_version:1}0 67 +BuildRequires: expat-devel openldap2-devel 68 +%endif 69 +%if %{?mandriva_version:1}0 70 +BuildRequires: expat-devel libldap2.3_0-devel 71 +%endif 72 +# 73 +Url: http://apr.apache.org/ 74 +License: Other uncritical OpenSource License; The Apache Software License 75 +Group: Development/Libraries/Other 76 +AutoReqProv: on 77 +Version: 1.3.4 78 +Release: 1 79 +Summary: Apache Portable Runtime (APR) Library 80 +Source: http://www.apache.org/dist/apr/apr-util-%{version}.tar.bz2 81 +# 82 +BuildRoot: %{_tmppath}/%{name}-%{version}-build 83 +Obsoletes: libapr_memcache0 84 +# bug437293 85 +%ifarch ppc64 86 +Obsoletes: libapr-util1-64bit 87 +%endif 88 +%ifarch %ix86 ppc 89 +Obsoletes: libapr-util1-32bit 90 +%endif 91 +# 92 +%define apuver 1 93 +%define includedir %{_includedir}/apr-%{apuver} 94 + 95 +%description 96 +A companion library to APR, the Apache Portable Runtime. 97 + 98 + 99 + 100 +Authors: 101 +-------- 102 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 103 + 104 +%package devel 105 +License: Other uncritical OpenSource License; The Apache Software License 106 +Summary: Apache Portable Runtime (APR) Library 107 +Group: Development/Libraries/Other 108 +Requires: libapr-util1 = %{version} 109 +Requires: libapr1-devel 110 +# apu-config returns -lldap -lber -ldb_<dbversion> 111 +# until this is fixed the devel package should require those 112 +Requires: openldap2-devel db-devel 113 +%if 0%{?suse_version} > 1020 114 +Requires: libexpat-devel 115 +%endif 116 +AutoReqProv: on 117 +# bug437293 118 +%ifarch ppc64 119 +Obsoletes: libapr-util1-devel-64bit 120 +%endif 121 +%ifarch %ix86 ppc 122 +Obsoletes: libapr-util1-devel-32bit 123 +%endif 124 +# 125 + 126 +%description devel 127 +A companion library to APR, the Apache Portable Runtime. 128 + 129 + 130 + 131 +Authors: 132 +-------- 133 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 134 + 135 +%package dbd-mysql 136 +Summary: DBD driver for MySQL 137 +License: LGPL v2.1 or later 138 +Group: Development/Libraries/Other 139 +Requires: %{name} = %{version} 140 + 141 +%description dbd-mysql 142 +DBD driver for MySQL. 143 + 144 + 145 + 146 +Authors: 147 +-------- 148 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 149 + 150 +%package dbd-pgsql 151 +License: Other uncritical OpenSource License; The Apache Software License 152 +Summary: DBD driver for PostgreSQL 153 +Group: Development/Libraries/Other 154 +Requires: %{name} = %{version} 155 + 156 +%description dbd-pgsql 157 +DBD driver for PostgreSQL. 158 + 159 + 160 + 161 +Authors: 162 +-------- 163 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 164 + 165 +%package dbd-sqlite2 166 +License: Other uncritical OpenSource License; The Apache Software License 167 +Summary: DBD driver for SQLite 2 168 +Group: Development/Libraries/Other 169 +Requires: %{name} = %{version} 170 + 171 +%description dbd-sqlite2 172 +DBD driver for SQLite 2. 173 + 174 + 175 + 176 +Authors: 177 +-------- 178 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 179 + 180 +%package dbd-sqlite3 181 +License: Other uncritical OpenSource License; The Apache Software License 182 +Summary: DBD driver for SQLite 3 183 +Group: Development/Libraries/Other 184 +Requires: %{name} = %{version} 185 + 186 +%description dbd-sqlite3 187 +DBD driver for SQLite 3. 188 + 189 + 190 + 191 +Authors: 192 +-------- 193 + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE 194 + 195 +%prep 196 +%setup -q -n apr-util-%{version} 197 + 198 +%build 199 +export CFLAGS="$RPM_OPT_FLAGS" 200 +rm -rf aclocal.m4 autom4te*.cache 201 |