Commits

Anonymous committed 4546b70

some distros (ie: Fedora 17 and older) have the old libav, so apply a patch to fix the build, also add support for "no-strict" patch so we can build on CentOS 5.x

  • Participants
  • Parent commits 82ba3d1

Comments (0)

Files changed (2)

File scripts/xpra.spec

 %define requires_sound %{nil}
 %define no_webp 1
 %define no_sound 1
+%define no_strict 1
 %define requires_extra , python-uuid, python-ctypes
 %define include_egg 0
 %if 0%{?static_video_libs}
 Patch4: use-static-x264lib.patch
 Patch5: use-static-vpxlib.patch
 Patch6: x264-limited-csc.patch
+Patch7: no-strict.patch
+Patch8: old-libav.patch
 
 
 %description
 %if 0%{?limited_csc}
 %patch6 -p1
 %endif
+%if 0%{?no_strict}
+%patch7 -p1
+%endif
+%if 0%{?old_libav}
+%patch8 -p1
+%endif
+
 
 %build
 cd parti-all-%{version}

File src/patches/no-strict.patch

+Description: Old versions of GCC will fail if strict is enabled.
+ Author: Antoine Martin <antoine@devloop.org.uk>
+ Forwarded: not-needed
+ 
+--- a/setup.py	(revision 2674)
++++ b/setup.py	(working copy)
+@@ -88,7 +88,7 @@
+ 
+ 
+ 
+-strict_ENABLED = True
++strict_ENABLED = False
+ 
+ 
+