%define major 0 %define libname %mklibname %{name} %{major} %define develname %mklibname %{name} -d Summary: A high-performance asynchronous HTTP client library Name: serf Version: 0.3.0 Release: %mkrel 2 License: Apache License Group: System/Libraries URL: http://code.google.com/p/serf/ Source0: http://serf.googlecode.com/files/%{name}-%{version}.tar.bz2 BuildRequires: apr-devel BuildRequires: apr-util-devel BuildRequires: autoconf2.5 BuildRequires: automake1.7 BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: zlib-devel BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot %description The serf library is a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the read/write communication asynchronously. Memory copies and transformations are kept to a minimum to provide high performance operation. %package -n %{libname} Summary: A high-performance asynchronous HTTP client library Group: System/Libraries %description -n %{libname} The serf library is a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the read/write communication asynchronously. Memory copies and transformations are kept to a minimum to provide high performance operation. %package -n %{develname} Summary: Development libraries and headers for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} Provides: %{name}-devel = %{version}-%{release} %description -n %{develname} The serf library is a C-based HTTP client library built upon the Apache Portable Runtime (APR) library. It multiplexes connections, running the read/write communication asynchronously. Memory copies and transformations are kept to a minimum to provide high performance operation. This package contains all of the development files that you will need in order to compile %{name} applications. %prep %setup -q # don't link against ldap libs perl -pi -e "s|apu_config --link-libtool --libs|apu_config --link-libtool --avoid-ldap --libs|g" configure* # lib64 fix perl -pi -e "s|/lib\b|/%{_lib}|g" configure* # no static builds perl -pi -e "s|-static||g" Makefile* %build %serverbuild export CFLAGS="$CFLAGS -fPIC" %configure2_5x %make %check make check %install rm -rf %{buildroot} %makeinstall_std %if %mdkversion < 200900 %post -n %{libname} -p /sbin/ldconfig %endif %if %mdkversion < 200900 %postun -n %{libname} -p /sbin/ldconfig %endif %clean rm -rf %{buildroot} %files -n %{libname} %defattr(-,root,root) %doc CHANGES LICENSE NOTICE README design-guide.txt %attr(0755,root,root) %{_libdir}/lib*.so.%{major}* %files -n %{develname} %defattr(-,root,root) %attr(0644,root,root) %{_includedir}/*.h %attr(0755,root,root) %{_libdir}/*.so %attr(0644,root,root) %{_libdir}/*.*a %changelog * Sat Jun 06 2009 Oden Eriksson <oeriksson@mandriva.com> 0.3.0-2mdv2010.0 + Revision: 383254 - rebuilt against new apr/apr-util libs * Sat Mar 21 2009 Oden Eriksson <oeriksson@mandriva.com> 0.3.0-1mdv2009.1 + Revision: 359994 - 0.3.0 * Mon Dec 15 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.0-4mdv2009.1 + Revision: 314525 - rebuilt to make it pickup the correct bdb in the libserf-0.la file... * Sun Nov 23 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.0-3mdv2009.1 + Revision: 305988 - more backport fixes * Fri Nov 21 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.0-2mdv2009.1 + Revision: 305515 - fix linkage * Wed Aug 06 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.0-1mdv2009.0 + Revision: 264250 - import serf * Wed Aug 06 2008 Oden Eriksson <oeriksson@mandriva.com> 0.2.0-1mdv2009.0 - initial Mandriva package