From 314356f4a212ad28e3516d399f974fb9dd17f79df05a7fe2de2dbf5c729946d4 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Wed, 22 Oct 2008 16:46:13 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rsibreak?expand=0&rev=4 --- no-mmx.diff | 22 ++++++++++++++++++++++ rsibreak.changes | 5 +++++ rsibreak.spec | 8 +++++++- 3 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 no-mmx.diff diff --git a/no-mmx.diff b/no-mmx.diff new file mode 100644 index 0000000..77bb4d9 --- /dev/null +++ b/no-mmx.diff @@ -0,0 +1,22 @@ +--- CMakeLists.txt 2008/10/20 18:08:09 1.5 ++++ CMakeLists.txt 2008/10/20 18:12:17 +@@ -10,7 +10,7 @@ + + + add_definitions (${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) +-add_definitions (-mmmx) ++#add_definitions (-mmmx) + include_directories ( ${KDE4_INCLUDES} ${BLITZ_INCLUDES} ) + ADD_SUBDIRECTORY( icons ) + ADD_SUBDIRECTORY( src ) +--- src/grayouteffect.cpp 2008/10/20 18:23:09 1.1 ++++ src/grayouteffect.cpp 2008/10/20 18:23:52 +@@ -34,7 +34,7 @@ + #include + #include + +-#if 1 ++#ifdef __MMX__ + #include + #endif + diff --git a/rsibreak.changes b/rsibreak.changes index 874ad12..480bf48 100644 --- a/rsibreak.changes +++ b/rsibreak.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Oct 20 20:29:40 CEST 2008 - stbinner@suse.de + +- fix build on archs without mmx + ------------------------------------------------------------------- Thu Oct 9 23:15:32 CEST 2008 - wstephenson@suse.de diff --git a/rsibreak.spec b/rsibreak.spec index 23ec595..735cccd 100644 --- a/rsibreak.spec +++ b/rsibreak.spec @@ -26,11 +26,12 @@ Group: Productivity/Other BuildRoot: %{_tmppath}/%{name}-%{version}-build Summary: Assists in the Recovery and Prevention of Repetitive Strain Injury Version: 0.8.9+0.9.0_b4 -Release: 1 +Release: 2 %define tar_version 0.9.0-beta4 Source: rsibreak-%tar_version.tar.bz2 Patch0: disable-plasma-dep.diff Patch1: fix-build.diff +Patch2: no-mmx.diff Provides: kde4-rsibreak = 0.9.0 Obsoletes: kde4-rsibreak <= 0.9.0 @@ -50,6 +51,9 @@ Authors: %setup -n rsibreak-%tar_version -q %patch0 %patch1 +%ifnarch %ix86 x86_64 +%patch2 +%endif %build %cmake_kde4 -d build @@ -82,6 +86,8 @@ rm -rf $RPM_BUILD_ROOT /usr/share/icons/hicolor/*x*/apps/rsibreak.png %changelog +* Mon Oct 20 2008 stbinner@suse.de +- fix build on archs without mmx * Fri Oct 10 2008 wstephenson@suse.de - update to 0.9.0-beta4 * Fix bugs in config dialog layouts