]> git.pld-linux.org Git - packages/apr-compat.git/blobdiff - apr-compat.spec
- updated to 1.1.1
[packages/apr-compat.git] / apr-compat.spec
index dabc2788e8ada18c97a594cb99714bffd520bfe8..a0cbf3fed884bc98b07f5cb58dd140fc16a747fc 100644 (file)
@@ -1,22 +1,23 @@
 Summary:       Apache Portable Runtime
 Summary(pl):   Apache Portable Runtime - przeno¶na biblioteka uruchomieniowa
 Name:          apr
-Version:       1.0.0
-Release:       0.1
+Version:       1.1.1
+Release:       1
 Epoch:         1
 License:       Apache v2.0
 Group:         Libraries
 Source0:       http://www.apache.org/dist/apr/%{name}-%{version}.tar.gz
-# Source0-md5: ccd5c21292581be4ba9db10ad5cc8ced
-#Patch0:               %{name}-0.9.4_0.9.5.patch.gz
-#Patch1:               %{name}-link.patch
-Patch2:                %{name}-metuxmpm.patch
-#Patch3:               %{name}-modes.patch     -- obsolete
+# 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: perl-base
+BuildRequires: python
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %define                _includedir     /usr/include/apr
@@ -69,14 +70,20 @@ Statyczna biblioteka apr.
 
 %prep
 %setup -q
-#patch0 -p1
-#patch1 -p1
+%patch0 -p1
+%patch1 -p1
 %patch2 -p1
 
 %build
 install /usr/share/automake/config.* build
 ./buildconf
 %configure \
+       --with-devrandom=/dev/urandom \
+%ifarch %{ix86}
+%ifnarch i386
+       --enable-nonportable-atomics \
+%endif
+%endif
        --enable-threads
 %{__make}
 
@@ -88,12 +95,13 @@ rm -rf $RPM_BUILD_ROOT
 
 ln -sf %{_bindir}/libtool $RPM_BUILD_ROOT%{_datadir}/libtool
 
-install build/{*apr*.m4,*.awk,*.sh,config.*} $RPM_BUILD_ROOT%{_datadir}/build-1
-ln -sf build-1 $RPM_BUILD_ROOT%{_datadir}/build
+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-1/apr_rules.mk
+       $RPM_BUILD_ROOT%{_datadir}/build/apr_rules.mk
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -114,13 +122,14 @@ rm -rf $RPM_BUILD_ROOT
 %{_libdir}/apr.exp
 %{_includedir}
 %dir %{_datadir}
-%dir %{_datadir}/build-1
-%{_datadir}/build-1/*.mk
-%{_datadir}/build-1/*.m4
-%{_datadir}/build-1/*.awk
-%attr(755,root,root) %{_datadir}/build-1/config.*
-%attr(755,root,root) %{_datadir}/build-1/*.sh
-%attr(755,root,root) %{_datadir}/build-1/libtool
+%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
This page took 0.037842 seconds and 4 git commands to generate.