Search
j0ke.net Open Build Service
>
Projects
>
Apache
>
libapr-util1
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Added
libapr-util1.spec
@@ -0,0 +1,449 @@ +# +# spec file for package libapr-util1 (Version 1.2.12) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: libapr-util1 +%define with_sqlite2 0 +%define with_sqlite3 0 +%define with_mysql 0 +%if 0%{?suse_version} > 910 +# see previous versions of this package for a workaround how to build the mysql driver on SLES9. +%define with_mysql 1 +%endif +%define with_pgsql 0 +%if 0%{?suse_version} >= 910 + %define with_sqlite2 1 + %define with_pgsql 1 +%endif +%if 0%{?suse_version} >= 930 + %define with_sqlite2 0 + %define with_sqlite3 1 +%endif +# +%define dso_libdir %{_libdir}/apr-util-1 +# +BuildRequires: db-devel libapr1-devel +# +# +# database backends +# +%if %{with_mysql} +BuildRequires: mysql-devel +%endif +# +%if %{with_sqlite2} +BuildRequires: sqlite-devel +%endif +%if %{with_sqlite3} +BuildRequires: sqlite-devel +%endif +# +%if %{with_pgsql} +BuildRequires: postgresql-devel +%endif +# +# +# distro specific buildrequires +# +%if %{?suse_version:1}0 +BuildRequires: doxygen openldap2-devel +%endif +%if 0%{?suse_version} > 1020 +BuildRequires: libexpat-devel +%else +BuildRequires: expat +%endif +%if %{?fedora_version:1}0 +BuildRequires: expat-devel openldap2-devel +%endif +%if %{?mandriva_version:1}0 +BuildRequires: expat-devel libldap2.3_0-devel +%endif +# +Url: http://apr.apache.org/ +License: Other uncritical OpenSource License; The Apache Software License +Group: Development/Libraries/Other +AutoReqProv: on +Version: 1.3.4 +Release: 1 +Summary: Apache Portable Runtime (APR) Library +Source: http://www.apache.org/dist/apr/apr-util-%{version}.tar.bz2 +# +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Obsoletes: libapr_memcache0 +# bug437293 +%ifarch ppc64 +Obsoletes: libapr-util1-64bit +%endif +%ifarch %ix86 ppc +Obsoletes: libapr-util1-32bit +%endif +# +%define apuver 1 +%define includedir %{_includedir}/apr-%{apuver} + +%description +A companion library to APR, the Apache Portable Runtime. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%package devel +License: Other uncritical OpenSource License; The Apache Software License +Summary: Apache Portable Runtime (APR) Library +Group: Development/Libraries/Other +Requires: libapr-util1 = %{version} +Requires: libapr1-devel +# apu-config returns -lldap -lber -ldb_<dbversion> +# until this is fixed the devel package should require those +Requires: openldap2-devel db-devel +%if 0%{?suse_version} > 1020 +Requires: libexpat-devel +%endif +AutoReqProv: on +# bug437293 +%ifarch ppc64 +Obsoletes: libapr-util1-devel-64bit +%endif +%ifarch %ix86 ppc +Obsoletes: libapr-util1-devel-32bit +%endif +# + +%description devel +A companion library to APR, the Apache Portable Runtime. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%package dbd-mysql +Summary: DBD driver for MySQL +License: LGPL v2.1 or later +Group: Development/Libraries/Other +Requires: %{name} = %{version} + +%description dbd-mysql +DBD driver for MySQL. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%package dbd-pgsql +License: Other uncritical OpenSource License; The Apache Software License +Summary: DBD driver for PostgreSQL +Group: Development/Libraries/Other +Requires: %{name} = %{version} + +%description dbd-pgsql +DBD driver for PostgreSQL. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%package dbd-sqlite2 +License: Other uncritical OpenSource License; The Apache Software License +Summary: DBD driver for SQLite 2 +Group: Development/Libraries/Other +Requires: %{name} = %{version} + +%description dbd-sqlite2 +DBD driver for SQLite 2. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%package dbd-sqlite3 +License: Other uncritical OpenSource License; The Apache Software License +Summary: DBD driver for SQLite 3 +Group: Development/Libraries/Other +Requires: %{name} = %{version} + +%description dbd-sqlite3 +DBD driver for SQLite 3. + + + +Authors: +-------- + Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE + +%prep +%setup -q -n apr-util-%{version} + +%build +export CFLAGS="$RPM_OPT_FLAGS" +rm -rf aclocal.m4 autom4te*.cache