Hello community,

here is the log from the commit of package love for openSUSE:Factory checked in 
at 2017-04-28 09:13:04
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/love (Old)
 and      /work/SRC/openSUSE:Factory/.love.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "love"

Fri Apr 28 09:13:04 2017 rev:3 rq:490811 version:0.10.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/love/love.changes        2017-02-03 
17:49:28.592777277 +0100
+++ /work/SRC/openSUSE:Factory/.love.new/love.changes   2017-04-28 
09:13:32.720034849 +0200
@@ -1,0 +2,7 @@
+Mon Apr 17 19:38:33 UTC 2017 - o...@aepfle.de
+
+- Build with mpg123 unconditionally, add love.mpg123.patch
+- Run autoreconf
+- Add Requires(pre) as needed
+
+-------------------------------------------------------------------

New:
----
  love.mpg123.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ love.spec ++++++
--- /var/tmp/diff_new_pack.GLiMlH/_old  2017-04-28 09:13:33.383941228 +0200
+++ /var/tmp/diff_new_pack.GLiMlH/_new  2017-04-28 09:13:33.387940664 +0200
@@ -16,7 +16,7 @@
 #
 
 
-%bcond_with mpg123
+%bcond_without mpg123
 Name:           love
 Version:        0.10.2
 Release:        0
@@ -25,6 +25,9 @@
 Group:          Development/Languages/Other
 Url:            http://love2d.org/
 Source:         
https://bitbucket.org/rude/love/downloads/%{name}-%{version}-linux-src.tar.gz
+Patch0:         love.mpg123.patch
+Requires(pre):  desktop-file-utils
+Requires(pre):  shared-mime-info
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gcc-c++
@@ -53,14 +56,16 @@
 
 %prep
 %setup -q
+%patch0 -p1
 sed -i 's/\r$//' *.txt
 
 %build
-%if ! %{with mpg123}
-%configure --disable-mpg123
-%else
-%configure
+autoreconf -fi
+%configure \
+%if %{without mpg123}
+       --disable-mpg123 \
 %endif
+       --disable-static
 make %{?_smp_mflags}
 
 %install

++++++ love.mpg123.patch ++++++
--- a/configure.ac
+++ b/configure.ac
@@ -87,11 +87,12 @@ AS_VAR_IF([luaheaders_found], [yes], [],
 # mpg123, treated seperately because it can be disabled (default on)
 # also not pkg-config because of the FILE_OFFSET_BITS.. bit
 AC_ARG_ENABLE([mpg123], AC_HELP_STRING([--disable-mpg123], [Disable mp3 
support, for patent-free builds]), [], [enable_mpg123=yes])
+PKG_CHECK_MODULES([mpg123], [libmpg123], [enable_mpg123=yes], 
[enable_mpg123=no])
 AS_VAR_IF([enable_mpg123], [no],
          AC_DEFINE([LOVE_NOMPG123], [], [Build without mpg123]),
          # else
          AC_SEARCH_LIBS([mpg123_open_feed], [mpg123], [],
-                                        [LOVE_MSG_ERROR([libmpg123])])
+                                        [])
          AC_SEARCH_LIBS([mpg123_seek_64], [mpg123],
                                         
AC_SUBST([FILE_OFFSET],[-D_FILE_OFFSET_BITS=64]),
                                         AC_SUBST([FILE_OFFSET],[])))

Reply via email to