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:
Stephan Kulow 2012-05-10 12:34:28 +00:00 committed by Git OBS Bridge
commit f2ac02533e
3 changed files with 27 additions and 3 deletions

13
taglib-noansiflags.patch Normal file
View 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)

View File

@ -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

View File

@ -28,6 +28,7 @@ Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.desktop
Source100: baselibs.conf
Patch1: taglib-1.6-ds-rusxmms.patch
Patch2: taglib-noansiflags.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: cmake
BuildRequires: doxygen
@ -96,12 +97,12 @@ This package contains development files for taglib.
%prep
%setup -q
%patch1 -p1
%patch2
%build
mkdir build
cd build
export CXXFLAGS="%{optflags}"
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags} -D_GNU_SOURCE"
export CFLAGS="%{optflags} -D_GNU_SOURCE"
_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 ..
make %{?_smp_mflags} VERBOSE=1