forked from pool/alure
Accepting request 1002725 from games
OBS-URL: https://build.opensuse.org/request/show/1002725 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/alure?expand=0&rev=4
This commit is contained in:
commit
cfd56b4375
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 7 05:16:39 UTC 2022 - munix9@googlemail.com
|
||||
|
||||
- Change URL/Source to https://kcat.tomasu.net/alure.html
|
||||
- Replace CXXFLAGS "-fpermissive" with fix-dumb2.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Feb 14 14:28:23 UTC 2022 - Ferdinand Thiessen <rpm@fthiessen.de>
|
||||
|
||||
|
@ -25,13 +25,14 @@ Summary: Audio Library Tools REloaded
|
||||
# ALURE code is LGPL-2.0+; note -devel subpackage has its own license tag
|
||||
License: LGPL-2.0-or-later
|
||||
Group: Development/Libraries/C and C++
|
||||
URL: https://github.com/kcat/alure
|
||||
Source0: %{name}-%{version}.tar.bz2
|
||||
URL: https://kcat.tomasu.net/alure.html
|
||||
Source0: https://kcat.tomasu.net/alure-releases/%{name}-%{version}.tar.bz2
|
||||
Patch0: fix-cmake_minimum_required.patch
|
||||
Patch1: fix-missing-include.patch
|
||||
Patch2: fix-lib-suffix.patch
|
||||
Patch3: fix-link-flac.patch
|
||||
Patch4: fix-FLUIDSYNTH_CFLAGS.patch
|
||||
Patch5: fix-dumb2.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: ninja
|
||||
@ -75,7 +76,6 @@ developing applications that use %{name}.
|
||||
|
||||
%build
|
||||
%define __builder ninja
|
||||
export CXXFLAGS="%{optflags} -fpermissive"
|
||||
%cmake \
|
||||
-DBUILD_STATIC=OFF \
|
||||
-DDYNLOAD=OFF \
|
||||
|
30
fix-dumb2.patch
Normal file
30
fix-dumb2.patch
Normal file
@ -0,0 +1,30 @@
|
||||
# Already fixed upstream:
|
||||
# https://repo.or.cz/alure.git/commitdiff/9939cdfbf9c6c7a2690db7fb8dd2892389adcd5f
|
||||
|
||||
diff -Naur a/src/codec_dumb.cpp b/src/codec_dumb.cpp
|
||||
--- a/src/codec_dumb.cpp 2011-07-29 09:37:48.000000000 +0100
|
||||
+++ b/src/codec_dumb.cpp 2020-05-10 15:59:48.502632496 +0100
|
||||
@@ -272,7 +272,11 @@
|
||||
|
||||
private:
|
||||
// DUMBFILE iostream callbacks
|
||||
+#if DUMB_VERSION >= 2*10000
|
||||
+ static int skip(void *user_data, dumb_off_t offset)
|
||||
+#else
|
||||
static int skip(void *user_data, long offset)
|
||||
+#endif
|
||||
{
|
||||
std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
|
||||
stream->clear();
|
||||
@@ -282,7 +286,11 @@
|
||||
return -1;
|
||||
}
|
||||
|
||||
+#if DUMB_VERSION >= 2*10000
|
||||
+ static dumb_ssize_t read(char *ptr, size_t size, void *user_data)
|
||||
+#else
|
||||
static long read(char *ptr, long size, void *user_data)
|
||||
+#endif
|
||||
{
|
||||
std::istream *stream = static_cast<dumbStream*>(user_data)->fstream;
|
||||
stream->clear();
|
Loading…
Reference in New Issue
Block a user