[packages/python3/AC-branch: 1/2] removed bundled zlib, libffi, openssl to make sure we use system one
glen
glen at pld-linux.org
Sat Jul 28 09:52:30 CEST 2012
commit f4282245befc91346f2bf6fac0fb418bef04fbc4
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Sat Jul 28 10:52:01 2012 +0300
removed bundled zlib, libffi, openssl to make sure we use system one
python3.spec | 14 ++++++++++++++
1 file changed, 14 insertions(+)
---
diff --git a/python3.spec b/python3.spec
index 0a7587a..9596987 100644
--- a/python3.spec
+++ b/python3.spec
@@ -450,6 +450,20 @@ Przykłady te są dla Pythona 2.3.4, nie %{version}.
%patch5 -p1
%patch6 -p1
+%{__rm} -r Modules/zlib
+
+for SUBDIR in darwin libffi libffi_arm_wince libffi_msvc libffi_osx; do
+ %{__rm} -r Modules/_ctypes/$SUBDIR
+done
+
+files="md5module.c sha1module.c"
+%if !0%(pkg-config openssl --atleast-version=0.9.8; echo $?)
+files="$files sha256module.c sha512module.c"
+%endif
+for f in $files; do
+ %{__rm} Modules/$f
+done
+
%build
if ! grep -q "tmpfs" /proc/self/mounts; then
echo "You need to have /dev/shm mounted in order to build this package!" >&2
More information about the pld-cvs-commit
mailing list