diff --git a/0001-config-support-System-z.patch b/0001-config-support-System-z.patch new file mode 100644 index 0000000..051d1b1 --- /dev/null +++ b/0001-config-support-System-z.patch @@ -0,0 +1,25 @@ +From 0e8ebbe59093e01323251aa554826a675ccc9791 Mon Sep 17 00:00:00 2001 +From: Wim Taymans +Date: Thu, 1 Sep 2016 14:13:40 +0200 +Subject: [PATCH] config: support System z + +--- + gst/gstconfig.h.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gst/gstconfig.h.in b/gst/gstconfig.h.in +index 1a96e98..07c9114 100644 +--- a/gst/gstconfig.h.in ++++ b/gst/gstconfig.h.in +@@ -106,7 +106,7 @@ + */ + #if defined(__alpha__) || defined(__arm__) || defined(__aarch64__) || defined(__bfin) || defined(__hppa__) || defined(__mips__) || defined(__sh__) || defined(__sparc__) || defined(__sparc) || defined(__ia64__) || defined(_M_ALPHA) || defined(_M_ARM) || defined(_M_IA64) + # define GST_HAVE_UNALIGNED_ACCESS 0 +-#elif defined(__i386__) || defined(__i386) || defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) ++#elif defined(__i386__) || defined(__i386) || defined(__amd64__) || defined(__amd64) || defined(__x86_64__) || defined(__ppc__) || defined(__ppc64__) || defined(__m68k__) || defined(_M_IX86) || defined(_M_AMD64) || defined(_M_X64) || defined(__s390__) || defined(__zarch__) + # define GST_HAVE_UNALIGNED_ACCESS 1 + #else + # error "Could not detect architecture; don't know whether it supports unaligned access! Please file a bug." +-- +2.7.4 + diff --git a/gstreamer1.spec b/gstreamer1.spec index 6928905..b6bcc74 100644 --- a/gstreamer1.spec +++ b/gstreamer1.spec @@ -10,7 +10,7 @@ Name: gstreamer1 Version: 1.9.2 -Release: 1%{?gitcommit:.git%{shortcommit}}%{?dist} +Release: 2%{?gitcommit:.git%{shortcommit}}%{?dist} Summary: GStreamer streaming media framework runtime License: LGPLv2+ @@ -24,6 +24,7 @@ Source0: http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-%{versi %endif ## For GStreamer RPM provides Patch0: gstreamer-inspect-rpm-format.patch +Patch1: 0001-config-support-System-z.patch Source1: gstreamer1.prov Source2: gstreamer1.attr @@ -92,6 +93,7 @@ GStreamer streaming media framework. %prep %setup -q -n gstreamer-%{version} %patch0 -p1 -b .rpm-provides +%patch1 -p1 -b .patch1 %build @@ -214,6 +216,9 @@ install -m0644 -D %{SOURCE2} $RPM_BUILD_ROOT%{_rpmconfigdir}/fileattrs/gstreamer %changelog +* Thu Sep 01 2016 Wim Taymans - 1.9.2-2 +- fix build on s390x + * Thu Sep 01 2016 Wim Taymans - 1.9.2-1 - Update to 1.9.2 - gstconfig.h was moved to normal include dir