]> git.pld-linux.org Git - packages/apr-compat.git/blobdiff - apr-compat.spec
- rel 6; make sure 2.6.23+ is used (for new *CLOEXEC api support)
[packages/apr-compat.git] / apr-compat.spec
index 663afca99fa65e90e6501d1fd6fbcae0a21c9962..a63d41f3902897b97236afca544e505f3f44fdb8 100644 (file)
@@ -1,35 +1,36 @@
-#
-# Conditional build (Linux 2.4 compat, switch after Ac):
-%bcond_with    epoll           # use epoll() syscall (requires Linux 2.6)
-%bcond_with    sendfile64      # use sendfile64 on even if it requires Linux 2.6
-%bcond_with    tcpnodelaycork  # use TCP_NODELAY|TCP_CORK flags (requires Linux 2.6)
-#
-# Linux 2.4.32 supports sendfile64 only on i386 and mips (only 32-bit archs matter)
-%ifnarch ppc sparc sparc64
-%define                with_sendfile64         1
-%endif
 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.2.2
-Release:       4
+Version:       1.3.3
+Release:       6
 Epoch:         1
 License:       Apache v2.0
 Group:         Libraries
 Source0:       http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
-# Source0-md5: c43d923b02cf1983106d694976be89c1
+# Source0-md5: 2090c21dee4f0eb1512604127dcd158f
 Patch0:                %{name}-link.patch
 Patch1:                %{name}-metuxmpm.patch
-Patch2:                %{name}-no-epoll.patch
-Patch3:                %{name}-libtool.patch
-Patch4:                %{name}-branch.patch
+Patch2:                %{name}-libtool.patch
+Patch3:                %{name}-bug-46425.patch
 URL:           http://apr.apache.org/
-BuildRequires: autoconf >= 2.13
+BuildRequires: autoconf >= 2.50
 BuildRequires: automake
-BuildRequires: libtool >= 1.3.3
+%if "%{pld_release}" != "ac"
+BuildRequires: libtool >= 2:2.2
+%else
+BuildRequires: libtool
+%endif
 BuildRequires: libuuid-devel
-BuildRequires: sed >= 4.0
 BuildRequires: python
+BuildRequires: rpm >= 4.4.9-56
+BuildRequires: rpm-pythonprov
+BuildRequires: sed >= 4.0
+%if "%{pld_release}" != "ac"
+BuildRequires: uname(release) >= 2.6.23
+Requires:      uname(release) >= 2.6.23
+%endif
+Conflicts:     kernel24
+Conflicts:     kernel24-smp
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _includedir     /usr/include/apr
@@ -45,65 +46,80 @@ 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
+%if "%{pld_release}" != "ac"
+Requires:      libtool >= 2:2.2
+%else
 Requires:      libtool
+%endif
+Requires:      libuuid-devel
+Requires:      python-modules
 
 %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
 %setup -q
 %patch0 -p1
 %patch1 -p1
-%{!?with_epoll:%patch2 -p1}
-%patch3 -p1
-%patch4 -p0
+%patch2 -p1
+%patch3 -p0
+
+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>
+EOF
 
 %build
 install /usr/share/automake/config.* build
-./buildconf
+%{__autoconf}
+
 %configure \
-       %{!?with_tcpnodelaycork:apr_cv_tcp_nodelay_with_cork=no} \
-       %{!?with_sendfile64:ac_cv_func_sendfile64=no} \
-       --with-devrandom=/dev/urandom \
-%ifarch %{ix86} %{i8664}
+       --enable-layout=PLD \
+%ifarch %{ix86} %{x8664}
 %ifnarch i386
        --enable-nonportable-atomics \
 %endif
 %endif
-       --enable-threads
+       --enable-threads \
+       --with-devrandom=/dev/urandom
 %{__make}
 
 %install
@@ -112,12 +128,14 @@ rm -rf $RPM_BUILD_ROOT
 %{__make} install \
        DESTDIR=$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,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
+if [ -f /usr/share/libtool/config/ltmain.sh ]; then
+       ln -snf /usr/share/libtool/config/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
+else
+       ln -snf /usr/share/libtool/ltmain.sh $RPM_BUILD_ROOT%{_datadir}/build
+fi
 ln -snf /usr/bin/libtool $RPM_BUILD_ROOT%{_datadir}/build
 ln -sf build $RPM_BUILD_ROOT%{_datadir}/build-1
 
@@ -136,13 +154,14 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc CHANGES docs/*.html
-%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%attr(755,root,root) %{_libdir}/libapr-1.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libapr-1.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%attr(755,root,root) %{_libdir}/lib*.so
-%{_libdir}/lib*.la
+%attr(755,root,root) %{_bindir}/apr-1-config
+%attr(755,root,root) %{_libdir}/libapr-1.so
+%{_libdir}/libapr-1.la
 %{_libdir}/apr.exp
 %{_includedir}
 %dir %{_datadir}
@@ -159,4 +178,4 @@ rm -rf $RPM_BUILD_ROOT
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/lib*.a
+%{_libdir}/libapr-1.a
This page took 0.041862 seconds and 4 git commands to generate.