[packages/libxspf] - fix building with latest automake and gcc 4.7 - rel 3
baggins
baggins at pld-linux.org
Fri Nov 16 14:43:11 CET 2012
commit 7cfb39e2bd05e8be80423169500cbb2809040b09
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Fri Nov 16 14:42:52 2012 +0100
- fix building with latest automake and gcc 4.7
- rel 3
libxspf-am.patch | 9 +++++++++
libxspf-gcc47.patch | 10 ++++++++++
libxspf.spec | 6 +++++-
3 files changed, 24 insertions(+), 1 deletion(-)
---
diff --git a/libxspf.spec b/libxspf.spec
index 8ce7536..e1789e3 100644
--- a/libxspf.spec
+++ b/libxspf.spec
@@ -7,12 +7,14 @@ Summary: XSPF playlist reading and writing support
Summary(pl.UTF-8): Obsługa odczytu i zapisu playlist XSPF
Name: libxspf
Version: 1.2.0
-Release: 2
+Release: 3
License: BSD
Group: Libraries
Source0: http://dl.sourceforge.net/libspiff/%{name}-%{version}.tar.gz
# Source0-md5: d3276bf6c7f86442b72629a3e7b8bd5b
Patch0: %{name}-link.patch
+Patch1: %{name}-am.patch
+Patch2: %{name}-gcc47.patch
URL: http://libspiff.sourceforge.net/
BuildRequires: autoconf
BuildRequires: automake
@@ -66,6 +68,8 @@ Statyczna biblioteka libxspf.
%prep
%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__libtoolize}
diff --git a/libxspf-am.patch b/libxspf-am.patch
new file mode 100644
index 0000000..ab1b9af
--- /dev/null
+++ b/libxspf-am.patch
@@ -0,0 +1,9 @@
+--- libxspf-1.2.0/Makefile.am~ 2009-03-07 00:45:48.000000000 +0100
++++ libxspf-1.2.0/Makefile.am 2012-11-16 14:40:53.899030547 +0100
+@@ -1,5 +1,5 @@
+ ## Process this file with automake to produce Makefile.in
+-AUTOMAKE_OPTIONS = 1.10.1 gnu dist-zip dist-bzip2 dist-lzma subdir-objects
++AUTOMAKE_OPTIONS = 1.10.1 gnu dist-zip dist-bzip2 subdir-objects
+
+ ACLOCAL_AMFLAGS = -I m4
+
diff --git a/libxspf-gcc47.patch b/libxspf-gcc47.patch
new file mode 100644
index 0000000..00fdf26
--- /dev/null
+++ b/libxspf-gcc47.patch
@@ -0,0 +1,10 @@
+--- libxspf-1.2.0/examples/read/read.cpp~ 2009-02-21 21:13:25.000000000 +0100
++++ libxspf-1.2.0/examples/read/read.cpp 2012-11-16 14:41:56.225695017 +0100
+@@ -43,6 +43,7 @@
+ #include <cstdio>
+ #include <cstdlib> // MAX_PATH
+ #include <climits> // PATH_MAX
++#include <unistd.h>
+
+
+ #if defined(__WIN32__) || defined(WIN32)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libxspf.git/commitdiff/7cfb39e2bd05e8be80423169500cbb2809040b09
More information about the pld-cvs-commit
mailing list