]> git.pld-linux.org Git - packages/swami.git/commitdiff
- remove braindead cmake assumptions to use our CLFLAGS, rel 2 master auto/th/swami-2.2.0-2
authorJan Rękorajski <baggins@pld-linux.org>
Sat, 29 Jan 2022 22:28:46 +0000 (23:28 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sat, 29 Jan 2022 22:28:46 +0000 (23:28 +0100)
build.patch [new file with mode: 0644]
swami.spec

diff --git a/build.patch b/build.patch
new file mode 100644 (file)
index 0000000..f4a421f
--- /dev/null
@@ -0,0 +1,40 @@
+--- swami-2.2.0/CMakeLists.txt~        2022-01-29 23:16:50.000000000 +0100
++++ swami-2.2.0/CMakeLists.txt 2022-01-29 23:19:16.388525959 +0100
+@@ -62,28 +62,6 @@
+ unset ( SWAMI_LIBS CACHE )
+-# Options for the GNU C compiler only
+-if ( CMAKE_COMPILER_IS_GNUCC )
+-  if ( NOT APPLE )
+-    set ( CMAKE_EXE_LINKER_FLAGS 
+-          "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed" )
+-    set ( CMAKE_SHARED_LINKER_FLAGS 
+-          "${CMAKE_SHARED_LINKER_FLAGS} -Wl,--no-undefined" )
+-  endif ( NOT APPLE )
+-  set ( GNUCC_WARNING_FLAGS "-Wall")
+-  set ( CMAKE_C_FLAGS_DEBUG "-g -DDEBUG ${GNUCC_WARNING_FLAGS}" )
+-  set ( CMAKE_C_FLAGS_RELEASE "-O2 -DNDEBUG ${GNUCC_WARNING_FLAGS}" )
+-  set ( CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g -DNDEBUG ${GNUCC_WARNING_FLAGS}" )
+-endif ( CMAKE_COMPILER_IS_GNUCC )
+-
+-if ( enable-debug )  
+-    set ( CMAKE_BUILD_TYPE "Debug" CACHE STRING
+-          "Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
+-else ( enable-debug )
+-    set ( CMAKE_BUILD_TYPE "Release" CACHE STRING
+-          "Choose the build type, options: Debug Release RelWithDebInfo" FORCE )
+-endif ( enable-debug )
+-
+ unset ( MINGW32 CACHE )
+ if ( WIN32 )
+   # MinGW compiler (a Windows GCC port)
+@@ -238,7 +238,7 @@
+ include ( InstallRequiredSystemLibraries )
+ set ( CPACK_GENERATOR STGZ;TGZ;TBZ2;ZIP )
+ set ( CPACK_PACKAGE_NAME ${PACKAGE} )
+-set ( CPACK_STRIP_FILES ON )
++set ( CPACK_STRIP_FILES OFF )
+ include ( CPack )
index 8cf75f89a5d0e48bd7bd24c960ccaf0643209931..9b4a2b5f9b4c912bfab05a4e2911f0b4ec5bfafc 100644 (file)
@@ -2,12 +2,13 @@ Summary:      Sampled Waveforms And Musical Instruments - SoundFont editor
 Summary(pl.UTF-8):     Sampled Waveforms And Musical Instruments - edytor fontów dźwiękowych
 Name:          swami
 Version:       2.2.0
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Applications/Sound
 #Source0Download: https://github.com/swami/swami/releases
 Source0:       https://github.com/swami/swami/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: d3d5ddffe5227e70e1bf4731b01c3b23
+Patch0:                build.patch
 URL:           http://www.swamiproject.org/
 BuildRequires: cmake >= 2.6.3
 BuildRequires: fftw3-single-devel >= 3.0
@@ -101,6 +102,7 @@ Pliki nagłówkowe biblioteki GUI SWAMI.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
This page took 0.120002 seconds and 4 git commands to generate.