Search
j0ke.net Open Build Service
>
Projects
>
Apache
>
libapr1
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 6
[-]
[+]
Added
libapr1.spec
@@ -0,0 +1,343 @@ +# +# 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