Search
j0ke.net Open Build Service
>
Projects
>
Apache
>
libapr1
> libapr1.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File libapr1.spec of Package libapr1 (Revision 6)
Currently displaying revision
6
,
show latest
# # spec file for package libapr1 (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/ # Name: libapr1 %if %{?suse_version:1}0 BuildRequires: doxygen %endif Url: http://apr.apache.org/ License: Other uncritical OpenSource License; The Apache Software License Group: Development/Libraries/Other AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: libapr1-64bit %endif %ifarch %ix86 ppc Obsoletes: libapr1-32bit %endif # Version: 1.3.3 Release: 1 Summary: Apache Portable Runtime (APR) Library Source: http://www.apache.org/dist/apr/apr-%{version}.tar.bz2 Patch1: string-compare.diff Patch2: apr-1.2.8-pool-cleanups.patch Patch3: apr-1.3.0-testshm-apr_shm_remove.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %define aprver 1 %define installbuilddir %{_libdir}/apr-%{aprver}/build %define includedir %{_includedir}/apr-%{aprver} %description The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. The primary goal is to provide an API to which software developers may code and be assured of predictable if not identical behaviour regardless of the platform on which their software is built, relieving them of the need to code special-case conditions to work around or take advantage of platform-specific deficiencies or features. The APR is used by both Open Source and Commercial projects, prominent examples being the Apache HTTP server. 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: libapr1 = %{version} glibc-devel AutoReqProv: on # bug437293 %ifarch ppc64 Obsoletes: libapr1-devel-64bit %endif %ifarch %ix86 ppc Obsoletes: libapr1-devel-32bit %endif # %description devel The mission of the Apache Portable Runtime (APR) project is to create and maintain software libraries that provide a predictable and consistent interface to underlying platform-specific implementations. The primary goal is to provide an API to which software developers may code and be assured of predictable if not identical behaviour regardless of the platform on which their software is built, relieving them of the need to code special-case conditions to work around or take advantage of platform-specific deficiencies or features. The APR is used by both Open Source and Commercial projects, prominent examples being the Apache HTTP server. Authors: -------- Too many to list here -- see /usr/share/doc/packages/apache2/ABOUT_APACHE %prep %setup -n apr-%{version} %patch1 %if %{?build_with_memory_pool_debug:1}0 #patch2 -p1 %endif %patch3 -p1 # # workaround for ugly bug 400488 # Xen kernel on sles9 x86_64 is set up to behave different than all other kernels # skip sockets test on that platform ls -l /lib/modules/ ||: %if 0%{?sles_version} == 9 %ifarch x86_64 sed -i '/testsockets/ d' test/abts_tests.h #sed -i '/testatomic/ d' test/abts_tests.h %endif %endif # # this test fails on sles9-x86_64, not only in Xen though. # disable it for a moment to get packages for testing at least... %if 0%{?sles_version} == 9 %ifarch x86_64 sed -i '/testatomic/ d' test/abts_tests.h %endif %endif %build export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing -DLDAP_DEPRECATED -fPIC" # rm -rf aclocal.m4 autom4te*.cache autoheader autoconf # # --enable-pool-debug[=yes|no|verbose|verbose-alloc|lifetime|owner|all] %configure \ --with-installbuilddir=%{installbuilddir} \ --includedir=%{includedir} \ %if %{?build_with_memory_pool_debug:1}0 --enable-debug --enable-pool-debug=verbose \ %endif %ifarch %ix86 %ifnarch i386 --enable-nonportable-atomics=yes \ %endif %endif --with-devrandom=/dev/urandom \ --disable-static \ --with-pic %{__make} %{?jobs:-j%jobs} %if %{?suse_version:1}0 make dox %endif %install make install DESTDIR=$RPM_BUILD_ROOT %if %{?suse_version:1}0 # Move docs to more convenient location mv docs/dox/html html %endif # Unpackaged files: %{__rm} -f $RPM_BUILD_ROOT/%{_libdir}/apr.exp %{__rm} -f %{buildroot}%{_libdir}/libapr-%{aprver}.la %check %ifnarch %arm make check %endif %clean if ! test -f /.buildenv; then rm -rf $RPM_BUILD_ROOT fi %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(-,root,root) %doc CHANGES %doc LICENSE %doc NOTICE %{_libdir}/libapr-%{aprver}.so.* %files devel %defattr(-,root,root) %doc docs/APRDesign.html %doc docs/canonical_filenames.html %doc docs/incomplete_types %doc docs/non_apr_programs %if %{?suse_version:1}0 %doc --parents html %endif %doc emacs-mode %{includedir} %{_libdir}/libapr-%{aprver}.so %{_bindir}/apr-%{aprver}-config %{_libdir}/pkgconfig/apr-%{aprver}.pc %{_libdir}/apr-%{aprver} %changelog * Tue Apr 15 2008 schwab@suse.de - Don't use autoreconf. * Thu Apr 10 2008 ro@suse.de - added baselibs.conf file to build xxbit packages for multilib support * Tue Nov 27 2007 poeml@suse.de - update to 1.2.12 (only changes relevant on Linux listed here): *) 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] *) Fix --disable-ipv6 build on platforms with getifaddrs(). PR 39199. [Joe Orton] *) Define apr_ino_t in such a way that it doesn't change definition based on the library consumer's -D'efines to the filesystem. [Lucian Adrian Grijincu <lucian.grijincu gmail.com>] *) Fill in apr_fileinfo_t member st_csize on Netware and Unix (PR 41678), and refine the file times down to apr_time_t resolution if supported by a st_atimensec or st_atim.tv_nsec value by the OS. Additional msec implementations are possible if exposed through autoconf. [William Rowe, Nicklas Edmundsson <nikke acc.umu.se>] *) Fix apr_socket_recvfrom() to ensure the peer's port and address is returned through the "from" parameter on Unix and Win32. [Joe Orton, William Rowe] * Wed Sep 12 2007 poeml@suse.de - fix missing endif in build section, fixing build on Mandriva (went unnoticed on openSUSE) - use debug_package macro only on suse, because it breaks the build on Mandriva * Wed Sep 12 2007 poeml@suse.de - don't run autoreconf -fi on build platforms older than 10.3. The 'i' in that replaces config.guess, config.sub, ltmain.sh (dated 2007) with versions from, say, 2005. This will lead to a miscompile on SLE10 for instance (segfault in apr_initialize()) - don't apply the cleanup apr-1.2.8-pool-cleanups.patch when built with build_with_memory_pool_debug for now * Mon Sep 10 2007 poeml@suse.de - update to 1.2.11: *) Win32 apr_file_read; Correctly handle completion-based read-to-EOF. [Steven Naim <steven.naim googlemail.com>] *) Fixed Win32 regression of stdout inheritance in apr_proc_create. [William Rowe] *) Solve winNT inherited pipe leaks by mutexing apr_proc_create calls, on WinNT (not WinCE, nor 9x) so that we toggle the inherited state of the stdin/out/err pipes. All other file handles are treated as not-inherited until apr_file_dup2'ed a std handle of this process, or while they are used by apr_proc_create. [William Rowe] *) Define the Mac OS/X filesystem_encoding as utf-8 (in previous releases the interpretation would vary). [Erik Huelsmann <ehuels gmail.com>] *) Fix day of year (tm_day) calculation for July. The bug only affects Windows builds. PR 42953. [Davi Arnaut] *) Fix LFS detection when building over NFS. The mode must be specified when O_CREAT is in the flags to open(). PR 42821. [Rainer Jung <rainer.jung kippdata.de>] *) Avoid overwriting the hash_mutex table for applications that incorrectly calls apr_atomic_init(). PR 42760. [Davi Arnaut] *) Allow IPv6 connectivity test to fail, avoiding a potentially fatal error. [Davi Arnaut] *) The MinGW Windows headers effectively redefines WINADVAPI from __stdcall to empty which results in a link failure when wincrypt.h is placed after an include to apr_private.h. PR 42293. [Curt Arnold] *) Define SEM_FAILED if it isn't already defined, as the proc mutex code already does it. Also search for the sem_open function in the realtime library. (This fixes HP-UX sem_open detection). [Davi Arnaut] *) Define the _HPUX_SOURCE feature test macro to obtain maximum functionality. Fixes broken sendfile with LFS support on HP-UX. PR 42261. [Davi Arnaut] * Tue Aug 21 2007 crrodriguez@suse.de - first attempt to remove static libraries and libtool crap. * Mon Aug 20 2007 poeml@suse.de - on SLES9, use 'autoheader; autoconf' to configure, as before, instead of autoreconf -fi, which won't work * Mon Aug 13 2007 crrodriguez@suse.de - apr 1.2.9 *) Stop invoking the testshm* helpers upon 'make test' invocation. *) Register a cleanup only if APR_FILE_NOCLEANUP was not flagged in apr_file_mktemp. *) Discard file buffers when running cleanups for exec. PR 41119. *) If apr_proc_create() fails to exec in the fork()ed child, call _exit() not exit() to avoid running atexit()-registered functions in the child. *) Improve thread safety of assorted file_io functions. *) Fix file pointer position calculation in apr_file_writev() on buffered file. *) Fix formatting of unsigned integers larger than 2^63 in the vformatter/apr_*printf. *) Fix possible EFAULT failures in apr_socket_sendfile() on 32-bit Solaris with LFS enabled *) Fix deadlock in apr_file_gets() for a file opened with both the APR_BUFFERED and APR_XTHREAD flags. - run make ceck in the rpm check section - add missing glibc-devel dependency to -devel package * Wed Jul 18 2007 poeml@suse.de - if the rpm macro build_with_memory_pool_debug is defined, build with --enable-pool-debug=verbose-alloc. (This is the case in the Apache-Pool-Debug buildservice project.) - add apr-1.2.8-pool-cleanups.patch: don't run cleanup handlers _after_ destroying subpools - add debug_package macro in buildservice (will soon be obsolete) * Wed May 02 2007 dmueller@suse.de - Fix comparison with string literal * Mon Dec 11 2006 poeml@suse.de - update to 1.2.8 *) Correctly retrieve 'empty' environment values with apr_env_get on Win32 (e.g. "VAR="), and added validation to testall suite. *) APR_FIND_APR macro no longer checks /usr/local/apache2/. *) Portably check for EEXIST in mktemp code. PR 40818 *) Fix apr_snprintf/apr_vsnprintf return value to not count the NUL terminator in the overflow case. PR 39996. *) Fix detection of pthread cross-process robust mutexes. *) NetBSD: Avoid leaving zombie process when using apr_signal() to ignore SIGCHLD. *) Fix apr_socket_sendv() for platforms without writev. *) Avoid issues using >2Gb of data per call with sendfile() on 64-bit Linux platforms. * Fri Oct 27 2006 poeml@suse.de - replace wrong configure switch --with-includedir with the correct one: --includedir. This fixes installation of the header files to /usr/include/apr-1 instead of /usr/include. [#164770] * Thu Jun 22 2006 schwab@suse.de - Don't depend on configure args being preserved. * Wed May 24 2006 poeml@suse.de - update to 1.2.7 * fixes for netware and win32 - update to 1.2.6 * bugfixes for libuuid, mutex, kqueue, ... - use %%suse_version to build doxygen documentation only on SUSE * Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires * Mon Jan 09 2006 poeml@suse.de - don't use pthread_mutexattr_setrobust_np() unless pthread_mutexattr_setprotocol() is available as well (the former is in glibc since 2005-12-26, but the latter not) * Wed Oct 12 2005 poeml@suse.de - update to 1.2.2 * Thu Sep 29 2005 poeml@suse.de - update to 1.2.1 - add -fno-strict-aliasing to CFLAGS - add -DLDAP_DEPRECATED to CFLAGS * Fri Apr 08 2005 uli@suse.de - disabled test suite for ARM (may hang QEMU) * Thu Mar 24 2005 poeml@suse.de - update to 1.1.1 * Fri Feb 25 2005 poeml@suse.de - package created (1.1.0)