[packages/flac] - added opt patch (removed unwanted CFLAGS manipulation, incl. "-gdwarf4" to "dwarf4" substitution)
qboosh
qboosh at pld-linux.org
Sat Nov 29 09:41:20 CET 2014
commit 061b946c6aba0ff19881c6fc1e830e9865564ac6
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Nov 29 09:41:27 2014 +0100
- added opt patch (removed unwanted CFLAGS manipulation, incl. "-gdwarf4" to "dwarf4" substitution)
- release 2
flac-opt.patch | 16 ++++++++++++++++
flac.spec | 6 +++---
2 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/flac.spec b/flac.spec
index dfb6eef..3e8c8b6 100644
--- a/flac.spec
+++ b/flac.spec
@@ -7,11 +7,12 @@ Summary: Free Lossless Audio Codec
Summary(pl.UTF-8): Free Lossless Audio Codec - Wolnodostępny bezstratny kodek audio
Name: flac
Version: 1.3.1
-Release: 1
+Release: 2
License: BSD (libFLAC/libFLAC++), GPL v2+ (programs and plugins)
Group: Libraries
Source0: http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
# Source0-md5: b9922c9a0378c88d3e901b234f852698
+Patch0: %{name}-opt.patch
URL: http://xiph.org/flac/
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1:1.11
@@ -40,8 +41,6 @@ License: BSD
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
Requires: libogg-devel >= 2:1.0
-# for -c++ only
-#Requires: libstdc++-devel
%description devel
The package contains the development header files for FLAC libraries.
@@ -80,6 +79,7 @@ Summary(pl.UTF-8): Pliki nagłówkowe biblioteki FLAC++
Group: Development/Libraries
Requires: %{name}-c++ = %{version}-%{release}
Requires: %{name}-devel = %{version}-%{release}
+Requires: libstdc++-devel
%description c++-devel
Header files for FLAC++ library.
diff --git a/flac-opt.patch b/flac-opt.patch
new file mode 100644
index 0000000..73a7e68
--- /dev/null
+++ b/flac-opt.patch
@@ -0,0 +1,16 @@
+--- flac-1.3.1/configure.ac.orig 2014-11-27 03:45:33.598155763 +0100
++++ flac-1.3.1/configure.ac 2014-11-29 09:01:11.196400208 +0100
+@@ -348,12 +348,9 @@
+
+ if test "x$debug" = xtrue; then
+ CPPFLAGS="-DDEBUG $CPPFLAGS"
+- CFLAGS=$(echo "$CFLAGS" | sed 's/-g//')
+- CFLAGS="-g $CFLAGS"
+ else
+ CPPFLAGS="-DNDEBUG $CPPFLAGS"
+- CFLAGS=$(echo "$CFLAGS" | sed 's/-O2//;s/-g//')
+- CFLAGS="-O3 -funroll-loops $CFLAGS"
++ CFLAGS="$CFLAGS -O3 -funroll-loops"
+ fi
+
+ XIPH_GCC_VERSION
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/flac.git/commitdiff/061b946c6aba0ff19881c6fc1e830e9865564ac6
More information about the pld-cvs-commit
mailing list