diff --git a/gnubg-drop-cpu-checks.patch b/gnubg-drop-cpu-checks.patch new file mode 100644 index 0000000..ccaa28c --- /dev/null +++ b/gnubg-drop-cpu-checks.patch @@ -0,0 +1,108 @@ +--- configure~ 2015-12-07 15:29:34.000000000 -0500 ++++ configure 2015-12-07 15:32:27.918375959 -0500 +@@ -16599,9 +16599,9 @@ + else + + ax_cv_have_mmx_ext=no +- if test "$((0x$edx>>23&0x01))" = 1; then +- ax_cv_have_mmx_ext=yes +- fi ++ #if test "$((0x$edx>>23&0x01))" = 1; then ++ # ax_cv_have_mmx_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_mmx_ext" >&5 +--- configure~ 2015-12-07 15:34:22.000000000 -0500 ++++ configure 2015-12-07 15:36:09.060060555 -0500 +@@ -15979,9 +15979,9 @@ + else + + ax_cv_have_sse_ext=no +- if test "$((0x$edx>>25&0x01))" = 1; then +- ax_cv_have_sse_ext=yes +- fi ++ #if test "$((0x$edx>>25&0x01))" = 1; then ++ # ax_cv_have_sse_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse_ext" >&5 +@@ -15994,9 +15994,9 @@ + else + + ax_cv_have_sse2_ext=no +- if test "$((0x$edx>>26&0x01))" = 1; then +- ax_cv_have_sse2_ext=yes +- fi ++ #if test "$((0x$edx>>26&0x01))" = 1; then ++ # ax_cv_have_sse2_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse2_ext" >&5 +@@ -16009,9 +16009,9 @@ + else + + ax_cv_have_sse3_ext=no +- if test "$((0x$ecx&0x01))" = 1; then +- ax_cv_have_sse3_ext=yes +- fi ++ #if test "$((0x$ecx&0x01))" = 1; then ++ # ax_cv_have_sse3_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse3_ext" >&5 +@@ -16024,9 +16024,9 @@ + else + + ax_cv_have_ssse3_ext=no +- if test "$((0x$ecx>>9&0x01))" = 1; then +- ax_cv_have_ssse3_ext=yes +- fi ++ #if test "$((0x$ecx>>9&0x01))" = 1; then ++ # ax_cv_have_ssse3_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_ssse3_ext" >&5 +@@ -16039,9 +16039,9 @@ + else + + ax_cv_have_sse41_ext=no +- if test "$((0x$ecx>>19&0x01))" = 1; then +- ax_cv_have_sse41_ext=yes +- fi ++ #if test "$((0x$ecx>>19&0x01))" = 1; then ++ # ax_cv_have_sse41_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse41_ext" >&5 +@@ -16054,9 +16054,9 @@ + else + + ax_cv_have_sse42_ext=no +- if test "$((0x$ecx>>20&0x01))" = 1; then +- ax_cv_have_sse42_ext=yes +- fi ++ #if test "$((0x$ecx>>20&0x01))" = 1; then ++ # ax_cv_have_sse42_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_sse42_ext" >&5 +@@ -16069,9 +16069,9 @@ + else + + ax_cv_have_avx_cpu_ext=no +- if test "$((0x$ecx>>28&0x01))" = 1; then +- ax_cv_have_avx_cpu_ext=yes +- fi ++ #if test "$((0x$ecx>>28&0x01))" = 1; then ++ # ax_cv_have_avx_cpu_ext=yes ++ #fi + + fi + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_have_avx_cpu_ext" >&5 diff --git a/gnubg.spec b/gnubg.spec index 7296abb..b4ff035 100644 --- a/gnubg.spec +++ b/gnubg.spec @@ -10,6 +10,7 @@ Source1: gnubg.desktop Source2: gnubg.png #Patch0: gnubg-0.9.0.1-disable_sse.patch #Patch1: gnubg-0.9.0.1-libpng15.patch +Patch2: gnubg-drop-cpu-checks.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n ) URL: http://www.gnubg.org BuildRequires: libcanberra-devel @@ -61,16 +62,16 @@ play GNU Backgammon using the command line or a graphical interface #%patch0 -p0 #%patch1 -p0 +%patch2 -p0 # running autogen, sources are nightly CVS tarballs not # containing configure -./autogen.sh +#./autogen.sh %build -export CFLAGS="$RPM_OPT_FLAGS" -%configure --with-python +./configure --with-python --prefix=/usr --datadir=/usr/share -make +make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT; @@ -137,10 +138,10 @@ rm -rf ${RPM_BUILD_ROOT} %{_infodir}/gnubg.info.gz %dir %{_datadir}/gnubg %{_datadir}/gnubg/met -#%{_datadir}/gnubg/doc +#%%{_datadir}/gnubg/doc %{_datadir}/gnubg/boards.xml -#%{_datadir}/gnubg/gnubg.game.sql -#%{_datadir}/gnubg/gnubg.gtkrc +#%%{_datadir}/gnubg/gnubg.game.sql +#%%{_datadir}/gnubg/gnubg.gtkrc %{_datadir}/gnubg/gnubg_os0.bd %{_datadir}/gnubg/gnubg.weights %{_datadir}/gnubg/sounds @@ -160,14 +161,15 @@ rm -rf ${RPM_BUILD_ROOT} %{_datadir}/gnubg/gnubg.wd %{_datadir}/gnubg/scripts/ %{_datadir}/gnubg/flags/ -#%{_datadir}/gnubg/gnubg.png +#%%{_datadir}/gnubg/gnubg.png %{_datadir}/gnubg/gnubg.sql -#%{_datadir}/gnubg/gnubg.svg +#%%{_datadir}/gnubg/gnubg.svg %{_datadir}/gnubg/gnubg_ts0.bd %changelog * Tue Sep 01 2015 Jon Ciesla - 1:1.05.000-1 - Update to 1.05 +- Fix FTBFS. * Wed Jun 17 2015 Fedora Release Engineering - 1:1.04.000-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild