Search
j0ke.net Open Build Service
>
Projects
>
Apache
>
libapr-util1
> libapr-util1.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libapr-util1.spec of Package libapr-util1 (Revision 5)
Currently displaying revision
5
,
show latest
# # spec file for package libapr-util1 (Version 1.3.10) # # 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.10 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 autoheader --force autoconf --force %{__sed} -i -e '/OBJECTS_all/s, dbd/apr_dbd_[^ ]*\.lo,,g' build-outputs.mk export CPPFLAGS='-I /usr/include/pgsql' # all DBD driveres are built by default, nowadays -- except mysql. %configure \ --includedir=%{includedir} \ --with-apr=/usr/bin/apr-1-config \ --with-expat=/usr \ --with-ldap \ --with-berkeley-db \ %if %{with_mysql} --with-mysql \ %endif --without-gdbm \ --disable-static \ --with-pic # make %{?jobs:-j%jobs} CPPFLAGS='-I /usr/include/pgsql' # %if %{?suse_version:1}0 make dox %endif %install make install DESTDIR=$RPM_BUILD_ROOT %if %{?suse_version:1}0 mv docs/dox/html html %endif # multiacrh anti-borker perl -pi -e "s|^LDFLAGS=.*|LDFLAGS=\"\"|g" %{buildroot}%{_bindir}/apu-%{apuver}-config # includes anti-borker perl -pi -e "s|-I%{_includedir}/mysql||g" %{buildroot}%{_bindir}/apu-%{apuver}-config # unpackaged files rm -f $RPM_BUILD_ROOT/%{_libdir}/aprutil.exp # don't package these static libraries for now rm -f $RPM_BUILD_ROOT/%{dso_libdir}/apr_dbd_*.a rm -f $RPM_BUILD_ROOT/%{dso_libdir}/apr_ldap_*.a rm -f $RPM_BUILD_ROOT%{_libdir}/libaprutil-%{apuver}.a %check %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc CHANGES %doc LICENSE %doc NOTICE %{_libdir}/libaprutil-%{apuver}.so.* %dir %{dso_libdir} %attr(755,root,root) %{dso_libdir}/apr_ldap* %if %{with_mysql} %files dbd-mysql %defattr(-,root,root,-) %attr(755,root,root) %{dso_libdir}/apr_dbd_mysql* %endif %if %{with_pgsql} %files dbd-pgsql %defattr(-,root,root,-) %attr(755,root,root) %{dso_libdir}/apr_dbd_pgsql* %endif %if %{with_sqlite2} %files dbd-sqlite2 %defattr(-,root,root,-) %attr(755,root,root) %{dso_libdir}/apr_dbd_sqlite2* %endif %if %{with_sqlite3} %files dbd-sqlite3 %defattr(-,root,root,-) %attr(755,root,root) %{dso_libdir}/apr_dbd_sqlite3* %endif %files devel %defattr(-,root,root) %if %{?suse_version:1}0 %doc --parents html %endif %dir %{includedir} %{includedir}/*.h %{_libdir}/libaprutil-%{apuver}.so %{_bindir}/apu-%{apuver}-config %{_libdir}/pkgconfig/apr-util-%{apuver}.pc %exclude %{_libdir}/*.la %changelog * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support * Wed Jan 23 2008 poeml@suse.de - fix DSO build so it doesn't incur linkage to the database libs, which happened since the 1.2.12, and which I hadn't time to fix yet. Patches from PLD and Oden Eriksson (Mandrake) very much appreciated. +Patch10: apr-util-1.2.12-no_linkage.patch +Patch11: apr-util-1.2.12-dso.patch +Patch12: apr-util-1.2.12-link.patch - another patch was rebased and renamed: -Patch: apr-util-1.2.7.diff +Patch: apr-util-1.2.12-ac_configure_args.patch - build DSOs manually (by changing build-outputs.mk to not make dbd/apr_dbd_[^ ]*\.lo. Thereby avoiding database symbols in the resulting libaprutil-1 shared object - fix up apu-1-config LDFLAGS and INCLUDES in the end - update the run of testcases - remove openldap2 from BuildRequires, because that part is the server component which is never needed for building. - added requires for openldap2-devel db-devel to the devel package as apu-1-config returns the libs (change from Factory) * Tue Nov 27 2007 poeml@suse.de - update to 1.2.12: *) Wakeup threads waiting for a reslist resource after a resource was invalidated. [Ruediger Pluem] *) Fix GMT offset for several date formats and add a new format. [Maxime Petazzoni <maxime.petazzoni bulix.org>] *) Numerous fixes to the test/ framework, including better handling of long size_t comparisons and more consistent Makefile.(in|win) setup for authoring new tests. [William Rowe] *) Win32 build fixes including a Makefile.win scheme, fixes for 64P model x86_64 compiles and VC8 builds. [William Rowe] *) Type mismatch between apr_datum_t and GDBM's datum type could yield a corrupt apr_datum_t when reading from a GDBM database. PR 43025. [Björn Wiberg <Bjorn.Wiberg its.uu.se>, Davi Arnaut] *) Add the #define APR_LDAP_SIZELIMIT that is set appropriately for the LDAP SDK that is being used. Also include ZOS as an LDAP Platform. PR 37814. [David Jones <oscaremma gmail com>, Davi Arnaut] *) Fix exported LDFLAGS with new expat detection. PR 43337. [Justin Erenkrantz] *) Add MySQL DBD driver [Nick Kew, Bojan Smojver] - drop source file apr_dbd_mysql.c, which was distributed separately until now. Functional changes to the previous version are: * added mysql_thread_init() (see http://www.nabble.com/-PATCH--apr_dbd_mysql.c-t4314862.html) * allow groups=xyz in the DBDParams setting - drop apr-util-1.2.8-dso.patch, apr-util-1.2.12-dbd.patch, apr-util-1.2.8_dbd_mysql_buildconf.patch - adjust apr-util-1.2.8-dbd.patch - fix empty rpm macro "helpdir", which lead to an error * Wed Sep 12 2007 poeml@suse.de - use debug_package macro only on suse, because it breaks the build on Mandriva * Mon Sep 10 2007 poeml@suse.de - update to 1.2.10: *) Support BerkeleyDB 4.6. [Arfrever Frehtes Taifersar Arahesis] *) Test improvements to validate testmd4 and testdbm, unattended. [Bojan Smojver] *) Ensure that an apr_reslist shrinks back to SMAX via the TTL by reorganising the resource list from a queue to a stack. PR 40348. [Christian BOITEL <christian_boitel yahoo.fr>] *) Fix Solaris 2.8+ fdatasync() detection. The fdatasync() function is marked as part of the Realtime library functions. PR 37343. [Davi Arnaut] *) Change configure's expat detection to use standard linker-based tests, fixing build on e.g. biarch Linux systems. PR 28205. [Joe Orton, Ruediger Pluem] *) Portably implement testdate's long-time constants to solve compilation faults where #LL isn't valid. [Curt Arnold] *) APR_FIND_APU macro no longer checks /usr/local/apache2/. PR 42089. [Colm MacCárthaigh] *) Fix handling of attribute namespaces in apr_xml_to_text() when a namespace map is provided. PR 41908. [Joe Orton] - update apr_dbd_mysql.c to r54 - Rework for unified parsing of prepared statements - Add binary argument functions - Update Licensing http://bahumbug.wordpress.com/2007/01/09/re-licensing-apr_dbd_mysql/ * Mon Aug 27 2007 poeml@suse.de - add apr-util-1.2.8-r521327.patch: dbd/apr_dbd.c (apr_dbd_get_driver): Ensure driver DSOs have the same lifetime as the hash table. Backport from trunk (r521327) * Tue Aug 21 2007 crrodriguez@suse.de - first attempt to remove static libraries and libtool crap * Wed Jul 18 2007 poeml@suse.de - fixed wrong rpm tag (Buildrequires -> Requires libexpat-devel) * Wed Jul 18 2007 poeml@suse.de - make last fix buildservice compatible - add debug_package macro in buildservice (will soon be obsolete) * Sat Apr 28 2007 aj@suse.de - Add libexpat-devel to build requires. * Wed Dec 20 2006 poeml@suse.de - fix sqlite plugin building for sqlite2, it wasn't linked against the lib - work around mysql plugin build on SLES9 with a kludge (libmysqlclient_r was missing the .so link at SLES9 time * Thu Dec 14 2006 poeml@suse.de - DSO-ify the build of dbd backends * Thu Dec 14 2006 poeml@suse.de - add sqlite and pgsql support, and rpm-macroize it * Wed Dec 13 2006 mrueckert@suse.de - added apr-util-1.2.8_dbd_mysql_buildconf.patch and http://apache.webthing.com/svn/apache/apr/apr_dbd_mysql.c: the patch and the additional .c file add mysql support to apr-dbd * Mon Dec 11 2006 poeml@suse.de - update to 1.2.8 *) Add support for Berkeley DB 4.5 to the configure scripts. *) Allow apr_queue.h to be included before other APR headers. *) Implement prepared statement support in SQLite3 DBD driver *) Fix to ensure that "deprecated" LDAP interfaces are still exposed if using OpenLDAP 2.3. *) Fix incorrect byte order and incorrect timestamp type in the fallback UUID generator used when no external UUID generator is detected by APR. * Sat Oct 21 2006 olh@suse.de - libexpat.la was removed, look for libexpat.a also in lib64 (214240) build parallel * Mon Sep 18 2006 poeml@suse.de - fix Buildrequires on FC and Mandriva * Thu Jun 22 2006 schwab@suse.de - Don't depend on configure args being preserved. * Tue May 30 2006 poeml@suse.de - fix BuildRequires for Fedora Core - ditch krb5 from BuildRequires, since it doesn't seem to be needed - use --with-berkeley-db * Tue Apr 25 2006 poeml@suse.de - upstream 1.2.7. relevant changes: *) Fix apr_dbd_init to be safe to call multiple times *) Stop trying to link against Berkeley DB by default. (use --with-berkeley-db) *) Stop trying to link against GDBM by default. (use --with-gdbm) *) Fix the escape implementations for the sqlite2 and sqlite3 dbd back ends. *) Add support for Berkeley DB 4.4 to the configure scripts. * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Wed Oct 12 2005 poeml@suse.de - update to 1.2.2 * Thu Sep 29 2005 poeml@suse.de - update to 1.2.1 - remove -DLDAP_DEPRECATED: all CFLAGS are derived from apr-config * Mon Sep 26 2005 ro@suse.de - added LDAP_DEPRECATED to CFLAGS * Thu Mar 24 2005 poeml@suse.de - update to 1.1.2 * Fri Feb 25 2005 poeml@suse.de - package created (1.1.0)