]> git.pld-linux.org Git - packages/python3.git/commitdiff
removed bundled zlib, libffi, openssl to make sure we use system one
authorElan Ruusamäe <glen@delfi.ee>
Sat, 28 Jul 2012 07:52:01 +0000 (10:52 +0300)
committerElan Ruusamäe <glen@delfi.ee>
Sat, 28 Jul 2012 07:52:01 +0000 (10:52 +0300)
python3.spec

index 0a7587a4a3570cdbb855be0415e79ca46b62d220..95969872fe3d65131fef487226bf36bcd5a4d20d 100644 (file)
@@ -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
This page took 0.188299 seconds and 4 git commands to generate.