]> git.pld-linux.org Git - packages/apr.git/blobdiff - apr.spec
- rel 4
[packages/apr.git] / apr.spec
index 13fcdc63fabe388558586e3f157d7fb4d0631315..73e3f9e26086df10a03eaa74600d991e69eb6137 100644 (file)
--- a/apr.spec
+++ b/apr.spec
@@ -1,13 +1,24 @@
 Summary:       Apache Portable Runtime
+Summary(pl):   Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
 Name:          apr
-Version:       0.9.3
-Release:       1
+Version:       1.1.1
+Release:       4
 Epoch:         1
-License:       GPL
+License:       Apache v2.0
 Group:         Libraries
 Source0:       http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
-# Source0-md5: 03b243de20ffcf4f30565bc4771489a6
+# Source0-md5: e153fda2df2338250548448c7a6e3d59
+Patch0:                %{name}-link.patch
+Patch1:                %{name}-metuxmpm.patch
+# EPOLL PATCH: TO BE DROPPED AFTER AC
+Patch2:                %{name}-no-epoll.patch
 URL:           http://apr.apache.org/
+BuildRequires: autoconf >= 2.13
+BuildRequires: automake
+BuildRequires: libtool >= 1.3.3
+BuildRequires: libuuid-devel
+BuildRequires: perl-base
+BuildRequires: python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _includedir     /usr/include/apr
@@ -23,37 +34,62 @@ 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.
 
+%description -l pl
+Celem projektu APR (Apache Portable Runtime) jest stworzenie i
+utrzymywanie bibliotek dostarczaj±cych przewidywalnego i spójnego
+interfejsu do le¿±cych u podstaw implementacji zale¿nych od platformy.
+G³ównym celem jest dostarczenie API, którego mog± u¿ywaæ programi¶ci
+maj±c pewno¶æ, ¿e zachowuje siê w sposób przewidywalny, je¶li nie
+identyczny, niezale¿nie od platformy na jakiej oprogramowanie jest
+budowane oraz bez potrzeby kodowania specjalnych warunków do
+obchodzenia lub wykorzystywania specyficznych dla platform ró¿nic lub
+mo¿liwo¶ci.
+
 %package devel
-Summary:       Header files and develpment documentation for apr
+Summary:       Header files and development documentation for apr
+Summary(pl):   Pliki nag³ówkowe i dokumentacja programisty do apr
 Group:         Development/Libraries
-Requires:      %{name} = %{epoch}:%{version}
-Requires:      libtool
+Requires:      %{name} = %{epoch}:%{version}-%{release}
+Requires:      libuuid-devel
 
 %description devel
-Libpcap provides a portable framework for low-level network
-monitoring. Libpcap can provide network statistics collection,
-security monitoring and network debugging. Since almost every system
-vendor provides a different interface for packet capture, the apr
-authors created this system-independent API to ease in porting and to
-alleviate the need for several system-dependent packet capture modules
-in each application.
+Header files and development documentation for apr.
 
-Install apr if you need to do low-level network traffic monitoring on
-your network.
+%description devel -l pl
+Pliki nag³ówkowe i dokumentacja programisty do apr.
 
 %package static
 Summary:       Static apr library
+Summary(pl):   Statyczna biblioteka apr
 Group:         Development/Libraries
-Requires:      %{name}-devel = %{epoch}:%{version}
+Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static apr library.
 
+%description static -l pl
+Statyczna biblioteka apr.
+
 %prep
-%setup  -q
+%setup -q
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
 
 %build
+install /usr/share/automake/config.* build
+./buildconf
+# 2.4/2.6 kernels on sparc32 do not support sendfile64
 %configure \
+%ifarch sparc
+       ac_cv_func_sendfile64=no \
+%endif
+       --with-devrandom=/dev/urandom \
+%ifarch %{ix86}
+%ifnarch i386
+       --enable-nonportable-atomics \
+%endif
+%endif
        --enable-threads
 %{__make}
 
@@ -65,15 +101,23 @@ rm -rf $RPM_BUILD_ROOT
 
 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
 
-%post   -p /sbin/ldconfig
-%postun -p /sbin/ldconfig
+mv -f $RPM_BUILD_ROOT%{_datadir}/build-1 $RPM_BUILD_ROOT%{_datadir}/build
+install build/{*apr*.m4,*.awk,*.sh,config.*} $RPM_BUILD_ROOT%{_datadir}/build
+ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
+
+%{__perl} -pi -e 's@^(APR_SOURCE_DIR=).*@$1"%{_datadir}"@' $RPM_BUILD_ROOT%{_bindir}/apr-config
+%{__perl} -pi -e 's@^(apr_builddir|apr_builders)=.*@$1=%{_datadir}/build-1@' \
+       $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
+
 %files
 %defattr(644,root,root,755)
-%doc CHANGES STATUS docs/*.html
+%doc CHANGES docs/*.html
 %attr(755,root,root) %{_libdir}/lib*.so.*.*
 
 %files devel
@@ -86,7 +130,13 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}
 %dir %{_datadir}/build
 %{_datadir}/build/*.mk
+%{_datadir}/build/*.m4
+%{_datadir}/build/*.awk
+%attr(755,root,root) %{_datadir}/build/config.*
+%attr(755,root,root) %{_datadir}/build/*.sh
 %attr(755,root,root) %{_datadir}/build/libtool
+%{_datadir}/build-1
+%{_pkgconfigdir}/apr-1.pc
 
 %files static
 %defattr(644,root,root,755)
This page took 0.067745 seconds and 4 git commands to generate.