Accepting request 120553 from multimedia:libs
- Also, define GNU_SOURCE - No dont use -ansi gcc flag. (forwarded request 120540 from elvigia) OBS-URL: https://build.opensuse.org/request/show/120553 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/taglib?expand=0&rev=30
This commit is contained in:
commit
f2ac02533e
13
taglib-noansiflags.patch
Normal file
13
taglib-noansiflags.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -24,8 +24,8 @@ set(INCLUDE_INSTALL_DIR "${CMAKE_IN
|
||||||
|
|
||||||
|
if (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
if (CMAKE_SYSTEM_NAME MATCHES Linux)
|
||||||
|
- set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -ansi -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
|
||||||
|
- set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common")
|
||||||
|
+ set ( CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -fno-common")
|
||||||
|
+ set ( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fvisibility-inlines-hidden -Wnon-virtual-dtor -Wno-long-long -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -Wformat-security -fno-check-new -fno-common")
|
||||||
|
endif (CMAKE_SYSTEM_NAME MATCHES Linux)
|
||||||
|
endif (CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
if(MSVC)
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 10 01:51:54 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- Also, define GNU_SOURCE
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu May 10 01:11:38 UTC 2012 - crrodriguez@opensuse.org
|
||||||
|
|
||||||
|
- No dont use -ansi gcc flag.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Mar 8 01:01:13 YEKT 2012 - avm-xandry@yandex.ru
|
Thu Mar 8 01:01:13 YEKT 2012 - avm-xandry@yandex.ru
|
||||||
|
|
||||||
|
@ -28,6 +28,7 @@ Source0: %{name}-%{version}.tar.bz2
|
|||||||
Source1: %{name}.desktop
|
Source1: %{name}.desktop
|
||||||
Source100: baselibs.conf
|
Source100: baselibs.conf
|
||||||
Patch1: taglib-1.6-ds-rusxmms.patch
|
Patch1: taglib-1.6-ds-rusxmms.patch
|
||||||
|
Patch2: taglib-noansiflags.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: cmake
|
BuildRequires: cmake
|
||||||
BuildRequires: doxygen
|
BuildRequires: doxygen
|
||||||
@ -96,12 +97,12 @@ This package contains development files for taglib.
|
|||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch1 -p1
|
%patch1 -p1
|
||||||
|
%patch2
|
||||||
%build
|
%build
|
||||||
mkdir build
|
mkdir build
|
||||||
cd build
|
cd build
|
||||||
export CXXFLAGS="%{optflags}"
|
export CXXFLAGS="%{optflags} -D_GNU_SOURCE"
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS="%{optflags} -D_GNU_SOURCE"
|
||||||
_libsuffix=$(echo %{_lib} | cut -b4-)
|
_libsuffix=$(echo %{_lib} | cut -b4-)
|
||||||
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBUILD_TESTS:BOOL=ON -DLIB_SUFFIX=$_libsuffix -DWITH_ASF:BOOL=ON -DWITH_MP4:BOOL=ON ..
|
cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} -DBUILD_TESTS:BOOL=ON -DLIB_SUFFIX=$_libsuffix -DWITH_ASF:BOOL=ON -DWITH_MP4:BOOL=ON ..
|
||||||
make %{?_smp_mflags} VERBOSE=1
|
make %{?_smp_mflags} VERBOSE=1
|
||||||
|
Loading…
Reference in New Issue
Block a user