]> git.pld-linux.org Git - packages/apr.git/blobdiff - apr.spec
- tabs in preamble
[packages/apr.git] / apr.spec
index 73e3f9e26086df10a03eaa74600d991e69eb6137..067819cff504e41bf7992cbe06d1643f5b90ce71 100644 (file)
--- a/apr.spec
+++ b/apr.spec
@@ -1,24 +1,27 @@
 Summary:       Apache Portable Runtime
-Summary(pl):   Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
+Summary(pl.UTF-8):     Apache Portable Runtime - przenośna biblioteka uruchomieniowa
 Name:          apr
-Version:       1.1.1
-Release:       4
+Version:       1.2.8
+Release:       1
 Epoch:         1
 License:       Apache v2.0
 Group:         Libraries
-Source0:       http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
-# Source0-md5: e153fda2df2338250548448c7a6e3d59
+Source0:       http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
+# Source0-md5: c573f1b3046991a2624002398b078ad5
 Patch0:                %{name}-link.patch
 Patch1:                %{name}-metuxmpm.patch
-# EPOLL PATCH: TO BE DROPPED AFTER AC
-Patch2:                %{name}-no-epoll.patch
+Patch2:                %{name}-libtool.patch
 URL:           http://apr.apache.org/
 BuildRequires: autoconf >= 2.13
 BuildRequires: automake
 BuildRequires: libtool >= 1.3.3
 BuildRequires: libuuid-devel
-BuildRequires: perl-base
+BuildRequires: sed >= 4.0
 BuildRequires: python
+BuildRequires: uname(release) >= 2.6
+Requires:      uname(release) >= 2.6
+Conflicts:     kernel24
+Conflicts:     kernel24-smp
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _includedir     /usr/include/apr
@@ -34,40 +37,42 @@ 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
+%description -l pl.UTF-8
 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.
+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 development documentation for apr
-Summary(pl):   Pliki nag³ówkowe i dokumentacja programisty do apr
+Summary(pl.UTF-8):     Pliki nagłówkowe i dokumentacja programisty do apr
 Group:         Development/Libraries
 Requires:      %{name} = %{epoch}:%{version}-%{release}
 Requires:      libuuid-devel
+Requires:      automake
+Requires:      libtool
 
 %description devel
 Header files and development documentation for apr.
 
-%description devel -l pl
-Pliki nag³ówkowe i dokumentacja programisty do apr.
+%description devel -l pl.UTF-8
+Pliki nagłówkowe i dokumentacja programisty do apr.
 
 %package static
 Summary:       Static apr library
-Summary(pl):   Statyczna biblioteka apr
+Summary(pl.UTF-8):     Statyczna biblioteka apr
 Group:         Development/Libraries
 Requires:      %{name}-devel = %{epoch}:%{version}-%{release}
 
 %description static
 Static apr library.
 
-%description static -l pl
+%description static -l pl.UTF-8
 Statyczna biblioteka apr.
 
 %prep
@@ -76,21 +81,29 @@ Statyczna biblioteka apr.
 %patch1 -p1
 %patch2 -p1
 
+cat >> config.layout <<'EOF'
+<Layout PLD>
+sbindir:       %{_sbindir}
+libexecdir:    %{_libdir}/apr
+installbuilddir: ${datadir}/build-${APR_MAJOR_VERSION}
+localstatedir: /var/run
+runtimedir:    /var/run
+libsuffix:     -${APR_MAJOR_VERSION}
+</Layout PLD>
+EOF
+
 %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}
+       --enable-layout=PLD \
+%ifarch %{ix86} %{i8664}
 %ifnarch i386
        --enable-nonportable-atomics \
 %endif
 %endif
-       --enable-threads
+       --enable-threads \
+       --with-devrandom=/dev/urandom
 %{__make}
 
 %install
@@ -102,12 +115,17 @@ rm -rf $RPM_BUILD_ROOT
 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
 
 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
+install build/{*apr*.m4,*.awk,*.sh,gen-build.py} $RPM_BUILD_ROOT%{_datadir}/build
+ln -snf /usr/share/automake/config.{guess,sub} $RPM_BUILD_ROOT%{_datadir}/build
+ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
+ln -snf /usr/bin/libtool $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@' \
+sed -i -e 's@^\(APR_SOURCE_DIR=\).*@\1"%{_datadir}"@' \
+       $RPM_BUILD_ROOT%{_bindir}/apr-1-config
+sed -i -e 's@^\(apr_builddir\|apr_builders\)=.*@\1=%{_datadir}/build-1@' \
        $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
+sed -i -e '1s@#!.*python@#!%{__python}@' $RPM_BUILD_ROOT%{_datadir}/build/gen-build.py
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -135,6 +153,7 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_datadir}/build/config.*
 %attr(755,root,root) %{_datadir}/build/*.sh
 %attr(755,root,root) %{_datadir}/build/libtool
+%attr(755,root,root) %{_datadir}/build/gen-build.py
 %{_datadir}/build-1
 %{_pkgconfigdir}/apr-1.pc
 
This page took 0.038741 seconds and 4 git commands to generate.